New version of salt-formula from Saltstack
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

README.rst 5.1KB

9 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
8 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
9 anos atrás
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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 syndicate master of masters
  42. .. code-block:: yaml
  43. salt:
  44. master:
  45. enabled: true
  46. ...
  47. syndic:
  48. mode: master
  49. Salt master syndicate (client) master
  50. .. code-block:: yaml
  51. salt:
  52. master:
  53. enabled: true
  54. ...
  55. syndicate:
  56. mode: client
  57. host: master-master
  58. Salt master with custom handlers
  59. .. code-block:: yaml
  60. salt:
  61. master:
  62. enabled: true
  63. handler:
  64. handler01:
  65. engine: udp
  66. bind:
  67. host: 127.0.0.1
  68. port: 9999
  69. minion:
  70. handler:
  71. handler01:
  72. engine: udp
  73. bind:
  74. host: 127.0.0.1
  75. port: 9999
  76. handler02:
  77. engine: zmq
  78. bind:
  79. host: 127.0.0.1
  80. port: 9999
  81. Salt master peer for remote certificate sign.
  82. .. code-block:: yaml
  83. salt:
  84. master:
  85. peer:
  86. ".*":
  87. - x509.sign_remote_certificate
  88. Salt minion
  89. -----------
  90. Simplest Salt minion setup with central configuration node
  91. .. code-block:: yaml
  92. .. literalinclude:: tests/pillar/minion_master.sls
  93. :language: yaml
  94. Multi-master Salt minion setup
  95. .. literalinclude:: tests/pillar/minion_multi_master.sls
  96. :language: yaml
  97. Salt minion with salt mine options
  98. .. literalinclude:: tests/pillar/minion_mine.sls
  99. :language: yaml
  100. Salt minion with graphing dependencies
  101. .. literalinclude:: tests/pillar/minion_graph.sls
  102. :language: yaml
  103. Salt minion with PKI CA
  104. .. literalinclude:: tests/pillar/minion_pki_ca.sls
  105. :language: yaml
  106. Salt minion with PKI certificate
  107. .. literalinclude:: tests/pillar/minion_pki_cert.sls
  108. :language: yaml
  109. Salt control (cloud/kvm/docker)
  110. -------------------------------
  111. Salt cloud with local OpenStack provider
  112. .. literalinclude:: tests/pillar/control_cloud_openstack.sls
  113. :language: yaml
  114. Salt cloud with Digital Ocean provider
  115. .. literalinclude:: tests/pillar/control_cloud_digitalocean.sls
  116. :language: yaml
  117. Salt virt KVM cluster
  118. .. literalinclude:: tests/pillar/control_virt.sls
  119. :language: yaml
  120. Usage
  121. =====
  122. Working with salt-cloud
  123. .. code-block:: bash
  124. salt-cloud -m /path/to/map --assume-yes
  125. Debug LIBCLOUD for salt-cloud connection
  126. .. code-block:: bash
  127. export LIBCLOUD_DEBUG=/dev/stderr; salt-cloud --list-sizes provider_name --log-level all
  128. Read more
  129. =========
  130. * http://salt.readthedocs.org/en/latest/
  131. * https://github.com/DanielBryan/salt-state-graph
  132. * http://karlgrz.com/testing-salt-states-rapidly-with-docker/
  133. * https://mywushublog.com/2013/03/configuration-management-with-salt-stack/
  134. * http://russell.ballestrini.net/replace-the-nagios-scheduler-and-nrpe-with-salt-stack/
  135. * https://github.com/saltstack-formulas/salt-formula
  136. * http://docs.saltstack.com/en/latest/topics/tutorials/multimaster.html
  137. salt-cloud
  138. ----------
  139. * http://www.blog.sandro-mathys.ch/2013/07/setting-user-password-when-launching.html
  140. * http://cloudinit.readthedocs.org/en/latest/topics/examples.html
  141. * http://salt-cloud.readthedocs.org/en/latest/topics/install/index.html
  142. * http://docs.saltstack.com/topics/cloud/digitalocean.html
  143. * http://salt-cloud.readthedocs.org/en/latest/topics/rackspace.html
  144. * http://salt-cloud.readthedocs.org/en/latest/topics/map.html
  145. * http://docs.saltstack.com/en/latest/topics/tutorials/multimaster.html
  146. salt-virt
  147. ---------
  148. Sample pillar
  149. .. code-block:: yaml
  150. salt:
  151. control:
  152. enabled: True
  153. virt_enabled: True
  154. size:
  155. medium:
  156. cpu: 2
  157. ram: 1024
  158. cluster:
  159. localnode:
  160. domain: domain.com
  161. engine: virt
  162. config:
  163. engine: salt
  164. host: 127.0.0.1
  165. node:
  166. ubuntu01:
  167. provider: node001.domain.com
  168. image: ubuntu-14-04-x64-1456128611.qcow2
  169. size: medium
  170. disk_profile: database
  171. net_profile: testing