1
0

index.rst 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. .. _cache:
  2. =================
  3. Minion Data Cache
  4. =================
  5. .. versionadded:: 2016.11.0
  6. The Minion data cache contains the Salt Mine data, minion grains and minion
  7. pillar information cached on the Salt Master. By default, Salt uses the ``localfs`` cache
  8. module to save the data in a ``msgpack`` file on the Salt Master.
  9. .. _pluggable-data-cache:
  10. Pluggable Data Cache
  11. ====================
  12. While the default Minion data cache is the ``localfs`` cache, other external
  13. data stores can also be used to store this data such as the ``consul`` module.
  14. To configure a Salt Master to use a different data store, the :conf_master:`cache`
  15. setting needs to be established:
  16. .. code-block:: yaml
  17. cache: consul
  18. The pluggable data cache streamlines using various Salt topologies such as a
  19. :ref:`Multi-Master <tutorial-multi-master>` or :ref:`Salt Syndics <syndic>` configuration
  20. by allowing the data stored on the Salt Master about a Salt Minion to be available to
  21. other Salt Syndics or Salt Masters that a Salt Minion is connected to.
  22. Additional minion data cache modules can be easily created by modeling the custom data
  23. store after one of the existing cache modules.
  24. See :ref:`cache modules <all-salt.cache>` for a current list.
  25. .. _configure-minion-data-cache:
  26. Configuring the Minion Data Cache
  27. =================================
  28. The default ``localfs`` Minion data cache module doesn't require any
  29. configuration. External data cache modules with external data stores such as
  30. Consul require a configuration setting in the master config.
  31. Here's an example config for Consul:
  32. .. code-block:: yaml
  33. consul.host: 127.0.0.1
  34. consul.port: 8500
  35. consul.token: None
  36. consul.scheme: http
  37. consul.consistency: default
  38. consul.dc: dc1
  39. consul.verify: True
  40. cache: consul