New version of salt-formula from Saltstack
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.

README.rst 6.2KB

9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
8 yıl önce
9 yıl önce
8 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
8 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
8 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. ====
  2. Salt
  3. ====
  4. Salt is a new approach to infrastructure management. Easy enough to get running in minutes, scalable enough to manage tens of thousands of servers, and fast enough to communicate with them in seconds.
  5. Salt delivers a dynamic communication bus for infrastructures that can be used for orchestration, remote execution, configuration management and much more.
  6. Sample pillars
  7. ==============
  8. Salt master
  9. -----------
  10. Salt master with base production environment and pillar tree as metadata backend
  11. .. literalinclude:: tests/pillar/master_single_pillar.sls
  12. :language: yaml
  13. Salt master with reclass ENC as metadata backend
  14. .. literalinclude:: tests/pillar/master_single_reclass.sls
  15. :language: yaml
  16. Salt master with API
  17. .. code-block:: yaml
  18. salt:
  19. api:
  20. enabled: true
  21. ssl:
  22. engine: salt
  23. bind:
  24. address: 0.0.0.0
  25. port: 8000
  26. Salt master with defined user ACLs
  27. .. code-block:: yaml
  28. salt:
  29. master:
  30. user:
  31. peter:
  32. permissions:
  33. - 'fs.fs'
  34. - 'fs.\*'
  35. Salt master with preset minions
  36. .. code-block:: yaml
  37. salt:
  38. master:
  39. enabled: true
  40. ...
  41. minions:
  42. - name: 'node1.system.location.domain.com'
  43. Salt master with alternative installation source and version (optional) - pip
  44. .. code-block:: yaml
  45. salt:
  46. master:
  47. enabled: true
  48. ...
  49. source:
  50. engine: pip
  51. version: 2016.3.0rc2
  52. Salt master with specified formula to install through apt-get
  53. .. code-block:: yaml
  54. salt:
  55. master:
  56. enabled: true
  57. ...
  58. environment:
  59. prd:
  60. keysone:
  61. source: pkg
  62. name: salt-formula-keystone
  63. Clone master branch of keystone formula as local feature branch
  64. .. code-block:: yaml
  65. salt:
  66. master:
  67. enabled: true
  68. ...
  69. environment:
  70. dev:
  71. formula:
  72. keystone:
  73. source: git
  74. address: git@github.com:openstack/salt-formula-keystone.git
  75. revision: master
  76. branch: feature
  77. Salt master with specified formula refs (for example for Gerrit review)
  78. .. code-block:: yaml
  79. salt:
  80. master:
  81. enabled: true
  82. ...
  83. environment:
  84. dev:
  85. formula:
  86. keystone:
  87. source: git
  88. address: https://git.openstack.org/openstack/salt-formula-keystone
  89. revision: refs/changes/56/123456/1
  90. Salt master syndicate master of masters
  91. .. code-block:: yaml
  92. salt:
  93. master:
  94. enabled: true
  95. ...
  96. syndic:
  97. mode: master
  98. Salt master syndicate (client) master
  99. .. code-block:: yaml
  100. salt:
  101. master:
  102. enabled: true
  103. ...
  104. syndicate:
  105. mode: client
  106. host: master-master
  107. Salt master with custom handlers
  108. .. code-block:: yaml
  109. salt:
  110. master:
  111. enabled: true
  112. handler:
  113. handler01:
  114. engine: udp
  115. bind:
  116. host: 127.0.0.1
  117. port: 9999
  118. minion:
  119. handler:
  120. handler01:
  121. engine: udp
  122. bind:
  123. host: 127.0.0.1
  124. port: 9999
  125. handler02:
  126. engine: zmq
  127. bind:
  128. host: 127.0.0.1
  129. port: 9999
  130. Salt master peer for remote certificate sign.
  131. .. code-block:: yaml
  132. salt:
  133. master:
  134. peer:
  135. ".*":
  136. - x509.sign_remote_certificate
  137. Salt SSH
  138. --------
  139. Salt SSH with sudoer using key
  140. .. literalinclude:: tests/pillar/master_ssh_minion_key.sls
  141. :language: yaml
  142. Salt SSH with sudoer using password
  143. .. literalinclude:: tests/pillar/master_ssh_minion_password.sls
  144. :language: yaml
  145. Salt SSH with root using password
  146. .. literalinclude:: tests/pillar/master_ssh_minion_root.sls
  147. :language: yaml
  148. Salt minion
  149. -----------
  150. Simplest Salt minion setup with central configuration node
  151. .. code-block:: yaml
  152. .. literalinclude:: tests/pillar/minion_master.sls
  153. :language: yaml
  154. Multi-master Salt minion setup
  155. .. literalinclude:: tests/pillar/minion_multi_master.sls
  156. :language: yaml
  157. Salt minion with salt mine options
  158. .. literalinclude:: tests/pillar/minion_mine.sls
  159. :language: yaml
  160. Salt minion with graphing dependencies
  161. .. literalinclude:: tests/pillar/minion_graph.sls
  162. :language: yaml
  163. Salt minion with PKI CA
  164. .. literalinclude:: tests/pillar/minion_pki_ca.sls
  165. :language: yaml
  166. Salt minion with PKI certificate
  167. .. literalinclude:: tests/pillar/minion_pki_cert.sls
  168. :language: yaml
  169. Salt control (cloud/kvm/docker)
  170. -------------------------------
  171. Salt cloud with local OpenStack provider
  172. .. literalinclude:: tests/pillar/control_cloud_openstack.sls
  173. :language: yaml
  174. Salt cloud with Digital Ocean provider
  175. .. literalinclude:: tests/pillar/control_cloud_digitalocean.sls
  176. :language: yaml
  177. Salt virt with KVM cluster
  178. .. literalinclude:: tests/pillar/control_virt.sls
  179. :language: yaml
  180. Usage
  181. =====
  182. Working with salt-cloud
  183. .. code-block:: bash
  184. salt-cloud -m /path/to/map --assume-yes
  185. Debug LIBCLOUD for salt-cloud connection
  186. .. code-block:: bash
  187. export LIBCLOUD_DEBUG=/dev/stderr; salt-cloud --list-sizes provider_name --log-level all
  188. Read more
  189. =========
  190. * http://salt.readthedocs.org/en/latest/
  191. * https://github.com/DanielBryan/salt-state-graph
  192. * http://karlgrz.com/testing-salt-states-rapidly-with-docker/
  193. * https://mywushublog.com/2013/03/configuration-management-with-salt-stack/
  194. * http://russell.ballestrini.net/replace-the-nagios-scheduler-and-nrpe-with-salt-stack/
  195. * https://github.com/saltstack-formulas/salt-formula
  196. * http://docs.saltstack.com/en/latest/topics/tutorials/multimaster.html
  197. salt-cloud
  198. ----------
  199. * http://www.blog.sandro-mathys.ch/2013/07/setting-user-password-when-launching.html
  200. * http://cloudinit.readthedocs.org/en/latest/topics/examples.html
  201. * http://salt-cloud.readthedocs.org/en/latest/topics/install/index.html
  202. * http://docs.saltstack.com/topics/cloud/digitalocean.html
  203. * http://salt-cloud.readthedocs.org/en/latest/topics/rackspace.html
  204. * http://salt-cloud.readthedocs.org/en/latest/topics/map.html
  205. * http://docs.saltstack.com/en/latest/topics/tutorials/multimaster.html