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.5KB

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