Fix some pilar docs that did not make much sense

This commit is contained in:
Thomas S Hatch 2012-11-07 22:49:31 -07:00
parent c8355fdf23
commit 1c9295f20b

View File

@ -55,7 +55,6 @@ files.
apache: apache2
git: git-core
{% endif %}
somekey: globalvalue
Now this data can be used from within modules, renderers, State SLS files, and
more via the shared pillar `dict`_:
@ -74,35 +73,6 @@ more via the shared pillar `dict`_:
- installed
- name: {{ pillar['git'] }}
To use pillar data in a file that is managed on a minion, use a file state like
this:
``/srv/salt/top.sls``
.. code-block:: yaml
base:
'*':
- managed_files
``/srv/salt/managed_files.sls``
.. code-block:: yaml
/tmp/some-managed-file.txt:
file:
- managed
- template: jinja
- source: salt://files/some-managed-file.txt
``/srv/salt/files/some-managed-file.txt``
.. code-block:: yaml
This will yield 'globalvalue' on all minions but will yield 'specialvalue'
on 'someminion':
somekey has value: {{ pillar['somekey'] }}
.. _`dict`: http://docs.python.org/library/stdtypes.html#mapping-types-dict
Viewing Minion Pillar