Return config information
Return the backup mode
CLI Example:
salt '*' config.backup_mode
Pass in a configuration value that should be preceded by the module name and a dot, this will return a list of all read key/value pairs
CLI Example:
salt '*' config.dot_vals host
Download the salt-bootstrap script, and return its location
CLI Example:
salt '*' config.gather_bootstrap_script
Attempt to retrieve the named value from opts, pillar, grains or the master config, if the named value is not available return the passed default. The default return is an empty string.
The value can also represent a value in a nested dict using a ":" delimiter for the dict. This means that if a dict looks like this:
{'pkg': {'apache': 'httpd'}}
To retrieve the value associated with the apache key in the pkg dict this key can be passed:
pkg:apache
This routine traverses these data stores in this order:
CLI Example:
salt '*' config.get pkg:apache
Return a mode value, normalized to a string
CLI Example:
salt '*' config.manage_mode
Retrieves an option based on key, merging all matches.
Same as option() except that it merges all matches, rather than taking the first match.
CLI Example:
salt '*' config.merge schedule
Pass in a generic option and receive the value that will be assigned
CLI Example:
salt '*' config.option redis.host
Returns a boolean value based on whether or not the URI passed has a valid remote file protocol designation
CLI Example:
salt '*' config.valid_fileproto salt://path/to/file
Docs for previous releases are available on salt.rtfd.org.
Latest Salt release: 2014.7.2
22.16.28. salt.modules.composer
Upcoming SaltStack events, webinars and local meet ups and user groups.