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.

271 satır
7.2KB

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