Saltstack Official 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.

пре 11 година
пре 11 година
пре 11 година
пре 11 година
пре 11 година
пре 11 година
пре 11 година
пре 10 година
пре 8 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. salt:
  2. # Set this to true to clean any non-salt-formula managed files out of
  3. # /etc/salt/{master,minion}.d ... You really don't want to do this on 2015.2
  4. # and up as it'll wipe out important files that Salt relies on.
  5. clean_config_d_dir: False
  6. # Set this to False to not have the formula install packages (in the case you
  7. # install Salt via git/pip/etc.)
  8. install_packages: True
  9. # to overwrite map.jinja salt packages
  10. lookup:
  11. salt-master: 'salt-master'
  12. salt-minion: 'salt-minion'
  13. salt-syndic: 'salt-syndic'
  14. salt-cloud: 'salt-cloud'
  15. salt-ssh: 'salt-ssh'
  16. # salt master config
  17. master:
  18. fileserver_backend:
  19. - git
  20. - roots
  21. gitfs_remotes:
  22. - git://github.com/saltstack-formulas/salt-formula.git:
  23. - base: develop
  24. file_roots:
  25. base:
  26. - /srv/salt
  27. pillar_roots:
  28. base:
  29. - /srv/pillar
  30. # for salt-api with tornado rest interface
  31. rest_tornado:
  32. port: 8000
  33. ssl_crt: /etc/pki/api/certs/server.crt
  34. ssl_key: /etc/pki/api/certs/server.key
  35. debug: False
  36. disable_ssl: False
  37. ## for external auth - LDAP
  38. # filter to use for Active Directory LDAP
  39. auth.ldap.filter: {% raw %}'sAMAccountName={{username}}'{% endraw %}
  40. # filter to use for Most other LDAP servers
  41. auth.ldap.filter: {% raw %}'uid={{ username }}'{% endraw %}
  42. # salt minion config:
  43. minion:
  44. # single master setup
  45. master: salt
  46. # multi master setup
  47. #master:
  48. #- salt_master_1
  49. #- salt_master_2
  50. fileserver_backend:
  51. - git
  52. - roots
  53. gitfs_remotes:
  54. - git://github.com/saltstack-formulas/salt-formula.git:
  55. - base: develop
  56. file_roots:
  57. base:
  58. - /srv/salt
  59. pillar_roots:
  60. base:
  61. - /srv/pillar
  62. module_config:
  63. test: True
  64. test.foo: foo
  65. test.bar:
  66. - baz
  67. - quo
  68. test.baz:
  69. spam: sausage
  70. cheese: bread
  71. # salt mine setup
  72. mine_interval: 60
  73. # mine_functions can be set at the top level of the pillar, and
  74. # that is preferable because it doesn't affect the conf file and
  75. # doesn't require a minion restart. However, you can configure it
  76. # here instead if you really want to.
  77. mine_functions:
  78. network.interface_ip: [eth0]
  79. # salt cloud config
  80. cloud:
  81. master: salt
  82. # For non-templated custom cloud provider/profile/map files
  83. providers:
  84. provider-filename1.conf:
  85. vmware-prod:
  86. driver: vmware
  87. user: myusernameprod
  88. password: mypassword
  89. vmware-nonprod:
  90. driver: vmware
  91. user: myusernamenonprod
  92. password: mypassword
  93. profiles:
  94. profile-filename1.conf:
  95. server-non-prod:
  96. clonefrom: rhel6xtemplatenp
  97. grains:
  98. platform:
  99. name: salt
  100. realm: lab
  101. subscription_level: standard
  102. memory: 8GB
  103. num_cpus: 4
  104. password: sUpErsecretey
  105. provider: vmware-nonprod
  106. maps:
  107. map-filename1.map:
  108. server-non-prod:
  109. - host.mycompany.com:
  110. grains:
  111. environment: dev1
  112. # You can take profile and map templates from an alternate location
  113. # if you want to write your own.
  114. template_sources:
  115. providers: salt://salt/files/cloud.providers.d
  116. profiles: salt://salt/files/cloud.profiles.d
  117. maps: salt://salt/files/cloud.maps.d
  118. # These settings are used by the default provider templates and
  119. # only need to be set for the ones you're using.
  120. aws_key: AWSKEYIJSHJAIJS6JSH
  121. aws_secret: AWSSECRETYkkDY1iQf9zRtl9+pW+Nm+aZY95
  122. gce_project: test
  123. gce_service_account_email_address: 867543072364-orl4h2tpp8jcn1tr9ipj@developer.gserviceaccount.com
  124. rsos_user: afeawofghob
  125. rsos_tenant: tenant_id_number
  126. rsos_apikey: WFJIOJEOIGHSOFHESO
  127. rsos_regions:
  128. - ORD
  129. - DFW
  130. - IAD
  131. - SYD
  132. - HKG
  133. reactor:
  134. - 'deploy':
  135. - /srv/salt/reactors/deploy.sls
  136. ssh_roster:
  137. prod1:
  138. host: host.example.com
  139. user: ubuntu
  140. sudo: True
  141. priv: /etc/salt/ssh_keys/sshkey.pem
  142. gitfs:
  143. keys:
  144. global:
  145. # key and pub end up being the extension used on the key file. values other than key and pub are possible
  146. key: |
  147. -----BEGIN RSA PRIVATE KEY-----
  148. ...........
  149. -----END RSA PRIVATE KEY-----
  150. pub: |
  151. ...........
  152. salt_cloud_certs:
  153. aws:
  154. pem: |
  155. -----BEGIN RSA PRIVATE KEY-----
  156. ...........
  157. -----END RSA PRIVATE KEY-----
  158. gce:
  159. pem: |
  160. -----BEGIN RSA PRIVATE KEY-----
  161. ...........
  162. -----END RSA PRIVATE KEY-----
  163. salt_formulas:
  164. git_opts:
  165. # The Git options can be customized differently for each
  166. # environment, if an option is missing in a given environment, the
  167. # value from "default" is used instead.
  168. default:
  169. # URL where the formulas git repositories are downloaded from
  170. # it will be suffixed with <formula-name>.git
  171. baseurl: https://github.com/saltstack-formulas
  172. # Directory where Git repositories are downloaded
  173. basedir: /srv/formulas
  174. # Update the git repository to the latest version (False by default)
  175. update: False
  176. # Options passed directly to the git.latest state
  177. options:
  178. rev: master
  179. dev:
  180. basedir: /srv/formulas/dev
  181. update: True
  182. options:
  183. rev: develop
  184. # Options of the file.directory state that creates the directory where
  185. # the git repositories of the formulas are stored
  186. basedir_opts:
  187. makedirs: True
  188. user: root
  189. group: root
  190. mode: 755
  191. # List of formulas to enable in each environment
  192. list:
  193. base:
  194. - salt-formula
  195. - postfix-formula
  196. dev:
  197. - salt-formula
  198. - postfix-formula
  199. - openssh-formula