Saltstack Official Salt Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pillar.example 7.0KB

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