New Saltstack Salt formula
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.7KB

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