New version of salt-formula from Saltstack
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 9 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 9 gadiem
pirms 9 gadiem
pirms 9 gadiem
pirms 7 gadiem
pirms 7 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. {%- load_yaml as master_common %}
  2. default:
  3. service: salt-master
  4. {%- if pillar.salt.get('master', {}).get('source', {}).get('engine', 'pkg') == 'pkg' %}
  5. install_state: "pkg: salt_master_packages"
  6. source:
  7. engine: pkg
  8. {%- elif pillar.salt.master.source.engine == 'pip' %}
  9. install_state: "pip: salt_master_packages"
  10. {%- endif %}
  11. {%- if pillar.salt.get('master', {}).get('source', {}).version is defined %}
  12. version: {{ pillar.salt.master.source.version }}
  13. {%- endif %}
  14. accept_policy: preseed
  15. bind: {}
  16. formula: {}
  17. base_environment: dev
  18. dir:
  19. files: /srv/salt/env
  20. pillar:
  21. engine: salt
  22. max_event_size: 100000000
  23. minion_data_cache: 'localfs'
  24. {%- endload %}
  25. {%- load_yaml as master_specific %}
  26. Arch:
  27. pkgs:
  28. - salt-zmq
  29. Debian:
  30. pkgs:
  31. - salt-master
  32. Gentoo:
  33. pkgs:
  34. - app-admin/salt
  35. MacOS:
  36. pkgs:
  37. - saltstack
  38. RedHat:
  39. pkgs:
  40. - salt-master
  41. {%- endload %}
  42. {%- if pillar.salt.master is defined %}
  43. {%- set raw_master = salt['grains.filter_by'](master_specific, merge=salt['pillar.get']('salt:master')) %}
  44. {%- set master = salt['grains.filter_by'](master_common, merge=raw_master) %}
  45. {%- endif %}
  46. {%- load_yaml as syndic_defaults %}
  47. Debian:
  48. service: salt-syndic
  49. pkgs:
  50. - salt-syndic
  51. RedHat:
  52. service: salt-syndic
  53. pkgs:
  54. - salt-syndic
  55. {%- endload %}
  56. {%- set syndic = salt['grains.filter_by'](syndic_defaults, merge=salt['pillar.get']('salt:syndic')) %}
  57. {%- load_yaml as minion_common %}
  58. default:
  59. graph_pkgs:
  60. - graphviz
  61. graph_states_pkgs:
  62. - python-pydot
  63. - python-yaml
  64. graph_states: False
  65. log:
  66. level: info
  67. service: salt-minion
  68. {%- if pillar.salt.get('minion', {}).get('source', {}).get('engine', 'pkg') == 'pkg' %}
  69. install_state: "pkg: salt_minion_packages"
  70. source:
  71. engine: pkg
  72. {%- elif pillar.salt.minion.source.engine == 'pip' %}
  73. install_state: "pip: salt_minion_packages"
  74. {%- endif %}
  75. {%- if pillar.salt.get('minion', {}).get('source', {}).version is defined %}
  76. version: {{ pillar.salt.minion.source.version }}
  77. {%- endif %}
  78. max_event_size: 100000000
  79. {%- endload %}
  80. {%- load_yaml as minion_specific %}
  81. Arch:
  82. pkgs:
  83. - salt-zmq
  84. Debian:
  85. pkgs:
  86. - salt-minion
  87. - python-m2crypto
  88. - python-psutil
  89. - python-yaml
  90. cert_pkgs:
  91. - ca-certificates
  92. Gentoo:
  93. pkgs:
  94. - app-admin/salt
  95. MacOS:
  96. pkgs:
  97. - saltstack
  98. RedHat:
  99. pkgs:
  100. - salt-minion
  101. - m2crypto
  102. - psutils
  103. - PyYAML
  104. cert_pkgs:
  105. - ca-certificates
  106. {%- endload %}
  107. {%- if pillar.salt.minion is defined %}
  108. {%- set raw_minion = salt['grains.filter_by'](minion_specific, merge=salt['pillar.get']('salt:minion')) %}
  109. {%- set minion = salt['grains.filter_by'](minion_common, merge=raw_minion) %}
  110. {%- if pillar.salt.minion.proxy_minion is defined %}
  111. {% set proxy_minion = salt['grains.filter_by']({
  112. 'Debian': {
  113. 'napalm_pkgs': ['python-pip', 'libxml2-dev', 'libxslt1-dev', 'zlib1g-dev'],
  114. 'napalm_pip_pkgs': ['napalm', 'oauth']
  115. },
  116. 'RedHat': {
  117. 'napalm_pkgs': ['libxml2-dev', 'libxslt1-dev', 'zlib1g-dev']
  118. },
  119. }, merge=pillar.salt.minion.get('proxy_minion', {})) %}
  120. {%- endif %}
  121. {%- endif %}
  122. {%- load_yaml as api_common %}
  123. default:
  124. pkgs:
  125. - salt-api
  126. service: salt-api
  127. {%- endload %}
  128. {%- set api = salt['grains.filter_by'](api_common, merge=salt['pillar.get']('salt:api')) %}
  129. {%- load_yaml as control_common %}
  130. default:
  131. cloud_pips:
  132. - apache-libcloud
  133. - netaddr
  134. cloud_pkgs:
  135. - python-netaddr
  136. - python-libcloud
  137. virt_pips:
  138. - libvirt-python
  139. maas_pkgs:
  140. - python-maas-client
  141. cluster: {}
  142. {%- endload %}
  143. {%- load_yaml as control_specific %}
  144. Debian:
  145. virt_pkgs:
  146. - libvirt-dev
  147. - pkg-config
  148. {% if grains.oscodename == 'trusty' %}
  149. - libguestfs-tools
  150. {% endif %}
  151. RedHat:
  152. virt_pkgs:
  153. - libvirt-dev
  154. - pkg-config
  155. {%- endload %}
  156. {%- if pillar.salt.control is defined %}
  157. {%- set raw_control = salt['grains.filter_by'](control_specific, merge=salt['pillar.get']('salt:control')) %}
  158. {%- set control = salt['grains.filter_by'](control_common, merge=raw_control) %}
  159. {%- endif %}