Merge pull request #40308 from rallytime/bp-38835

Back-port #38835 to 2016.11
This commit is contained in:
Mike Place 2017-03-24 13:00:45 -06:00 committed by GitHub
commit 4928026253
8 changed files with 64 additions and 1 deletions

View file

@ -23,6 +23,7 @@ Salt Table of Contents
ref/index
topics/api
topics/topology/index
topics/cache/index
topics/windows/index
topics/development/index
topics/releases/index

14
doc/ref/cache/all/index.rst vendored Normal file
View file

@ -0,0 +1,14 @@
.. _all-salt.cache:
=============
cache modules
=============
.. currentmodule:: salt.cache
.. autosummary::
:toctree:
:template: autosummary.rst.tmpl
localfs
consul

View file

@ -0,0 +1,5 @@
salt.cache.consul module
========================
.. automodule:: salt.cache.consul
:members:

View file

@ -0,0 +1,5 @@
salt.cache.localfs module
=========================
.. automodule:: salt.cache.localfs
:members:

View file

@ -10,6 +10,7 @@ This section contains a list of the Python modules that are used to extend the v
../ref/auth/all/index
../ref/beacons/all/index
../ref/cache/all/index
../ref/engines/all/index
../ref/file_server/all/index
../ref/grains/all/index

34
doc/topics/cache/index.rst vendored Normal file
View file

@ -0,0 +1,34 @@
.. _cache:
=================
Minion Data Cache
=================
The Minion data cache contains the Salt Mine data, minion grains and minion
pillar info cached on the Salt master. By default Salt uses the `localfs` cache
module to save the data in a msgpack file on the Salt master. Other external
data stores can also be used to store this data such as the `Consul` module.
See :ref:`cache modules <all-salt.cache>` for a current list.
Configuring the Minion Data Cache
=================================
The default `localfs` Minion data cache module doesn't require any
configuration. External data cache modules with external data stores such as
Consul require a configuration setting in the master config.
Here's an example config for Consul:
.. code-block:: yaml
consul.host: 127.0.0.1
consul.port: 8500
consul.token: None
consul.scheme: http
consul.consistency: default
consul.dc: dc1
consul.verify: True
cache: consul

View file

@ -21,7 +21,7 @@ could be set in the master config, these are the defaults:
consul.token: None
consul.scheme: http
consul.consistency: default
consul.dc: None
consul.dc: dc1
consul.verify: True
Related docs could be found here:

View file

@ -4,6 +4,9 @@ Cache data in filesystem.
.. versionadded:: 2016.11.0
The `localfs` Minion cache module is the default cache module and does not
require any configuration.
Expirations can be set in the relevant config file (``/etc/salt/master`` for
the master, ``/etc/salt/cloud`` for Salt Cloud, etc).
'''