|
|
@ -55,12 +55,12 @@ options:
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
facter_basename:
|
|
|
|
facter_basename:
|
|
|
|
desciption:
|
|
|
|
description:
|
|
|
|
- Basename of the facter output file
|
|
|
|
- Basename of the facter output file
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: ansible
|
|
|
|
default: ansible
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
desciption:
|
|
|
|
description:
|
|
|
|
- Puppet environment to be used.
|
|
|
|
- Puppet environment to be used.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
@ -161,9 +161,9 @@ def main():
|
|
|
|
base_cmd=base_cmd,
|
|
|
|
base_cmd=base_cmd,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
if p['puppetmaster']:
|
|
|
|
if p['puppetmaster']:
|
|
|
|
cmd += " -- server %s" % pipes.quote(p['puppetmaster'])
|
|
|
|
cmd += " --server %s" % pipes.quote(p['puppetmaster'])
|
|
|
|
if p['show_diff']:
|
|
|
|
if p['show_diff']:
|
|
|
|
cmd += " --show-diff"
|
|
|
|
cmd += " --show_diff"
|
|
|
|
if p['environment']:
|
|
|
|
if p['environment']:
|
|
|
|
cmd += " --environment '%s'" % p['environment']
|
|
|
|
cmd += " --environment '%s'" % p['environment']
|
|
|
|
if module.check_mode:
|
|
|
|
if module.check_mode:
|
|
|
|