New version of salt-formula from Saltstack
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 8 ans
il y a 8 ans
il y a 9 ans
il y a 9 ans
il y a 8 ans
il y a 9 ans
il y a 9 ans
il y a 8 ans
il y a 9 ans
il y a 8 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 8 ans
il y a 9 ans
il y a 8 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 8 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
il y a 9 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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. .. literalinclude:: tests/pillar/master_api.sls
  18. :language: yaml
  19. Salt master with defined user ACLs
  20. .. literalinclude:: tests/pillar/master_acl.sls
  21. :language: yaml
  22. Salt master with preset minions
  23. .. code-block:: yaml
  24. salt:
  25. master:
  26. enabled: true
  27. minions:
  28. - name: 'node1.system.location.domain.com'
  29. Salt master with alternative installation source and version (optional) - pip
  30. .. code-block:: yaml
  31. salt:
  32. master:
  33. enabled: true
  34. ...
  35. source:
  36. engine: pip
  37. version: 2016.3.0rc2
  38. Salt master with specified formula to install through apt-get
  39. .. code-block:: yaml
  40. salt:
  41. master:
  42. enabled: true
  43. ...
  44. environment:
  45. prd:
  46. keysone:
  47. source: pkg
  48. name: salt-formula-keystone
  49. Clone master branch of keystone formula as local feature branch
  50. .. code-block:: yaml
  51. salt:
  52. master:
  53. enabled: true
  54. ...
  55. environment:
  56. dev:
  57. formula:
  58. keystone:
  59. source: git
  60. address: git@github.com:openstack/salt-formula-keystone.git
  61. revision: master
  62. branch: feature
  63. Salt master with specified formula refs (for example for Gerrit review)
  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: https://git.openstack.org/openstack/salt-formula-keystone
  75. revision: refs/changes/56/123456/1
  76. Salt master syndicate master of masters
  77. .. code-block:: yaml
  78. salt:
  79. master:
  80. enabled: true
  81. syndicate:
  82. mode: master
  83. Salt master syndicate (client) master
  84. .. code-block:: yaml
  85. salt:
  86. master:
  87. enabled: true
  88. syndicate:
  89. mode: client
  90. host: master-master
  91. Salt master with custom handlers
  92. .. code-block:: yaml
  93. salt:
  94. master:
  95. enabled: true
  96. handler:
  97. handler01:
  98. engine: udp
  99. bind:
  100. host: 127.0.0.1
  101. port: 9999
  102. minion:
  103. handler:
  104. handler01:
  105. engine: udp
  106. bind:
  107. host: 127.0.0.1
  108. port: 9999
  109. handler02:
  110. engine: zmq
  111. bind:
  112. host: 127.0.0.1
  113. port: 9999
  114. Salt master peer for remote certificate sign.
  115. .. code-block:: yaml
  116. salt:
  117. master:
  118. peer:
  119. ".*":
  120. - x509.sign_remote_certificate
  121. Salt SSH
  122. --------
  123. Salt SSH with sudoer using key
  124. .. literalinclude:: tests/pillar/master_ssh_minion_key.sls
  125. :language: yaml
  126. Salt SSH with sudoer using password
  127. .. literalinclude:: tests/pillar/master_ssh_minion_password.sls
  128. :language: yaml
  129. Salt SSH with root using password
  130. .. literalinclude:: tests/pillar/master_ssh_minion_root.sls
  131. :language: yaml
  132. Salt minion
  133. -----------
  134. Simplest Salt minion setup with central configuration node
  135. .. code-block:: yaml
  136. .. literalinclude:: tests/pillar/minion_master.sls
  137. :language: yaml
  138. Multi-master Salt minion setup
  139. .. literalinclude:: tests/pillar/minion_multi_master.sls
  140. :language: yaml
  141. Salt minion with salt mine options
  142. .. literalinclude:: tests/pillar/minion_mine.sls
  143. :language: yaml
  144. Salt minion with graphing dependencies
  145. .. literalinclude:: tests/pillar/minion_graph.sls
  146. :language: yaml
  147. PKI CA
  148. ~~~~~~
  149. Salt minion with PKI CA
  150. .. literalinclude:: tests/pillar/minion_pki_ca.sls
  151. :language: yaml
  152. Salt minion with PKI certificate
  153. .. literalinclude:: tests/pillar/minion_pki_cert.sls
  154. :language: yaml
  155. Salt control (cloud/kvm/docker)
  156. -------------------------------
  157. Salt cloud with local OpenStack provider
  158. .. literalinclude:: tests/pillar/control_cloud_openstack.sls
  159. :language: yaml
  160. Salt cloud with Digital Ocean provider
  161. .. literalinclude:: tests/pillar/control_cloud_digitalocean.sls
  162. :language: yaml
  163. Salt virt with KVM cluster
  164. .. literalinclude:: tests/pillar/control_virt.sls
  165. :language: yaml
  166. Usage
  167. =====
  168. Working with salt-cloud
  169. .. code-block:: bash
  170. salt-cloud -m /path/to/map --assume-yes
  171. Debug LIBCLOUD for salt-cloud connection
  172. .. code-block:: bash
  173. export LIBCLOUD_DEBUG=/dev/stderr; salt-cloud --list-sizes provider_name --log-level all
  174. Read more
  175. =========
  176. * http://salt.readthedocs.org/en/latest/
  177. * https://github.com/DanielBryan/salt-state-graph
  178. * http://karlgrz.com/testing-salt-states-rapidly-with-docker/
  179. * https://mywushublog.com/2013/03/configuration-management-with-salt-stack/
  180. * http://russell.ballestrini.net/replace-the-nagios-scheduler-and-nrpe-with-salt-stack/
  181. * https://github.com/saltstack-formulas/salt-formula
  182. * http://docs.saltstack.com/en/latest/topics/tutorials/multimaster.html
  183. salt-cloud
  184. ----------
  185. * http://www.blog.sandro-mathys.ch/2013/07/setting-user-password-when-launching.html
  186. * http://cloudinit.readthedocs.org/en/latest/topics/examples.html
  187. * http://salt-cloud.readthedocs.org/en/latest/topics/install/index.html
  188. * http://docs.saltstack.com/topics/cloud/digitalocean.html
  189. * http://salt-cloud.readthedocs.org/en/latest/topics/rackspace.html
  190. * http://salt-cloud.readthedocs.org/en/latest/topics/map.html
  191. * http://docs.saltstack.com/en/latest/topics/tutorials/multimaster.html