salt.modules.defaults.
get
(key, default='')¶defaults.get is used much like pillar.get except that it will read a default value for a pillar from defaults.json or defaults.yaml files that are stored in the root of a salt formula.
CLI Example:
salt '*' defaults.get core:users:root
The defaults is computed from pillar key. The first entry is considered as the formula namespace.
For example, querying core:users:root
will try to load
salt://core/defaults.yaml
and salt://core/defaults.json
.
salt.modules.defaults.
merge
(dest, upd)¶Allows deep merging of dicts in formulas.
CLI Example: .. code-block:: bash
salt '*' default.merge a=b d=e
It is more typical to use this in a templating language in formulas, instead of directly on the command-line.
Generated on July 18, 2017 at 06:45:48 MDT.
You are viewing docs for the previous stable release, 2016.3.6. Switch to docs for the latest stable release, 2016.11.6, or to a recent doc build from the develop branch.
© 2017 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy