index.rst 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. .. _configuration-management:
  2. ========================
  3. Configuration Management
  4. ========================
  5. Salt contains a robust and flexible configuration management framework, which
  6. is built on the remote execution core. This framework executes on the minions,
  7. allowing effortless, simultaneous configuration of tens of thousands of hosts,
  8. by rendering language specific state files. The following links provide
  9. resources to learn more about state and renderers.
  10. **States**
  11. Express the state of a host using small, easy to read, easy to
  12. understand configuration files. *No programming required*.
  13. :ref:`Full list of states <all-salt.states>`
  14. Contains: list of install packages, create users, transfer files, start
  15. services, and so on.
  16. :ref:`Pillar System <pillar>`
  17. Contains: description of Salt's Pillar system.
  18. :ref:`Highstate data structure <states-highstate>`
  19. Contains: a dry vocabulary and technical representation of the
  20. configuration format that states represent.
  21. :ref:`Writing states <state-modules>`
  22. Contains: a guide on how to write Salt state modules, easily extending
  23. Salt to directly manage more software.
  24. .. note::
  25. Salt execution modules are different from state modules and cannot be
  26. called as a state in an SLS file. In other words, this will not work:
  27. .. code-block:: yaml
  28. moe:
  29. user.rename:
  30. - new_name: larry
  31. - onlyif: id moe
  32. You must use the :mod:`module <salt.states.module>` states to call
  33. execution modules directly. Here's an example:
  34. .. code-block:: yaml
  35. rename_moe:
  36. module.run:
  37. - name: user.rename
  38. - m_name: moe
  39. - new_name: larry
  40. - onlyif: id moe
  41. **Renderers**
  42. Renderers use state configuration files written in a variety of languages,
  43. templating engines, or files. Salt's configuration management system is,
  44. under the hood, language agnostic.
  45. :ref:`Full list of renderers <all-salt.renderers>`
  46. Contains: a list of renderers.
  47. YAML is one choice, but many systems are available, from
  48. alternative templating engines to the PyDSL language for rendering
  49. sls formulas.
  50. :ref:`Renderers <renderers>`
  51. Contains: more information about renderers. Salt states are only
  52. concerned with the ultimate highstate data structure, not how the
  53. data structure was created.
  54. .. toctree::
  55. :maxdepth: 1
  56. ../tutorials/starting_states
  57. ../tutorials/states_pt1
  58. ../tutorials/states_pt2
  59. ../tutorials/states_pt3
  60. ../tutorials/states_pt4
  61. ../../ref/states/index