Merge pull request #44434 from whytewolf/1837

add a note that describes grain rebuilding on restart and refresh
This commit is contained in:
Nicole Thomas 2017-11-14 06:21:53 -05:00 committed by GitHub
commit 91d46d4cfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -298,3 +298,9 @@ Syncing grains can be done a number of ways, they are automatically synced when
above) the grains can be manually synced and reloaded by calling the
:mod:`saltutil.sync_grains <salt.modules.saltutil.sync_grains>` or
:mod:`saltutil.sync_all <salt.modules.saltutil.sync_all>` functions.
.. note::
When the :conf_minion:`grains_cache` is set to False, the grains dictionary is built
and stored in memory on the minion. Every time the minion restarts or
``saltutil.refresh_grains`` is run, the grain dictionary is rebuilt from scratch.