salt.modules.puppet
Execute puppet routines
-
New in version 2014.7.0.
Disable the puppet agent
- message
-
New in version 2015.5.2.
Disable message to send to puppet
CLI Example:
salt '*' puppet.disable salt '*' puppet.disable 'Disabled, contact XYZ before enabling'
salt.modules.puppet.disable(message=None)
-
New in version 2014.7.0.
Enable the puppet agent
CLI Example:
salt '*' puppet.enable
salt.modules.puppet.enable()
-
Run facter for a specific fact
CLI Example:
salt '*' puppet.fact kernel
salt.modules.puppet.fact(name, puppet=False)
-
Run facter and return the results
CLI Example:
salt '*' puppet.facts
salt.modules.puppet.facts(puppet=False)
-
Execute a puppet noop run and return a dict with the stderr, stdout, return code, etc. Usage is the same as for puppet.run.
CLI Example:
salt '*' puppet.noop salt '*' puppet.noop tags=basefiles::edit,apache::server salt '*' puppet.noop debug salt '*' puppet.noop apply /a/b/manifest.pp modulepath=/a/b/modules tags=basefiles::edit,apache::server
salt.modules.puppet.noop(*args, **kwargs)
-
Runs a plugin sync between the puppet master and agent
CLI Example:
salt '*' puppet.plugin_sync
salt.modules.puppet.plugin_sync()
-
Execute a puppet run and return a dict with the stderr, stdout, return code, etc. The first positional argument given is checked as a subcommand. Following positional arguments should be ordered with arguments required by the subcommand first, followed by non-keyword arguments. Tags are specified by a tag keyword and comma separated list of values. -- http://docs.puppetlabs.com/puppet/latest/reference/lang_tags.html
CLI Examples:
salt '*' puppet.run salt '*' puppet.run tags=basefiles::edit,apache::server salt '*' puppet.run agent onetime no-daemonize no-usecacheonfailure no-splay ignorecache salt '*' puppet.run debug salt '*' puppet.run apply /a/b/manifest.pp modulepath=/a/b/modules tags=basefiles::edit,apache::server
salt.modules.puppet.run(*args, **kwargs)
-
New in version 2014.7.0.
Display puppet agent status
CLI Example:
salt '*' puppet.status
salt.modules.puppet.status()
-
New in version 2014.7.0.
Show a summary of the last puppet agent run
CLI Example:
salt '*' puppet.summary
salt.modules.puppet.summary()
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.puppet.html