New Saltstack Salt formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

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