1
0

index.rst 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. - m_name: moe
  38. - new_name: larry
  39. - onlyif: id moe
  40. **Renderers**
  41. Renderers use state configuration files written in a variety of languages,
  42. templating engines, or files. Salt's configuration management system is,
  43. under the hood, language agnostic.
  44. :ref:`Full list of renderers <all-salt.renderers>`
  45. Contains: a list of renderers.
  46. YAML is one choice, but many systems are available, from
  47. alternative templating engines to the PyDSL language for rendering
  48. sls formulas.
  49. :ref:`Renderers <renderers>`
  50. Contains: more information about renderers. Salt states are only
  51. concerned with the ultimate highstate data structure, not how the
  52. data structure was created.
  53. .. toctree::
  54. :maxdepth: 1
  55. ../tutorials/starting_states
  56. ../tutorials/states_pt1
  57. ../tutorials/states_pt2
  58. ../tutorials/states_pt3
  59. ../tutorials/states_pt4
  60. ../../ref/states/index