puppet: ensure puppet is in live mode per default

puppet may be configured to operate in `--noop` mode per default.

That is why we must pass a `--no-noop` to make sure, changes are going to be applied.
reviewable/pr18780/r1
Rene Moser 10 years ago
parent 06c60ddc22
commit 537562217f

@ -156,10 +156,14 @@ def main():
cmd += " --show-diff" cmd += " --show-diff"
if module.check_mode: if module.check_mode:
cmd += " --noop" cmd += " --noop"
else:
cmd += " --no-noop"
else: else:
cmd = "%s apply --detailed-exitcodes " % base_cmd cmd = "%s apply --detailed-exitcodes " % base_cmd
if module.check_mode: if module.check_mode:
cmd += "--noop " cmd += "--noop "
else:
cmd += "--no-noop "
cmd += pipes.quote(p['manifest']) cmd += pipes.quote(p['manifest'])
rc, stdout, stderr = module.run_command(cmd) rc, stdout, stderr = module.run_command(cmd)

Loading…
Cancel
Save