We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce071e5 commit 727169fCopy full SHA for 727169f
1 file changed
fabfile.py
@@ -161,6 +161,10 @@ def provision(branch='master'):
161
modules_path = os.path.join(puppet_path, 'modules')
162
puppet_modules = '{}:/etc/puppet/modules'.format(modules_path)
163
164
+ if not exists('/usr/bin/puppet'):
165
+ print(colors.red('Please install `puppet` before continue.'))
166
+ return
167
+
168
with cd(puppet_path):
169
run('sudo python bootstrap.py')
170
@@ -169,10 +173,6 @@ def provision(branch='master'):
173
else:
174
cmd = '-e "include {}"'.format(APP_NAME)
171
175
172
- if not exists('/usr/bin/puppet'):
- print(colors.red('Please install `puppet` before continue.'))
- return
-
176
sudo('puppet apply --modulepath={} {}'.format(puppet_modules, cmd))
177
178
0 commit comments