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:
Colton Myers 2015-10-27 09:27:49 -06:00
commit 7858f04ebc

View file

@ -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>`