Saltstack Official Salt Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 11 години
преди 11 години
преди 11 години
преди 10 години
преди 11 години
преди 11 години
преди 11 години
преди 11 години
преди 11 години
преди 11 години
преди 11 години
преди 9 години
преди 10 години
преди 10 години
преди 10 години
преди 11 години
преди 10 години
преди 11 години
преди 11 години
преди 11 години
преди 11 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. ====
  2. salt
  3. ====
  4. Yes, Salt can Salt itself!
  5. .. note::
  6. See the full `Salt Formulas installation and usage instructions
  7. <http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_.
  8. Available states
  9. ================
  10. .. contents::
  11. :local:
  12. ``salt.minion``
  13. ---------------
  14. Install a minion
  15. ``salt.master``
  16. ---------------
  17. Install a master.
  18. ``salt.syndic``
  19. ---------------
  20. Install a syndic.
  21. ``salt.cloud``
  22. ---------------
  23. Install salt cloud.
  24. ``salt.ssh``
  25. ------------
  26. Install salt-ssh with roster file.
  27. Configure pillar data under salt:ssh_roster to feed the template.
  28. ``salt.api``
  29. ------------
  30. Install salt api
  31. Requisite: Configure salt-master with rest_cherrypy or rest_tornado.
  32. ``salt.standalone``
  33. -------------------
  34. Install a minion and configure it in `standalone mode
  35. <http://docs.saltstack.com/en/latest/topics/tutorials/standalone_minion.html>`_.
  36. ``salt.gitfs.dulwich``
  37. ----------------------
  38. Install gitfs backend dulwich dependencies. Set ``salt:master:gitfs_provider: dulwich`` in your pillar.
  39. ``salt.gitfs.gitpython``
  40. ----------------------
  41. Install gitfs backend GitPython dependenciess. Set ``salt:master:gitfs_provider: gitpython`` in your pillar.
  42. ``salt.gitfs.pygit2``
  43. ----------------------
  44. Install gitfs backend libgit2/pygit2 dependenciess. Set ``salt:master:gitfs_provider: pygit2`` in your pillar.
  45. For EL distributions, pygit is installed from packages from `EPEL <https://github.com/saltstack-formulas/epel-formula>`_.
  46. ``salt.pkgrepo``
  47. ----------------
  48. Enable the official saltstack package repository in order to always
  49. benefit from the latest version. This state currently only works on Debian, Ubuntu, RHEL 6/7 and aims to implement the `installation recommendations of the official documentation <http://docs.saltstack.com/en/latest/topics/installation/index.html#platform-specific-installation-instructions>`_.
  50. ``salt.pkgrepo.absent``
  51. -----------------------
  52. Undo the effects of ``salt.pkgrepo``.
  53. ``salt.formulas``
  54. -----------------
  55. Clone selected `Salt formulas
  56. <http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_
  57. Git repositories under ``/srv/formulas`` and makes them available in the
  58. relevant ``file_roots`` settings. Pillar data can be used to customize all
  59. paths, URLs, etc.
  60. Here's a minimal pillar sample installing two formulas in the base
  61. environment.
  62. ::
  63. salt_formulas:
  64. list:
  65. base:
  66. - salt-formula
  67. - openssh-formula
  68. See pillar.example for an exhaustive list of settings available via pillar. Note
  69. that by default this state:
  70. - downloads the latest formulas from the `saltstack-formulas project
  71. <https://github.com/saltstack-formulas>`_ on GitHub.
  72. - does not update the local repositories after the initial clone.
  73. This is a safety measure since you do not control how the official
  74. repositories evolve.
  75. If you configure the state to download the formulas from repositories that
  76. you control, then you can safely enable the
  77. ``salt_formulas:git_opts:default:update`` pillar setting to ``True``.
  78. ``Configuration``
  79. =================
  80. Every option available in the templates can be set in pillar. Settings under 'salt' will be overridden by more specific settings under ``salt['master']``, ``salt['minion']`` or ``salt['cloud']``
  81. ::
  82. salt:
  83. ret_port: 4506
  84. master:
  85. user: saltuser
  86. ...
  87. minion:
  88. user: saltuser
  89. ...
  90. cloud:
  91. providers: ec2
  92. ...
  93. ``Extending``
  94. =============
  95. Additional templates can be added by the user under salt/files/minion.d and master.d. This might be useful if, for example, a recently-added configuration option is not yet provided by the default template.
  96. ``Vagrant``
  97. ===========
  98. Executing the provided `Vagrantfile <http://www.vagrantup.com/>`_ will create a Ubuntu 14.04 VM, add the default Saltstack Repository and install the current stable version.
  99. The folders inside the VM will be set up in a way that enables you to simply execute 'sudo salt "*" state.highstate' to apply the salt formula to the VM, using the pillar.example config. You can check /etc/salt/ for results.
  100. Remember, you will have to run ``state.highstate`` or ``state.sls salt.(master|minion|cloud)`` manually.