mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #28315 from gwaters/update-pillar-doc
Adding a working example of setting pillar data on the cli
This commit is contained in:
commit
7858f04ebc
1 changed files with 14 additions and 1 deletions
|
@ -315,6 +315,19 @@ line:
|
|||
the key that is passed in will overwrite the entire value of that key,
|
||||
rather than merging only the specified value set via the command line.
|
||||
|
||||
The example below will swap the value for vim with telnet in the previously
|
||||
specified list, notice the nested pillar dict:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' state.sls edit.vim pillar='{"pkgs": {"vim": "telnet"}}'
|
||||
|
||||
.. note::
|
||||
|
||||
This will attempt to install telnet on your minions, feel free to
|
||||
uninstall the package or replace telnet value with anything else.
|
||||
|
||||
|
||||
More On Pillar
|
||||
==============
|
||||
|
||||
|
@ -326,4 +339,4 @@ information about an infrastructure is stored in a separate location.
|
|||
Reference information on pillar and the external pillar interface can be found
|
||||
in the Salt documentation:
|
||||
|
||||
:doc:`Pillar </topics/pillar/index>`
|
||||
:doc:`Pillar </topics/pillar/index>`
|
||||
|
|
Loading…
Add table
Reference in a new issue