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.

259 lines
6.8KB

  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. # This state will remove "/etc/salt/minion" when you set this to true.
  7. minion_remove_config: True
  8. # Set this to False to not have the formula install packages (in the case you
  9. # install Salt via git/pip/etc.)
  10. install_packages: True
  11. # to overwrite map.jinja salt packages
  12. lookup:
  13. salt-master: 'salt-master'
  14. salt-minion: 'salt-minion'
  15. salt-syndic: 'salt-syndic'
  16. salt-cloud: 'salt-cloud'
  17. salt-ssh: 'salt-ssh'
  18. # salt master config
  19. master:
  20. fileserver_backend:
  21. - git
  22. - s3fs
  23. - roots
  24. gitfs_remotes:
  25. - git://github.com/saltstack-formulas/salt-formula.git:
  26. - base: develop
  27. s3.keyid: GKTADJGHEIQSXMKKRBJ08H
  28. s3.key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs
  29. s3.buckets:
  30. - bucket1
  31. - bucket2
  32. - bucket3
  33. - bucket4
  34. file_roots:
  35. base:
  36. - /srv/salt
  37. pillar_roots:
  38. base:
  39. - /srv/pillar
  40. # for salt-api with tornado rest interface
  41. rest_tornado:
  42. port: 8000
  43. ssl_crt: /etc/pki/api/certs/server.crt
  44. ssl_key: /etc/pki/api/certs/server.key
  45. debug: False
  46. disable_ssl: False
  47. # for profile configuration as https://docs.saltstack.com/en/latest/topics/tutorials/lxc.html#tutorial-lxc-profiles
  48. lxc.container_profile:
  49. debian:
  50. template: download
  51. options:
  52. dist: debian
  53. release: jessie
  54. arch: amd64
  55. backing: lvm
  56. vgname: kimsufi
  57. size: 10G
  58. lxc.network_profile:
  59. basic:
  60. eth0:
  61. link: lxcbr0
  62. type: veth
  63. flags: up
  64. ## for external auth - LDAP
  65. # filter to use for Active Directory LDAP
  66. auth.ldap.filter: {% raw %}'sAMAccountName={{username}}'{% endraw %}
  67. # filter to use for Most other LDAP servers
  68. auth.ldap.filter: {% raw %}'uid={{ username }}'{% endraw %}
  69. # optional engine configuration
  70. engines:
  71. slack:
  72. token: xoxp-XXXXX-XXXXXXX
  73. control: True
  74. valid_users:
  75. - someuser
  76. - otheruser
  77. valid_commands:
  78. - test.ping
  79. - list_jobs
  80. aliases:
  81. list_jobs:
  82. type: runner
  83. cmd: jobs.list_jobs
  84. # salt minion config:
  85. minion:
  86. # single master setup
  87. master: salt
  88. # multi master setup
  89. #master:
  90. #- salt_master_1
  91. #- salt_master_2
  92. fileserver_backend:
  93. - git
  94. - roots
  95. gitfs_remotes:
  96. - git://github.com/saltstack-formulas/salt-formula.git:
  97. - base: develop
  98. file_roots:
  99. base:
  100. - /srv/salt
  101. pillar_roots:
  102. base:
  103. - /srv/pillar
  104. module_config:
  105. test: True
  106. test.foo: foo
  107. test.bar:
  108. - baz
  109. - quo
  110. test.baz:
  111. spam: sausage
  112. cheese: bread
  113. # salt mine setup
  114. mine_interval: 60
  115. # mine_functions can be set at the top level of the pillar, and
  116. # that is preferable because it doesn't affect the conf file and
  117. # doesn't require a minion restart. However, you can configure it
  118. # here instead if you really want to.
  119. mine_functions:
  120. network.interface_ip: [eth0]
  121. # salt cloud config
  122. cloud:
  123. master: salt
  124. # For non-templated custom cloud provider/profile/map files
  125. providers:
  126. provider-filename1.conf:
  127. vmware-prod:
  128. driver: vmware
  129. user: myusernameprod
  130. password: mypassword
  131. vmware-nonprod:
  132. driver: vmware
  133. user: myusernamenonprod
  134. password: mypassword
  135. profiles:
  136. profile-filename1.conf:
  137. server-non-prod:
  138. clonefrom: rhel6xtemplatenp
  139. grains:
  140. platform:
  141. name: salt
  142. realm: lab
  143. subscription_level: standard
  144. memory: 8GB
  145. num_cpus: 4
  146. password: sUpErsecretey
  147. provider: vmware-nonprod
  148. maps:
  149. map-filename1.map:
  150. server-non-prod:
  151. - host.mycompany.com:
  152. grains:
  153. environment: dev1
  154. # You can take profile and map templates from an alternate location
  155. # if you want to write your own.
  156. template_sources:
  157. providers: salt://salt/files/cloud.providers.d
  158. profiles: salt://salt/files/cloud.profiles.d
  159. maps: salt://salt/files/cloud.maps.d
  160. # These settings are used by the default provider templates and
  161. # only need to be set for the ones you're using.
  162. aws_key: AWSKEYIJSHJAIJS6JSH
  163. aws_secret: AWSSECRETYkkDY1iQf9zRtl9+pW+Nm+aZY95
  164. gce_project: test
  165. gce_service_account_email_address: 867543072364-orl4h2tpp8jcn1tr9ipj@developer.gserviceaccount.com
  166. rsos_user: afeawofghob
  167. rsos_tenant: tenant_id_number
  168. rsos_apikey: WFJIOJEOIGHSOFHESO
  169. rsos_regions:
  170. - ORD
  171. - DFW
  172. - IAD
  173. - SYD
  174. - HKG
  175. reactor:
  176. - 'deploy':
  177. - /srv/salt/reactors/deploy.sls
  178. ssh_roster:
  179. prod1:
  180. host: host.example.com
  181. user: ubuntu
  182. sudo: True
  183. priv: /etc/salt/ssh_keys/sshkey.pem
  184. gitfs:
  185. keys:
  186. global:
  187. # key and pub end up being the extension used on the key file. values other than key and pub are possible
  188. key: |
  189. -----BEGIN RSA PRIVATE KEY-----
  190. ...........
  191. -----END RSA PRIVATE KEY-----
  192. pub: |
  193. ...........
  194. salt_cloud_certs:
  195. aws:
  196. pem: |
  197. -----BEGIN RSA PRIVATE KEY-----
  198. ...........
  199. -----END RSA PRIVATE KEY-----
  200. gce:
  201. pem: |
  202. -----BEGIN RSA PRIVATE KEY-----
  203. ...........
  204. -----END RSA PRIVATE KEY-----
  205. salt_formulas:
  206. git_opts:
  207. # The Git options can be customized differently for each
  208. # environment, if an option is missing in a given environment, the
  209. # value from "default" is used instead.
  210. default:
  211. # URL where the formulas git repositories are downloaded from
  212. # it will be suffixed with <formula-name>.git
  213. baseurl: https://github.com/saltstack-formulas
  214. # Directory where Git repositories are downloaded
  215. basedir: /srv/formulas
  216. # Update the git repository to the latest version (False by default)
  217. update: False
  218. # Options passed directly to the git.latest state
  219. options:
  220. rev: master
  221. dev:
  222. basedir: /srv/formulas/dev
  223. update: True
  224. options:
  225. rev: develop
  226. # Options of the file.directory state that creates the directory where
  227. # the git repositories of the formulas are stored
  228. basedir_opts:
  229. makedirs: True
  230. user: root
  231. group: root
  232. mode: 755
  233. # List of formulas to enable in each environment
  234. list:
  235. base:
  236. - salt-formula
  237. - postfix-formula
  238. dev:
  239. - salt-formula
  240. - postfix-formula
  241. - openssh-formula