Skip to content

Commit

Permalink
Merge pull request #56459 from oeuftete/add-grains-cache-exp-doc
Browse files Browse the repository at this point in the history
Add grains_cache_expiration to minion conf doc
  • Loading branch information
dwoz authored Apr 7, 2020
2 parents 0cd706c + 3222fbf commit 94c8ca5
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion doc/ref/configuration/minion.rst
Original file line number Diff line number Diff line change
Expand Up @@ -831,12 +831,28 @@ Default: ``False``

The minion can locally cache grain data instead of refreshing the data
each time the grain is referenced. By default this feature is disabled,
to enable set grains_cache to ``True``.
to enable set ``grains_cache`` to ``True``.

.. code-block:: yaml
grains_cache: False
.. conf_minion:: grains_cache_expiration

``grains_cache_expiration``
---------------------------

Default: ``300``

Grains cache expiration, in seconds. If the cache file is older than this number
of seconds then the grains cache will be dumped and fully re-populated with
fresh data. Defaults to 5 minutes. Will have no effect if
:conf_minion:`grains_cache` is not enabled.

.. code-block:: yaml
grains_cache_expiration: 300
.. conf_minion:: grains_deep_merge

``grains_deep_merge``
Expand Down

0 comments on commit 94c8ca5

Please sign in to comment.