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

231 rinda
6.1KB

  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. # optional engine configuration
  43. engines:
  44. slack:
  45. token: xoxp-XXXXX-XXXXXXX
  46. control: True
  47. valid_users:
  48. - someuser
  49. - otheruser
  50. valid_commands:
  51. - test.ping
  52. - list_jobs
  53. aliases:
  54. list_jobs:
  55. type: runner
  56. cmd: jobs.list_jobs
  57. # salt minion config:
  58. minion:
  59. # single master setup
  60. master: salt
  61. # multi master setup
  62. #master:
  63. #- salt_master_1
  64. #- salt_master_2
  65. fileserver_backend:
  66. - git
  67. - roots
  68. gitfs_remotes:
  69. - git://github.com/saltstack-formulas/salt-formula.git:
  70. - base: develop
  71. file_roots:
  72. base:
  73. - /srv/salt
  74. pillar_roots:
  75. base:
  76. - /srv/pillar
  77. module_config:
  78. test: True
  79. test.foo: foo
  80. test.bar:
  81. - baz
  82. - quo
  83. test.baz:
  84. spam: sausage
  85. cheese: bread
  86. # salt mine setup
  87. mine_interval: 60
  88. # mine_functions can be set at the top level of the pillar, and
  89. # that is preferable because it doesn't affect the conf file and
  90. # doesn't require a minion restart. However, you can configure it
  91. # here instead if you really want to.
  92. mine_functions:
  93. network.interface_ip: [eth0]
  94. # salt cloud config
  95. cloud:
  96. master: salt
  97. # For non-templated custom cloud provider/profile/map files
  98. providers:
  99. provider-filename1.conf:
  100. vmware-prod:
  101. driver: vmware
  102. user: myusernameprod
  103. password: mypassword
  104. vmware-nonprod:
  105. driver: vmware
  106. user: myusernamenonprod
  107. password: mypassword
  108. profiles:
  109. profile-filename1.conf:
  110. server-non-prod:
  111. clonefrom: rhel6xtemplatenp
  112. grains:
  113. platform:
  114. name: salt
  115. realm: lab
  116. subscription_level: standard
  117. memory: 8GB
  118. num_cpus: 4
  119. password: sUpErsecretey
  120. provider: vmware-nonprod
  121. maps:
  122. map-filename1.map:
  123. server-non-prod:
  124. - host.mycompany.com:
  125. grains:
  126. environment: dev1
  127. # You can take profile and map templates from an alternate location
  128. # if you want to write your own.
  129. template_sources:
  130. providers: salt://salt/files/cloud.providers.d
  131. profiles: salt://salt/files/cloud.profiles.d
  132. maps: salt://salt/files/cloud.maps.d
  133. # These settings are used by the default provider templates and
  134. # only need to be set for the ones you're using.
  135. aws_key: AWSKEYIJSHJAIJS6JSH
  136. aws_secret: AWSSECRETYkkDY1iQf9zRtl9+pW+Nm+aZY95
  137. gce_project: test
  138. gce_service_account_email_address: 867543072364-orl4h2tpp8jcn1tr9ipj@developer.gserviceaccount.com
  139. rsos_user: afeawofghob
  140. rsos_tenant: tenant_id_number
  141. rsos_apikey: WFJIOJEOIGHSOFHESO
  142. rsos_regions:
  143. - ORD
  144. - DFW
  145. - IAD
  146. - SYD
  147. - HKG
  148. reactor:
  149. - 'deploy':
  150. - /srv/salt/reactors/deploy.sls
  151. ssh_roster:
  152. prod1:
  153. host: host.example.com
  154. user: ubuntu
  155. sudo: True
  156. priv: /etc/salt/ssh_keys/sshkey.pem
  157. gitfs:
  158. keys:
  159. global:
  160. # key and pub end up being the extension used on the key file. values other than key and pub are possible
  161. key: |
  162. -----BEGIN RSA PRIVATE KEY-----
  163. ...........
  164. -----END RSA PRIVATE KEY-----
  165. pub: |
  166. ...........
  167. salt_cloud_certs:
  168. aws:
  169. pem: |
  170. -----BEGIN RSA PRIVATE KEY-----
  171. ...........
  172. -----END RSA PRIVATE KEY-----
  173. gce:
  174. pem: |
  175. -----BEGIN RSA PRIVATE KEY-----
  176. ...........
  177. -----END RSA PRIVATE KEY-----
  178. salt_formulas:
  179. git_opts:
  180. # The Git options can be customized differently for each
  181. # environment, if an option is missing in a given environment, the
  182. # value from "default" is used instead.
  183. default:
  184. # URL where the formulas git repositories are downloaded from
  185. # it will be suffixed with <formula-name>.git
  186. baseurl: https://github.com/saltstack-formulas
  187. # Directory where Git repositories are downloaded
  188. basedir: /srv/formulas
  189. # Update the git repository to the latest version (False by default)
  190. update: False
  191. # Options passed directly to the git.latest state
  192. options:
  193. rev: master
  194. dev:
  195. basedir: /srv/formulas/dev
  196. update: True
  197. options:
  198. rev: develop
  199. # Options of the file.directory state that creates the directory where
  200. # the git repositories of the formulas are stored
  201. basedir_opts:
  202. makedirs: True
  203. user: root
  204. group: root
  205. mode: 755
  206. # List of formulas to enable in each environment
  207. list:
  208. base:
  209. - salt-formula
  210. - postfix-formula
  211. dev:
  212. - salt-formula
  213. - postfix-formula
  214. - openssh-formula