Saltstack Official Salt Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pillar.example 12KB

11 jaren geleden
11 jaren geleden
11 jaren geleden
11 jaren geleden
11 jaren geleden
11 jaren geleden
11 jaren geleden
11 jaren geleden
7 jaren geleden
7 jaren geleden
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  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 'py3' to install the Python 3 packages.
  11. # If this is not set, the Python 2 packages will be installed by default.
  12. py_ver: 'py3'
  13. # Set this to False to not have the formula install packages (in the case you
  14. # install Salt via git/pip/etc.)
  15. install_packages: True
  16. # Optional: set salt version (if install_packages is set to True)
  17. version: 2017.7.2-1.el7
  18. # to overwrite map.jinja salt packages
  19. lookup:
  20. salt_master: 'salt-master'
  21. salt_minion: 'salt-minion'
  22. salt_syndic: 'salt-syndic'
  23. salt_cloud: 'salt-cloud'
  24. salt_ssh: 'salt-ssh'
  25. pyinotify: 'python-pyinotify' # the package to be installed for pyinotify
  26. # Set which release of SaltStack to use, default to 'latest'
  27. # To get the available releases:
  28. # * http://repo.saltstack.com/yum/redhat/7/x86_64/
  29. # * http://repo.saltstack.com/apt/debian/8/amd64/
  30. release: '2018.3'
  31. # MacOS has no package management.
  32. # Instead, we use file.managed to download an appropriate .pkg file and macpackage.installed to install it
  33. # 'version', if set (see above), will be used to check the .pkg version to determine if it should be installed
  34. #
  35. # NOTE: if 'version' is not set version comparison will not occur and the .pkg WILL NOT be installed if a salt
  36. # .pkg is already installed
  37. # NOTE: salt_minion_pkg_hash, if set, will be passed into file.managed's source_hash, use URL or hash string
  38. salt_minion_pkg_source: 'https://repo.saltstack.com/osx/salt-2017.7.4-py3-x86_64.pkg'
  39. salt_minion_pkg_hash: 'https://repo.saltstack.com/osx/salt-2017.7.4-py3-x86_64.pkg.md5'
  40. # tofs:
  41. # The files_switch key serves as a selector for alternative
  42. # directories under the formula files directory. See TOFS pattern
  43. # doc for more info.
  44. # Note: Any value not evaluated by `config.get` will be used literally.
  45. # This can be used to set custom paths, as many levels deep as required.
  46. # files_switch:
  47. # - any/path/can/be/used/here
  48. # - id
  49. # - osfinger
  50. # - os
  51. # - os_family
  52. # All aspects of path/file resolution are customisable using the options below.
  53. # This is unnecessary in most cases; there are sensible defaults.
  54. # path_prefix: template_alt
  55. # dirs:
  56. # files: files_alt
  57. # default: default_alt
  58. # source_files:
  59. # salt-master:
  60. # - 'alt_master.d'
  61. # salt master config
  62. master_config_use_TOFS: True
  63. master:
  64. fileserver_backend:
  65. - git
  66. - s3fs
  67. - roots
  68. gitfs_remotes:
  69. - git://github.com/saltstack-formulas/salt-formula.git:
  70. - base: develop
  71. s3.keyid: GKTADJGHEIQSXMKKRBJ08H
  72. s3.key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs
  73. s3.buckets:
  74. - bucket1
  75. - bucket2
  76. - bucket3
  77. - bucket4
  78. file_roots:
  79. base:
  80. - /srv/salt
  81. pillar_roots:
  82. base:
  83. - /srv/pillar
  84. # for salt-api with tornado rest interface
  85. rest_tornado:
  86. port: 8000
  87. ssl_crt: /etc/pki/api/certs/server.crt
  88. ssl_key: /etc/pki/api/certs/server.key
  89. debug: False
  90. disable_ssl: False
  91. # for profile configuration as https://docs.saltstack.com/en/latest/topics/tutorials/lxc.html#tutorial-lxc-profiles
  92. lxc.container_profile:
  93. debian:
  94. template: download
  95. options:
  96. dist: debian
  97. release: jessie
  98. arch: amd64
  99. backing: lvm
  100. vgname: kimsufi
  101. size: 10G
  102. lxc.network_profile:
  103. basic:
  104. eth0:
  105. link: lxcbr0
  106. type: veth
  107. flags: up
  108. ## for external auth - LDAP
  109. # filter to use for Active Directory LDAP
  110. auth.ldap.filter: {% raw %}'sAMAccountName={{username}}'{% endraw %}
  111. # filter to use for Most other LDAP servers
  112. auth.ldap.filter: {% raw %}'uid={{ username }}'{% endraw %}
  113. # Define winrepo provider, by default support order is pygit2, gitpython
  114. # Set to gitpython for Debian & Ubuntu to get around saltstack/salt#35993
  115. # where pygit2 is not compiled with pygit2.GIT_FEATURE_HTTPS support
  116. winrepo_provider: gitpython
  117. # optional engine configuration
  118. engines:
  119. - slack:
  120. token: xoxp-XXXXX-XXXXXXX # use Slack's legacy API token
  121. control: True
  122. valid_users:
  123. - someuser
  124. - otheruser
  125. valid_commands:
  126. - test.ping
  127. - list_jobs
  128. aliases:
  129. list_jobs:
  130. type: runner
  131. cmd: jobs.list_jobs
  132. # optional: these reactors will be configured on the master
  133. # They override reactors configured in
  134. # 'salt:reactors' or the old 'salt:reactor' parameters
  135. reactors:
  136. - 'master/deploy':
  137. - /srv/salt/reactors/deploy.sls
  138. # salt minion config:
  139. minion:
  140. # single master setup
  141. master: salt
  142. # multi master setup
  143. #master:
  144. #- salt_master_1
  145. #- salt_master_2
  146. fileserver_backend:
  147. - git
  148. - roots
  149. gitfs_remotes:
  150. - git://github.com/saltstack-formulas/salt-formula.git:
  151. - base: develop
  152. file_roots:
  153. base:
  154. - /srv/salt
  155. pillar_roots:
  156. base:
  157. - /srv/pillar
  158. module_config:
  159. test: True
  160. test.foo: foo
  161. test.bar:
  162. - baz
  163. - quo
  164. test.baz:
  165. spam: sausage
  166. cheese: bread
  167. # salt mine setup
  168. mine_interval: 60
  169. # mine_functions can be set at the top level of the pillar, and
  170. # that is preferable because it doesn't affect the conf file and
  171. # doesn't require a minion restart. However, you can configure it
  172. # here instead if you really want to.
  173. mine_functions:
  174. network.interface_ip: [eth0]
  175. # Define a minion scheduler
  176. schedule:
  177. - highstate:
  178. - function: state.apply
  179. - minutes: 60
  180. - returner: redis
  181. # other 'non-default' config
  182. auth_keytab: /root/auth.keytab
  183. auth_principal: kadmin/admin
  184. # optional engine configuration
  185. engines:
  186. - slack:
  187. token: xoxp-XXXXX-XXXXXXX # use Slack's legacy API token
  188. control: True
  189. valid_users:
  190. - someuser
  191. - otheruser
  192. valid_commands:
  193. - test.ping
  194. - list_jobs
  195. aliases:
  196. list_jobs:
  197. type: runner
  198. cmd: jobs.list_jobs
  199. # optional beacons configuration
  200. beacons:
  201. load:
  202. 1m:
  203. - 0.0
  204. - 2.0
  205. 5m:
  206. - 0.0
  207. - 1.5
  208. 15m:
  209. - 0.1
  210. - 1.0
  211. interval: 10
  212. # Optional reactors: these reactors will be configured on the minion
  213. # They override reactors configured in
  214. # 'salt:reactors' or the old 'salt:reactor' parameters
  215. reactors:
  216. - 'minion/deploy':
  217. - /srv/salt/reactors/deploy.sls
  218. # Optional: Configure an elasticsearch returner
  219. return: elasticsearch
  220. elasticsearch:
  221. hosts:
  222. - example.elasticsearch.host:9200
  223. - example.elasticsearch.host2:9200
  224. index_date: True
  225. index: salt
  226. number_of_shards: 5
  227. number_of_replicas: 2
  228. debug_returner_payload: True
  229. states_count: True
  230. states_order_output: True
  231. states_single_index: True
  232. functions_blacklist:
  233. - test.ping
  234. - saltutil.find_job
  235. # salt cloud config
  236. cloud:
  237. master: salt
  238. # For non-templated custom cloud provider/profile/map files
  239. providers:
  240. provider-filename1.conf:
  241. vmware-prod:
  242. driver: vmware
  243. user: myusernameprod
  244. password: mypassword
  245. vmware-nonprod:
  246. driver: vmware
  247. user: myusernamenonprod
  248. password: mypassword
  249. profiles:
  250. profile-filename1.conf:
  251. server-non-prod:
  252. clonefrom: rhel6xtemplatenp
  253. grains:
  254. platform:
  255. name: salt
  256. realm: lab
  257. subscription_level: standard
  258. memory: 8GB
  259. num_cpus: 4
  260. password: sUpErsecretey
  261. provider: vmware-nonprod
  262. maps:
  263. map-filename1.map:
  264. server-non-prod:
  265. - host.mycompany.com:
  266. grains:
  267. environment: dev1
  268. # You can take profile and map templates from an alternate location
  269. # if you want to write your own.
  270. template_sources:
  271. providers: salt://salt/files/cloud.providers.d
  272. profiles: salt://salt/files/cloud.profiles.d
  273. maps: salt://salt/files/cloud.maps.d
  274. # These settings are used by the default provider templates and
  275. # only need to be set for the ones you're using.
  276. aws_key: AWSKEYIJSHJAIJS6JSH
  277. aws_secret: AWSSECRETYkkDY1iQf9zRtl9+pW+Nm+aZY95
  278. gce_project: test
  279. gce_service_account_email_address: 867543072364-orl4h2tpp8jcn1tr9ipj@developer.gserviceaccount.com
  280. rsos_user: afeawofghob
  281. rsos_tenant: tenant_id_number
  282. rsos_apikey: WFJIOJEOIGHSOFHESO
  283. rsos_regions:
  284. - ORD
  285. - DFW
  286. - IAD
  287. - SYD
  288. - HKG
  289. ssh_roster:
  290. prod1:
  291. host: host.example.com
  292. user: ubuntu
  293. sudo: True
  294. priv: /etc/salt/ssh_keys/sshkey.pem
  295. gitfs:
  296. keys:
  297. global:
  298. # key and pub end up being the extension used on the key file. values other than key and pub are possible
  299. key: |
  300. -----BEGIN RSA PRIVATE KEY-----
  301. ...........
  302. -----END RSA PRIVATE KEY-----
  303. pub: |
  304. ...........
  305. # These reactors will be configured both in the minion and the master
  306. reactors:
  307. - 'deploy':
  308. - /srv/salt/reactors/deploy.sls
  309. salt_cloud_certs:
  310. aws:
  311. pem: |
  312. -----BEGIN RSA PRIVATE KEY-----
  313. ...........
  314. -----END RSA PRIVATE KEY-----
  315. gce:
  316. pem: |
  317. -----BEGIN RSA PRIVATE KEY-----
  318. ...........
  319. -----END RSA PRIVATE KEY-----
  320. salt_formulas:
  321. git_opts:
  322. # The Git options can be customized differently for each
  323. # environment, if an option is missing in a given environment, the
  324. # value from "default" is used instead.
  325. default:
  326. # URL where the formulas git repositories are downloaded from
  327. # it will be suffixed with <formula-name>.git
  328. baseurl: https://github.com/saltstack-formulas
  329. # Directory where Git repositories are downloaded
  330. basedir: /srv/formulas
  331. # Update the git repository to the latest version (False by default)
  332. update: False
  333. # Options passed directly to the git.latest state
  334. options:
  335. rev: master
  336. user: username
  337. identity: /path/to/.ssh/id_rsa_github_username
  338. dev:
  339. basedir: /srv/formulas/dev
  340. update: True
  341. options:
  342. rev: develop
  343. # Alternatively, a single directory with multiple branches can be used
  344. # E.g. It is strongly recommended to fork saltstack-formula repositories
  345. # to avoid unexpected changes to your infrastructure
  346. # Then upstream changes can be merged in manually with due consideration
  347. # Specific values for `rev`, `user` & `identity` will override the defaults
  348. production:
  349. baseurl: git@github.com:username
  350. options:
  351. branch: master
  352. remote: origin
  353. staging:
  354. baseurl: git@github.com:username
  355. options:
  356. branch: staging
  357. remote: origin
  358. rev: staging
  359. upstream:
  360. baseurl: git@github.com:saltstack-formulas
  361. update: True
  362. options:
  363. branch: upstream
  364. remote: upstream
  365. # Options of the file.directory state that creates the directory where
  366. # the git repositories of the formulas are stored
  367. basedir_opts:
  368. makedirs: True
  369. user: root
  370. group: root
  371. mode: 755
  372. # Explicitly checkout the original branch for repos after the
  373. # git.latest states have been processed (False by default)
  374. # Enable if using the alternative method (single directory, multiple branches)
  375. checkout_orig_branch: True
  376. # List of formulas to enable in each environment
  377. list:
  378. base:
  379. - salt-formula
  380. - postfix-formula
  381. dev:
  382. - salt-formula
  383. - postfix-formula
  384. - openssh-formula
  385. # Likewise for the alternative method (single directory, multiple branches)
  386. production:
  387. - salt-formula
  388. - openssh-formula
  389. staging:
  390. - salt-formula
  391. - postfix-formula
  392. - openssh-formula
  393. upstream:
  394. - salt-formula
  395. - postfix-formula
  396. - openssh-formula