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.

324 lines
8.6KB

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