mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add puppet confdir option (#4740)
* Add puppet confdir option * Add puppet confdir option change fragment * Improve quoting in plugins/modules/system/puppet.py Co-authored-by: Felix Fontein <felix@fontein.de> * Add version_added to plugins/modules/system/puppet.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Georg Vogt <georg.vogt@tngtech.com> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
b87edda3c7
commit
62ff263ac1
2 changed files with 10 additions and 0 deletions
2
changelogs/fragments/4740-puppet-feature.yaml
Normal file
2
changelogs/fragments/4740-puppet-feature.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- puppet - adds ``confdir`` parameter to configure a custom confir location (https://github.com/ansible-collections/community.general/pull/4740).
|
|
@ -51,6 +51,11 @@ options:
|
|||
description:
|
||||
- Puppet environment to be used.
|
||||
type: str
|
||||
confdir:
|
||||
description:
|
||||
- Path to the directory containing the puppet.conf file.
|
||||
type: str
|
||||
version_added: 5.1.0
|
||||
logdest:
|
||||
description:
|
||||
- Where the puppet logs should go, if puppet apply is being used.
|
||||
|
@ -179,6 +184,7 @@ def main():
|
|||
puppetmaster=dict(type='str'),
|
||||
modulepath=dict(type='str'),
|
||||
manifest=dict(type='str'),
|
||||
confdir=dict(type='str'),
|
||||
noop=dict(type='bool'),
|
||||
logdest=dict(type='str', default='stdout', choices=['all', 'stdout', 'syslog']),
|
||||
# The following is not related to Ansible's diff; see https://github.com/ansible-collections/community.general/pull/3980#issuecomment-1005666154
|
||||
|
@ -255,6 +261,8 @@ def main():
|
|||
cmd += " --server %s" % shlex_quote(p['puppetmaster'])
|
||||
if p['show_diff']:
|
||||
cmd += " --show_diff"
|
||||
if p['confdir']:
|
||||
cmd += " --confdir %s" % shlex_quote(p['confdir'])
|
||||
if p['environment']:
|
||||
cmd += " --environment '%s'" % p['environment']
|
||||
if p['tags']:
|
||||
|
|
Loading…
Reference in a new issue