Saltstack Official Salt Formula
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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