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.

302 lines
7.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. # 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. # optional engine configuration
  131. engines:
  132. slack:
  133. token: xoxp-XXXXX-XXXXXXX
  134. control: True
  135. valid_users:
  136. - someuser
  137. - otheruser
  138. valid_commands:
  139. - test.ping
  140. - list_jobs
  141. aliases:
  142. list_jobs:
  143. type: runner
  144. cmd: jobs.list_jobs
  145. # optional beacons configuration
  146. beacons:
  147. load:
  148. 1m:
  149. - 0.0
  150. - 2.0
  151. 5m:
  152. - 0.0
  153. - 1.5
  154. 15m:
  155. - 0.1
  156. - 1.0
  157. interval: 10
  158. # salt cloud config
  159. cloud:
  160. master: salt
  161. # For non-templated custom cloud provider/profile/map files
  162. providers:
  163. provider-filename1.conf:
  164. vmware-prod:
  165. driver: vmware
  166. user: myusernameprod
  167. password: mypassword
  168. vmware-nonprod:
  169. driver: vmware
  170. user: myusernamenonprod
  171. password: mypassword
  172. profiles:
  173. profile-filename1.conf:
  174. server-non-prod:
  175. clonefrom: rhel6xtemplatenp
  176. grains:
  177. platform:
  178. name: salt
  179. realm: lab
  180. subscription_level: standard
  181. memory: 8GB
  182. num_cpus: 4
  183. password: sUpErsecretey
  184. provider: vmware-nonprod
  185. maps:
  186. map-filename1.map:
  187. server-non-prod:
  188. - host.mycompany.com:
  189. grains:
  190. environment: dev1
  191. # You can take profile and map templates from an alternate location
  192. # if you want to write your own.
  193. template_sources:
  194. providers: salt://salt/files/cloud.providers.d
  195. profiles: salt://salt/files/cloud.profiles.d
  196. maps: salt://salt/files/cloud.maps.d
  197. # These settings are used by the default provider templates and
  198. # only need to be set for the ones you're using.
  199. aws_key: AWSKEYIJSHJAIJS6JSH
  200. aws_secret: AWSSECRETYkkDY1iQf9zRtl9+pW+Nm+aZY95
  201. gce_project: test
  202. gce_service_account_email_address: 867543072364-orl4h2tpp8jcn1tr9ipj@developer.gserviceaccount.com
  203. rsos_user: afeawofghob
  204. rsos_tenant: tenant_id_number
  205. rsos_apikey: WFJIOJEOIGHSOFHESO
  206. rsos_regions:
  207. - ORD
  208. - DFW
  209. - IAD
  210. - SYD
  211. - HKG
  212. reactor:
  213. - 'deploy':
  214. - /srv/salt/reactors/deploy.sls
  215. ssh_roster:
  216. prod1:
  217. host: host.example.com
  218. user: ubuntu
  219. sudo: True
  220. priv: /etc/salt/ssh_keys/sshkey.pem
  221. gitfs:
  222. keys:
  223. global:
  224. # key and pub end up being the extension used on the key file. values other than key and pub are possible
  225. key: |
  226. -----BEGIN RSA PRIVATE KEY-----
  227. ...........
  228. -----END RSA PRIVATE KEY-----
  229. pub: |
  230. ...........
  231. salt_cloud_certs:
  232. aws:
  233. pem: |
  234. -----BEGIN RSA PRIVATE KEY-----
  235. ...........
  236. -----END RSA PRIVATE KEY-----
  237. gce:
  238. pem: |
  239. -----BEGIN RSA PRIVATE KEY-----
  240. ...........
  241. -----END RSA PRIVATE KEY-----
  242. salt_formulas:
  243. git_opts:
  244. # The Git options can be customized differently for each
  245. # environment, if an option is missing in a given environment, the
  246. # value from "default" is used instead.
  247. default:
  248. # URL where the formulas git repositories are downloaded from
  249. # it will be suffixed with <formula-name>.git
  250. baseurl: https://github.com/saltstack-formulas
  251. # Directory where Git repositories are downloaded
  252. basedir: /srv/formulas
  253. # Update the git repository to the latest version (False by default)
  254. update: False
  255. # Options passed directly to the git.latest state
  256. options:
  257. rev: master
  258. dev:
  259. basedir: /srv/formulas/dev
  260. update: True
  261. options:
  262. rev: develop
  263. # Options of the file.directory state that creates the directory where
  264. # the git repositories of the formulas are stored
  265. basedir_opts:
  266. makedirs: True
  267. user: root
  268. group: root
  269. mode: 755
  270. # List of formulas to enable in each environment
  271. list:
  272. base:
  273. - salt-formula
  274. - postfix-formula
  275. dev:
  276. - salt-formula
  277. - postfix-formula
  278. - openssh-formula