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 4.9KB

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
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
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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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 minion
  82. -----------
  83. Simplest Salt minion setup with central configuration node
  84. .. code-block:: yaml
  85. .. literalinclude:: tests/pillar/minion_master.sls
  86. :language: yaml
  87. Multi-master Salt minion setup
  88. .. literalinclude:: tests/pillar/minion_multi_master.sls
  89. :language: yaml
  90. Salt minion with salt mine options
  91. .. literalinclude:: tests/pillar/minion_mine.sls
  92. :language: yaml
  93. Salt minion with graphing dependencies
  94. .. literalinclude:: tests/pillar/minion_graph.sls
  95. :language: yaml
  96. Salt minion with PKI CA
  97. .. literalinclude:: tests/pillar/minion_pki_ca.sls
  98. :language: yaml
  99. Salt minion with PKI certificate
  100. .. literalinclude:: tests/pillar/minion_pki_cert.sls
  101. :language: yaml
  102. Salt control (cloud/kvm/docker)
  103. -------------------------------
  104. Salt cloud with local OpenStack provider
  105. .. literalinclude:: tests/pillar/control_cloud_openstack.sls
  106. :language: yaml
  107. Salt cloud with Digital Ocean provider
  108. .. literalinclude:: tests/pillar/control_cloud_digitalocean.sls
  109. :language: yaml
  110. Salt virt KVM cluster
  111. .. literalinclude:: tests/pillar/control_virt.sls
  112. :language: yaml
  113. Usage
  114. =====
  115. Working with salt-cloud
  116. .. code-block:: bash
  117. salt-cloud -m /path/to/map --assume-yes
  118. Debug LIBCLOUD for salt-cloud connection
  119. .. code-block:: bash
  120. export LIBCLOUD_DEBUG=/dev/stderr; salt-cloud --list-sizes provider_name --log-level all
  121. Read more
  122. =========
  123. * http://salt.readthedocs.org/en/latest/
  124. * https://github.com/DanielBryan/salt-state-graph
  125. * http://karlgrz.com/testing-salt-states-rapidly-with-docker/
  126. * https://mywushublog.com/2013/03/configuration-management-with-salt-stack/
  127. * http://russell.ballestrini.net/replace-the-nagios-scheduler-and-nrpe-with-salt-stack/
  128. * https://github.com/saltstack-formulas/salt-formula
  129. * http://docs.saltstack.com/en/latest/topics/tutorials/multimaster.html
  130. salt-cloud
  131. ----------
  132. * http://www.blog.sandro-mathys.ch/2013/07/setting-user-password-when-launching.html
  133. * http://cloudinit.readthedocs.org/en/latest/topics/examples.html
  134. * http://salt-cloud.readthedocs.org/en/latest/topics/install/index.html
  135. * http://docs.saltstack.com/topics/cloud/digitalocean.html
  136. * http://salt-cloud.readthedocs.org/en/latest/topics/rackspace.html
  137. * http://salt-cloud.readthedocs.org/en/latest/topics/map.html
  138. * http://docs.saltstack.com/en/latest/topics/tutorials/multimaster.html
  139. salt-virt
  140. ---------
  141. Sample pillar
  142. .. code-block:: yaml
  143. salt:
  144. control:
  145. enabled: True
  146. virt_enabled: True
  147. size:
  148. medium:
  149. cpu: 2
  150. ram: 1024
  151. cluster:
  152. localnode:
  153. domain: domain.com
  154. engine: virt
  155. config:
  156. engine: salt
  157. host: 127.0.0.1
  158. node:
  159. ubuntu01:
  160. provider: node001.domain.com
  161. image: ubuntu-14-04-x64-1456128611.qcow2
  162. size: medium
  163. disk_profile: database
  164. net_profile: testing