Saltstack Official Salt Formula
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

262 lines
6.9KB

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