Add doc note regarding static grains on proxy minions

This commit is contained in:
Mircea Ulinic 2017-11-15 13:19:03 +00:00
parent 509d1af832
commit 0320174ea4
No known key found for this signature in database
GPG key ID: 4286FAD4BACBB073

View file

@ -86,6 +86,15 @@ same way as in the above example, only without a top-level ``grains:`` key:
Grains are static, and since they are not often changed, they will need a grains refresh when they are updated. You can do this by calling: ``salt minion saltutil.refresh_modules``
.. note::
You can equally configure static grains for Proxy Minions.
As multiple Proxy Minion processes can run on the same machine, you need
to index the files using the Minion ID, under ``/etc/salt/proxy.d/<minion ID>/grains``.
For example, the grains for the Proxy Minion ``router1`` can be defined
under ``/etc/salt/proxy.d/router1/grains``, while the grains for the
Proxy Minion ``switch7`` can be put in ``/etc/salt/proxy.d/switch7/grains``.
Matching Grains in the Top File
===============================