Add documentation for the Minion data cache

Includes docs for localfs and consul minion data cache modules
This commit is contained in:
David Boucha 2017-01-19 15:53:22 -07:00 committed by rallytime
parent 12a9fc43c9
commit 61f2fa9339
8 changed files with 63 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

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

@ -0,0 +1,33 @@
.. _cache:
=================
Minion Data Cache
=================
The Minion Data Cache contains the Salt Mine data and other minion 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 exampls 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

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).
'''