Saltstack Official Salt Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

pillar.example 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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. # Set this to False to not have the formula install packages (in the case you
  7. # install Salt via git/pip/etc.)
  8. install_packages: True
  9. # to overwrite map.jinja salt packages
  10. lookup:
  11. salt-master: 'salt-master'
  12. salt-minion: 'salt-minion'
  13. salt-syndic: 'salt-syndic'
  14. salt-cloud: 'salt-cloud'
  15. salt-ssh: 'salt-ssh'
  16. # salt master config
  17. master:
  18. fileserver_backend:
  19. - git
  20. - roots
  21. gitfs_remotes:
  22. - git://github.com/saltstack-formulas/salt-formula.git:
  23. - base: develop
  24. file_roots:
  25. base:
  26. - /srv/salt
  27. pillar_roots:
  28. base:
  29. - /srv/pillar
  30. # for salt-api with tornado rest interface
  31. rest_tornado:
  32. port: 8000
  33. ssl_crt: /etc/pki/api/certs/server.crt
  34. ssl_key: /etc/pki/api/certs/server.key
  35. debug: False
  36. disable_ssl: False
  37. # salt minion config:
  38. minion:
  39. # single master setup
  40. master: salt
  41. # multi master setup
  42. #master:
  43. #- salt_master_1
  44. #- salt_master_2
  45. fileserver_backend:
  46. - git
  47. - roots
  48. gitfs_remotes:
  49. - git://github.com/saltstack-formulas/salt-formula.git:
  50. - base: develop
  51. file_roots:
  52. base:
  53. - /srv/salt
  54. pillar_roots:
  55. base:
  56. - /srv/pillar
  57. module_config:
  58. test: True
  59. test.foo: foo
  60. test.bar:
  61. - baz
  62. - quo
  63. test.baz:
  64. spam: sausage
  65. cheese: bread
  66. # salt mine setup
  67. mine_interval: 60
  68. # mine_functions can be set at the top level of the pillar, and
  69. # that is preferable because it doesn't affect the conf file and
  70. # doesn't require a minion restart. However, you can configure it
  71. # here instead if you really want to.
  72. mine_functions:
  73. network.interface_ip: [eth0]
  74. # salt cloud config
  75. cloud:
  76. master: salt
  77. # For non-templated custom cloud provider/profile/map files
  78. providers:
  79. provider-filename1.conf:
  80. vmware-prod:
  81. driver: vmware
  82. user: myusernameprod
  83. password: mypassword
  84. vmware-nonprod:
  85. driver: vmware
  86. user: myusernamenonprod
  87. password: mypassword
  88. profiles:
  89. profile-filename1.conf:
  90. server-non-prod:
  91. clonefrom: rhel6xtemplatenp
  92. grains:
  93. platform:
  94. name: salt
  95. realm: lab
  96. subscription_level: standard
  97. memory: 8GB
  98. num_cpus: 4
  99. password: sUpErsecretey
  100. provider: vmware-nonprod
  101. maps:
  102. map-filename1.map:
  103. server-non-prod:
  104. - host.mycompany.com:
  105. grains:
  106. environment: dev1
  107. # You can take profile and map templates from an alternate location
  108. # if you want to write your own.
  109. template_sources:
  110. providers: salt://salt/files/cloud.providers.d
  111. profiles: salt://salt/files/cloud.profiles.d
  112. maps: salt://salt/files/cloud.maps.d
  113. # These settings are used by the default provider templates and
  114. # only need to be set for the ones you're using.
  115. aws_key: AWSKEYIJSHJAIJS6JSH
  116. aws_secret: AWSSECRETYkkDY1iQf9zRtl9+pW+Nm+aZY95
  117. gce_project: test
  118. gce_service_account_email_address: 867543072364-orl4h2tpp8jcn1tr9ipj@developer.gserviceaccount.com
  119. rsos_user: afeawofghob
  120. rsos_tenant: tenant_id_number
  121. rsos_apikey: WFJIOJEOIGHSOFHESO
  122. rsos_regions:
  123. - ORD
  124. - DFW
  125. - IAD
  126. - SYD
  127. - HKG
  128. reactor:
  129. - 'deploy':
  130. - /srv/salt/reactors/deploy.sls
  131. ssh_roster:
  132. prod1:
  133. host: host.example.com
  134. user: ubuntu
  135. sudo: True
  136. priv: /etc/salt/ssh_keys/sshkey.pem
  137. gitfs:
  138. keys:
  139. global:
  140. # key and pub end up being the extension used on the key file. values other than key and pub are possible
  141. key: |
  142. -----BEGIN RSA PRIVATE KEY-----
  143. ...........
  144. -----END RSA PRIVATE KEY-----
  145. pub: |
  146. ...........
  147. salt_cloud_certs:
  148. aws:
  149. pem: |
  150. -----BEGIN RSA PRIVATE KEY-----
  151. ...........
  152. -----END RSA PRIVATE KEY-----
  153. gce:
  154. pem: |
  155. -----BEGIN RSA PRIVATE KEY-----
  156. ...........
  157. -----END RSA PRIVATE KEY-----
  158. salt_formulas:
  159. git_opts:
  160. # The Git options can be customized differently for each
  161. # environment, if an option is missing in a given environment, the
  162. # value from "default" is used instead.
  163. default:
  164. # URL where the formulas git repositories are downloaded from
  165. # it will be suffixed with <formula-name>.git
  166. baseurl: https://github.com/saltstack-formulas
  167. # Directory where Git repositories are downloaded
  168. basedir: /srv/formulas
  169. # Update the git repository to the latest version (False by default)
  170. update: False
  171. # Options passed directly to the git.latest state
  172. options:
  173. rev: master
  174. dev:
  175. basedir: /srv/formulas/dev
  176. update: True
  177. options:
  178. rev: develop
  179. # Options of the file.directory state that creates the directory where
  180. # the git repositories of the formulas are stored
  181. basedir_opts:
  182. makedirs: True
  183. user: root
  184. group: root
  185. mode: 755
  186. # List of formulas to enable in each environment
  187. list:
  188. base:
  189. - salt-formula
  190. - postfix-formula
  191. dev:
  192. - salt-formula
  193. - postfix-formula
  194. - openssh-formula