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.

1235 lines
46KB

  1. # This file managed by Salt, do not edit by hand!!
  2. # Based on salt version 2015.8.7 default config
  3. {% set reserved_keys = ['master', 'minion', 'cloud', 'salt_cloud_certs'] -%}
  4. {% set cfg_salt = pillar.get('salt', {}) -%}
  5. {% set cfg_master = cfg_salt.get('master', {}) -%}
  6. {%- macro get_config(configname, default_value) -%}
  7. {%- if configname in cfg_master -%}
  8. {{ configname }}: {{ cfg_master[configname] }}
  9. {%- elif configname in cfg_salt and configname not in reserved_keys -%}
  10. {{ configname }}: {{ cfg_salt[configname] }}
  11. {%- else -%}
  12. #{{ configname }}: {{ default_value }}
  13. {%- endif -%}
  14. {%- endmacro -%}
  15. {%- from 'salt/formulas.jinja' import file_roots, formulas with context -%}
  16. ##### Primary configuration settings #####
  17. ##########################################
  18. # This configuration file is used to manage the behavior of the Salt Master.
  19. # Values that are commented out but have an empty line after the comment are
  20. # defaults that do not need to be set in the config. If there is no blank line
  21. # after the comment then the value is presented as an example and is not the
  22. # default.
  23. # Per default, the master will automatically include all config files
  24. # from master.d/*.conf (master.d is a directory in the same directory
  25. # as the main master config file).
  26. {{ get_config('default_include', 'master.d/*.conf') }}
  27. # The address of the interface to bind to:
  28. {{ get_config('interface', '0.0.0.0') }}
  29. # Whether the master should listen for IPv6 connections. If this is set to True,
  30. # the interface option must be adjusted, too. (For example: "interface: '::'")
  31. {{ get_config('ipv6', 'False') }}
  32. # The tcp port used by the publisher:
  33. {{ get_config('publish_port', '4505') }}
  34. # The user under which the salt master will run. Salt will update all
  35. # permissions to allow the specified user to run the master. The exception is
  36. # the job cache, which must be deleted if this user is changed. If the
  37. # modified files cause conflicts, set verify_env to False.
  38. {{ get_config('user', 'root') }}
  39. # The port used by the communication interface. The ret (return) port is the
  40. # interface used for the file server, authentication, job returns, etc.
  41. {{ get_config('ret_port', '4506') }}
  42. # Specify the location of the daemon process ID file:
  43. {{ get_config('pidfile', '/var/run/salt-master.pid') }}
  44. # The root directory prepended to these options: pki_dir, cachedir,
  45. # sock_dir, log_file, autosign_file, autoreject_file, extension_modules,
  46. # key_logfile, pidfile:
  47. {{ get_config('root_dir', '/') }}
  48. # Directory used to store public key data:
  49. {{ get_config('pki_dir', '/etc/salt/pki/master') }}
  50. # Directory to store job and cache data:
  51. # This directory may contain sensitive data and should be protected accordingly.
  52. #
  53. {{ get_config('cachedir', '/var/cache/salt/master') }}
  54. # Directory for custom modules. This directory can contain subdirectories for
  55. # each of Salt's module types such as "runners", "output", "wheel", "modules",
  56. # "states", "returners", etc.
  57. {{ get_config('extension_modules', '<no default>') }}
  58. # Directory for custom modules. This directory can contain subdirectories for
  59. # each of Salt's module types such as "runners", "output", "wheel", "modules",
  60. # "states", "returners", etc.
  61. # Like 'extension_modules' but can take an array of paths
  62. {% if 'module_dirs' in cfg_master -%}
  63. module_dirs:
  64. {%- for dir in cfg_master['module_dirs'] %}
  65. - {{ dir}}
  66. {%- endfor -%}
  67. {% elif 'module_dirs' in cfg_salt -%}
  68. module_dirs:
  69. {%- for dir in cfg_salt['module_dirs'] %}
  70. - {{ dir}}
  71. {%- endfor -%}
  72. {% else -%}
  73. #module_dirs: <no default>
  74. # - /var/cache/salt/minion/extmods
  75. {% endif %}
  76. # Verify and set permissions on configuration directories at startup:
  77. {{ get_config('verify_env', 'True') }}
  78. # Set the number of hours to keep old job information in the job cache:
  79. {{ get_config('keep_jobs', '24') }}
  80. # Set the default timeout for the salt command and api. The default is 5
  81. # seconds.
  82. {{ get_config('timeout', '5') }}
  83. # The loop_interval option controls the seconds for the master's maintenance
  84. # process check cycle. This process updates file server backends, cleans the
  85. # job cache and executes the scheduler.
  86. {{ get_config('loop_interval', '60') }}
  87. # Set the default outputter used by the salt command. The default is "nested".
  88. {{ get_config('output', 'nested') }}
  89. # Return minions that timeout when running commands like test.ping
  90. {{ get_config('show_timeout', 'True') }}
  91. # By default, output is colored. To disable colored output, set the color value
  92. # to False.
  93. {{ get_config('color', 'True') }}
  94. # Do not strip off the colored output from nested results and state outputs
  95. # (true by default).
  96. {{ get_config('strip_colors', 'False') }}
  97. # Set the directory used to hold unix sockets:
  98. {{ get_config('sock_dir', '/var/run/salt/master') }}
  99. # The master can take a while to start up when lspci and/or dmidecode is used
  100. # to populate the grains for the master. Enable if you want to see GPU hardware
  101. # data for your master.
  102. {{ get_config('enable_gpu_grains', 'False') }}
  103. # The master maintains a job cache. While this is a great addition, it can be
  104. # a burden on the master for larger deployments (over 5000 minions).
  105. # Disabling the job cache will make previously executed jobs unavailable to
  106. # the jobs system and is not generally recommended.
  107. {{ get_config('job_cache', 'True') }}
  108. # Cache minion grains and pillar data in the cachedir.
  109. {{ get_config('minion_data_cache', 'True') }}
  110. # Store all returns in the given returner.
  111. # Setting this option requires that any returner-specific configuration also
  112. # be set. See various returners in salt/returners for details on required
  113. # configuration values. (See also, event_return_queue below.)
  114. {{ get_config('event_return', 'mysql') }}
  115. # On busy systems, enabling event_returns can cause a considerable load on
  116. # the storage system for returners. Events can be queued on the master and
  117. # stored in a batched fashion using a single transaction for multiple events.
  118. # By default, events are not queued.
  119. {{ get_config('event_return_queue', '0') }}
  120. # Only events returns matching tags in a whitelist
  121. {% if 'event_return_whitelist' in cfg_master -%}
  122. event_return_whitelist:
  123. {%- for event_return in cfg_master['event_return_whitelist'] %}
  124. - {{ event_return }}
  125. {%- endfor -%}
  126. {% elif 'event_return_whitelist' in cfg_salt -%}
  127. event_return_whitelist:
  128. {%- for event_return in cfg_salt['event_return_whitelist'] %}
  129. - {{ event_return }}
  130. {%- endfor -%}
  131. {% else -%}
  132. # event_return_whitelist:
  133. # - salt/master/a_tag
  134. # - salt/master/another_tag
  135. {% endif %}
  136. # Store all event returns _except_ the tags in a blacklist
  137. {% if 'event_return_blacklist' in cfg_master -%}
  138. event_return_blacklist:
  139. {%- for event_return in cfg_master['event_return_blacklist'] %}
  140. - {{ event_return }}
  141. {%- endfor -%}
  142. {% elif 'event_return_blacklist' in cfg_salt -%}
  143. event_return_blacklist:
  144. {%- for event_return in cfg_salt['event_return_blacklist'] %}
  145. - {{ event_return }}
  146. {%- endfor -%}
  147. {% else -%}
  148. # event_return_blacklist:
  149. # - salt/master/not_this_tag
  150. # - salt/master/or_this_one
  151. {% endif %}
  152. # Passing very large events can cause the minion to consume large amounts of
  153. # memory. This value tunes the maximum size of a message allowed onto the
  154. # master event bus. The value is expressed in bytes.
  155. {{ get_config('max_event_size', '1048576') }}
  156. # By default, the master AES key rotates every 24 hours. The next command
  157. # following a key rotation will trigger a key refresh from the minion which may
  158. # result in minions which do not respond to the first command after a key refresh.
  159. #
  160. # To tell the master to ping all minions immediately after an AES key refresh, set
  161. # ping_on_rotate to True. This should mitigate the issue where a minion does not
  162. # appear to initially respond after a key is rotated.
  163. #
  164. # Note that ping_on_rotate may cause high load on the master immediately after
  165. # the key rotation event as minions reconnect. Consider this carefully if this
  166. # salt master is managing a large number of minions.
  167. #
  168. # If disabled, it is recommended to handle this event by listening for the
  169. # 'aes_key_rotate' event with the 'key' tag and acting appropriately.
  170. {{ get_config('ping_on_rotate', 'False') }}
  171. # By default, the master deletes its cache of minion data when the key for that
  172. # minion is removed. To preserve the cache after key deletion, set
  173. # 'preserve_minion_cache' to True.
  174. #
  175. # WARNING: This may have security implications if compromised minions auth with
  176. # a previous deleted minion ID.
  177. {{ get_config('preserve_minion_cache', 'False') }}
  178. # If max_minions is used in large installations, the master might experience
  179. # high-load situations because of having to check the number of connected
  180. # minions for every authentication. This cache provides the minion-ids of
  181. # all connected minions to all MWorker-processes and greatly improves the
  182. # performance of max_minions.
  183. {{ get_config('con_cache', 'False') }}
  184. # The master can include configuration from other files. To enable this,
  185. # pass a list of paths to this option. The paths can be either relative or
  186. # absolute; if relative, they are considered to be relative to the directory
  187. # the main master configuration file lives in (this file). Paths can make use
  188. # of shell-style globbing. If no files are matched by a path passed to this
  189. # option, then the master will log a warning message.
  190. #
  191. # Include a config file from some other path:
  192. # include: /etc/salt/extra_config
  193. #
  194. # Include config from several files and directories:
  195. # include:
  196. # - /etc/salt/extra_config
  197. {{ get_config('include', '[]') }}
  198. ##### Large-scale tuning settings #####
  199. ##########################################
  200. # Max open files
  201. #
  202. # Each minion connecting to the master uses AT LEAST one file descriptor, the
  203. # master subscription connection. If enough minions connect you might start
  204. # seeing on the console (and then salt-master crashes):
  205. # Too many open files (tcp_listener.cpp:335)
  206. # Aborted (core dumped)
  207. #
  208. # By default this value will be the one of `ulimit -Hn`, ie, the hard limit for
  209. # max open files.
  210. #
  211. # If you wish to set a different value than the default one, uncomment and
  212. # configure this setting. Remember that this value CANNOT be higher than the
  213. # hard limit. Raising the hard limit depends on your OS and/or distribution,
  214. # a good way to find the limit is to search the internet. For example:
  215. # raise max open files hard limit debian
  216. #
  217. {{ get_config('max_open_files', '100000') }}
  218. # The number of worker threads to start. These threads are used to manage
  219. # return calls made from minions to the master. If the master seems to be
  220. # running slowly, increase the number of threads. This setting can not be
  221. # set lower than 3.
  222. {{ get_config('worker_threads', '5') }}
  223. # Set the ZeroMQ high water marks
  224. # http://api.zeromq.org/3-2:zmq-setsockopt
  225. # The publisher interface ZeroMQPubServerChannel
  226. {{ get_config('pub_hwm', '1000') }}
  227. # These two ZMQ HWM settings, salt_event_pub_hwm and event_publisher_pub_hwm
  228. # are significant for masters with thousands of minions. When these are
  229. # insufficiently high it will manifest in random responses missing in the CLI
  230. # and even missing from the job cache. Masters that have fast CPUs and many
  231. # cores with appropriate worker_threads will not need these set as high.
  232. # On deployment with 8,000 minions, 2.4GHz CPUs, 24 cores, 32GiB memory has
  233. # these settings:
  234. #
  235. # salt_event_pub_hwm: 128000
  236. # event_publisher_pub_hwm: 64000
  237. # ZMQ high-water-mark for SaltEvent pub socket
  238. {{ get_config('salt_event_pub_hwm', '20000') }}
  239. # ZMQ high-water-mark for EventPublisher pub socket
  240. {{ get_config('event_publisher_pub_hwm', '10000') }}
  241. ##### Security settings #####
  242. ##########################################
  243. # Enable "open mode", this mode still maintains encryption, but turns off
  244. # authentication, this is only intended for highly secure environments or for
  245. # the situation where your keys end up in a bad state. If you run in open mode
  246. # you do so at your own risk!
  247. {{ get_config('open_mode', 'False') }}
  248. # Enable auto_accept, this setting will automatically accept all incoming
  249. # public keys from the minions. Note that this is insecure.
  250. {{ get_config('auto_accept', 'False') }}
  251. # Time in minutes that a incoming public key with a matching name found in
  252. # pki_dir/minion_autosign/keyid is automatically accepted. Expired autosign keys
  253. # are removed when the master checks the minion_autosign directory.
  254. # 0 equals no timeout
  255. {{ get_config('autosign_timeout', '120') }}
  256. # If the autosign_file is specified, incoming keys specified in the
  257. # autosign_file will be automatically accepted. This is insecure. Regular
  258. # expressions as well as globing lines are supported.
  259. {{ get_config('autosign_file', '/etc/salt/autosign.conf') }}
  260. # Works like autosign_file, but instead allows you to specify minion IDs for
  261. # which keys will automatically be rejected. Will override both membership in
  262. # the autosign_file and the auto_accept setting.
  263. {{ get_config('autoreject_file', '/etc/salt/autoreject.conf') }}
  264. # Enable permissive access to the salt keys. This allows you to run the
  265. # master or minion as root, but have a non-root group be given access to
  266. # your pki_dir. To make the access explicit, root must belong to the group
  267. # you've given access to. This is potentially quite insecure. If an autosign_file
  268. # is specified, enabling permissive_pki_access will allow group access to that
  269. # specific file.
  270. {{ get_config('permissive_pki_access', 'False') }}
  271. # Allow users on the master access to execute specific commands on minions.
  272. # This setting should be treated with care since it opens up execution
  273. # capabilities to non root users. By default this capability is completely
  274. # disabled.
  275. {% if 'client_acl' in cfg_master -%}
  276. client_acl:
  277. {%- for name, user in cfg_master['client_acl']|dictsort %}
  278. {{ name}}:
  279. {%- for command in user %}
  280. - {% raw %}'{% endraw %}{{ command }}{% raw %}'{% endraw %}
  281. {%- endfor -%}
  282. {%- endfor -%}
  283. {% elif 'client_acl' in cfg_salt -%}
  284. client_acl:
  285. {%- for name, user in cfg_salt['client_acl']|dictsort %}
  286. {{ name }}:
  287. {%- for command in user %}
  288. - {% raw %}'{% endraw %}{{ command }}{% raw %}'{% endraw %}
  289. {%- endfor -%}
  290. {%- endfor -%}
  291. {% else -%}
  292. #client_acl:
  293. # larry:
  294. # - test.ping
  295. # - network.*
  296. {%- endif %}
  297. # Blacklist any of the following users or modules
  298. #
  299. # This example would blacklist all non sudo users, including root from
  300. # running any commands. It would also blacklist any use of the "cmd"
  301. # module. This is completely disabled by default.
  302. {% if 'client_acl_blacklist' in cfg_master %}
  303. client_acl_blacklist:
  304. users:
  305. {% for user in cfg_master['client_acl_blacklist'].get('users', []) %}
  306. - {{ user }}
  307. {% endfor %}
  308. modules:
  309. {% for mod in cfg_master['client_acl_blacklist'].get('modules', []) %}
  310. - {{ mod }}
  311. {% endfor %}
  312. {% elif 'client_acl_blacklist' in cfg_salt %}
  313. client_acl_blacklist:
  314. users:
  315. {% for user in cfg_salt['client_acl_blacklist'].get('users', []) %}
  316. - {{ user }}
  317. {% endfor %}
  318. modules:
  319. {% for mod in cfg_salt['client_acl_blacklist'].get('modules', []) %}
  320. - {{ mod }}
  321. {% endfor %}
  322. {% else %}
  323. #client_acl_blacklist:
  324. # users:
  325. # - root
  326. # - '^(?!sudo_).*$' # all non sudo users
  327. # modules:
  328. # - cmd
  329. {% endif %}
  330. # Enforce client_acl & client_acl_blacklist when users have sudo
  331. # access to the salt command.
  332. {{ get_config('sudo_acl', 'False') }}
  333. # The external auth system uses the Salt auth modules to authenticate and
  334. # validate users to access areas of the Salt system.
  335. #external_auth:
  336. # pam:
  337. # fred:
  338. # - test.*
  339. {{ get_config('external_auth', '{}') }}
  340. # Time (in seconds) for a newly generated token to live. Default: 12 hours
  341. {{ get_config('token_expire', '43200') }}
  342. # Allow minions to push files to the master. This is disabled by default, for
  343. # security purposes.
  344. {{ get_config('file_recv', 'False') }}
  345. # Set a hard-limit on the size of the files that can be pushed to the master.
  346. # It will be interpreted as megabytes. Default: 100
  347. {{ get_config('file_recv_max_size', '100') }}
  348. # Signature verification on messages published from the master.
  349. # This causes the master to cryptographically sign all messages published to its event
  350. # bus, and minions then verify that signature before acting on the message.
  351. #
  352. # This is False by default.
  353. #
  354. # Note that to facilitate interoperability with masters and minions that are different
  355. # versions, if sign_pub_messages is True but a message is received by a minion with
  356. # no signature, it will still be accepted, and a warning message will be logged.
  357. # Conversely, if sign_pub_messages is False, but a minion receives a signed
  358. # message it will be accepted, the signature will not be checked, and a warning message
  359. # will be logged. This behavior went away in Salt 2014.1.0 and these two situations
  360. # will cause minion to throw an exception and drop the message.
  361. {{ get_config('sign_pub_message', 'False') }}
  362. # Sign the master auth-replies with a cryptographic signature of the masters public key.
  363. # Please see the tutorial how to use these settings in the Multimaster-PKI with Failover Tutorial
  364. {{ get_config('master_sign_pubkey', 'False') }}
  365. # The customizable name of the signing-key-pair without suffix.
  366. # master_sign_key_name: <filename_without_suffix>
  367. {{ get_config('master_sign', '{}') }}
  368. # The name of the file in the masters pki-directory that holds the pre-calculated
  369. # signature of the masters public-key.
  370. # master_pubkey_signature: <filename>
  371. {{ get_config('master_pubkey_signature', '{}') }}
  372. # Instead of computing the signature for each auth-reply, use a pre-calculated signature.
  373. # The master_pubkey_signature must also be set for this.
  374. {{ get_config('master_use_pubkey_signature', 'False') }}
  375. # Rotate the salt-masters AES-key when a minion-public is deleted with salt-key.
  376. # This is a very important security-setting. Disabling it will enable deleted minions to still
  377. # listen in on the messages published by the salt-master.
  378. # Do not disable this unless it is absolutely clear what this does.
  379. {{ get_config('rotate_aes_key', 'True') }}
  380. ##### Salt-SSH Configuration #####
  381. ##########################################
  382. # Pass in an alternative location for the salt-ssh roster file
  383. {{ get_config('roster_file', '/etc/salt/roster') }}
  384. # Pass in minion option overrides that will be inserted into the SHIM for
  385. # salt-ssh calls. The local minion config is not used for salt-ssh. Can be
  386. # overridden on a per-minion basis in the roster (`minion_opts`)
  387. #ssh_minion_opts:
  388. # gpg_keydir: /root/gpg
  389. {{ get_config('ssh_minion_opts', '{}') }}
  390. ##### Master Module Management #####
  391. ##########################################
  392. # Manage how master side modules are loaded.
  393. # Add any additional locations to look for master runners:
  394. {{ get_config('runner_dirs', '[]') }}
  395. # Enable Cython for master side modules:
  396. {{ get_config('cython_enable', 'False') }}
  397. ##### State System settings #####
  398. ##########################################
  399. # The state system uses a "top" file to tell the minions what environment to
  400. # use and what modules to use. The state_top file is defined relative to the
  401. # root of the base environment as defined in "File Server settings" below.
  402. {{ get_config('state_top', 'top.sls') }}
  403. # The master_tops option replaces the external_nodes option by creating
  404. # a plugable system for the generation of external top data. The external_nodes
  405. # option is deprecated by the master_tops option.
  406. #
  407. # To gain the capabilities of the classic external_nodes system, use the
  408. # following configuration:
  409. # master_tops:
  410. # ext_nodes: <Shell command which returns yaml>
  411. #
  412. #master_tops: {}
  413. {% if 'master_tops' in cfg_master %}
  414. master_tops:
  415. {%- for master in cfg_master['master_tops'] -%}
  416. {%- if cfg_master['master_tops'][master] is string %}
  417. {{ master }}: {{ cfg_master['master_tops'][master] }}
  418. {%- else %}
  419. {{ master}}:
  420. {%- for parameter in cfg_master['master_tops'][master] %}
  421. {{ parameter }}: {{ cfg_master['master_tops'][master][parameter] }}
  422. {%- endfor -%}
  423. {%- endif -%}
  424. {%- endfor %}
  425. {% endif %}
  426. # The external_nodes option allows Salt to gather data that would normally be
  427. # placed in a top file. The external_nodes option is the executable that will
  428. # return the ENC data. Remember that Salt will look for external nodes AND top
  429. # files and combine the results if both are enabled!
  430. {{ get_config('external_nodes', 'None') }}
  431. # The renderer to use on the minions to render the state data
  432. {{ get_config('renderer', 'yaml_jinja') }}
  433. # The Jinja renderer can strip extra carriage returns and whitespace
  434. # See http://jinja.pocoo.org/docs/api/#high-level-api
  435. #
  436. # If this is set to True the first newline after a Jinja block is removed
  437. # (block, not variable tag!). Defaults to False, corresponds to the Jinja
  438. # environment init variable "trim_blocks".
  439. {{ get_config('jinja_trim_blocks', 'False') }}
  440. # If this is set to True leading spaces and tabs are stripped from the start
  441. # of a line to a block. Defaults to False, corresponds to the Jinja
  442. # environment init variable "lstrip_blocks".
  443. {{ get_config('jinja_lstrip_blocks', 'False') }}
  444. # The failhard option tells the minions to stop immediately after the first
  445. # failure detected in the state execution, defaults to False
  446. {{ get_config('failhard', 'False') }}
  447. # The state_verbose and state_output settings can be used to change the way
  448. # state system data is printed to the display. By default all data is printed.
  449. # The state_verbose setting can be set to True or False, when set to False
  450. # all data that has a result of True and no changes will be suppressed.
  451. {{ get_config('state_verbose', 'True') }}
  452. # The state_output setting changes if the output is the full multi line
  453. # output for each changed state if set to 'full', but if set to 'terse'
  454. # the output will be shortened to a single line. If set to 'mixed', the output
  455. # will be terse unless a state failed, in which case that output will be full.
  456. # If set to 'changes', the output will be full unless the state didn't change.
  457. {{ get_config('state_output', 'full') }}
  458. # Automatically aggregate all states that have support for mod_aggregate by
  459. # setting to 'True'. Or pass a list of state module names to automatically
  460. # aggregate just those types.
  461. #
  462. # state_aggregate:
  463. # - pkg
  464. #
  465. #state_aggregate: False
  466. {{ get_config('state_aggregate', '{}') }}
  467. # Send progress events as each function in a state run completes execution
  468. # by setting to 'True'. Progress events are in the format
  469. # 'salt/job/<JID>/prog/<MID>/<RUN NUM>'.
  470. {{ get_config('state_events', 'False') }}
  471. ##### File Server settings #####
  472. ##########################################
  473. # Salt runs a lightweight file server written in zeromq to deliver files to
  474. # minions. This file server is built into the master daemon and does not
  475. # require a dedicated port.
  476. # The file server works on environments passed to the master, each environment
  477. # can have multiple root directories, the subdirectories in the multiple file
  478. # roots cannot match, otherwise the downloaded files will not be able to be
  479. # reliably ensured. A base environment is required to house the top file.
  480. # Example:
  481. # file_roots:
  482. # base:
  483. # - /srv/salt/
  484. # dev:
  485. # - /srv/salt/dev/services
  486. # - /srv/salt/dev/states
  487. # prod:
  488. # - /srv/salt/prod/services
  489. # - /srv/salt/prod/states
  490. #
  491. {% if 'file_roots' in cfg_master -%}
  492. {{ file_roots(cfg_master['file_roots']) }}
  493. {%- elif 'file_roots' in cfg_salt -%}
  494. {{ file_roots(cfg_salt['file_roots']) }}
  495. {%- elif formulas|length -%}
  496. {{ file_roots({'base': ['/srv/salt']}) }}
  497. {%- else -%}
  498. #file_roots:
  499. # base:
  500. # - /srv/salt
  501. {%- endif %}
  502. # When using multiple environments, each with their own top file, the
  503. # default behaviour is an unordered merge. To prevent top files from
  504. # being merged together and instead to only use the top file from the
  505. # requested environment, set this value to 'same'.
  506. {{ get_config('top_file_merging_stragety', 'merge') }}
  507. # To specify the order in which environments are merged, set the ordering
  508. # in the env_order option. Given a conflict, the last matching value will
  509. # win.
  510. {{ get_config('env_order', '["base", "dev", "prod"]') }}
  511. # If top_file_merging_strategy is set to 'same' and an environment does not
  512. # contain a top file, the top file in the environment specified by default_top
  513. # will be used instead.
  514. {{ get_config('default_top', 'base') }}
  515. # The hash_type is the hash to use when discovering the hash of a file on
  516. # the master server. The default is md5, but sha1, sha224, sha256, sha384
  517. # and sha512 are also supported.
  518. #
  519. # Prior to changing this value, the master should be stopped and all Salt
  520. # caches should be cleared.
  521. {{ get_config('hash_type', 'md5') }}
  522. # The buffer size in the file server can be adjusted here:
  523. {{ get_config('file_buffer_size', '1048576') }}
  524. # A regular expression (or a list of expressions) that will be matched
  525. # against the file path before syncing the modules and states to the minions.
  526. # This includes files affected by the file.recurse state.
  527. # For example, if you manage your custom modules and states in subversion
  528. # and don't want all the '.svn' folders and content synced to your minions,
  529. # you could set this to '/\.svn($|/)'. By default nothing is ignored.
  530. {% if 'file_ignore_regex' in cfg_master %}
  531. file_ignore_regex:
  532. {% for regex in cfg_master['file_ignore_regex'] %}
  533. - {{ regex }}
  534. {% endfor %}
  535. {% elif 'file_ignore_regex' in cfg_salt %}
  536. file_ignore_regex:
  537. {% for regex in cfg_salt['file_ignore_regex'] %}
  538. - {{ regex }}
  539. {% endfor %}
  540. {% else %}
  541. #file_ignore_regex:
  542. # - '/\.svn($|/)'
  543. # - '/\.git($|/)'
  544. {% endif %}
  545. # A file glob (or list of file globs) that will be matched against the file
  546. # path before syncing the modules and states to the minions. This is similar
  547. # to file_ignore_regex above, but works on globs instead of regex. By default
  548. # nothing is ignored.
  549. {% if 'file_ignore_glob' in cfg_master %}
  550. file_ignore_glob:
  551. {% for glob in cfg_master['file_ignore_glob'] %}
  552. - {{ glob }}
  553. {% endfor %}
  554. {% elif 'file_ignore_glob' in cfg_salt %}
  555. file_ignore_glob:
  556. {% for glob in cfg_salt['file_ignore_glob'] %}
  557. - {{ glob }}
  558. {% endfor %}
  559. {% else %}
  560. # file_ignore_glob:
  561. # - '*.pyc'
  562. # - '*/somefolder/*.bak'
  563. # - '*.swp'
  564. {% endif %}
  565. # File Server Backend
  566. #
  567. # Salt supports a modular fileserver backend system, this system allows
  568. # the salt master to link directly to third party systems to gather and
  569. # manage the files available to minions. Multiple backends can be
  570. # configured and will be searched for the requested file in the order in which
  571. # they are defined here. The default setting only enables the standard backend
  572. # "roots" which uses the "file_roots" option.
  573. #fileserver_backend:
  574. # - roots
  575. #
  576. # To use multiple backends list them in the order they are searched:
  577. #fileserver_backend:
  578. # - git
  579. # - roots
  580. {% if 'fileserver_backend' in cfg_master -%}
  581. fileserver_backend:
  582. {%- for backend in cfg_master['fileserver_backend'] %}
  583. - {{ backend }}
  584. {%- endfor -%}
  585. {%- endif %}
  586. # Uncomment the line below if you do not want the file_server to follow
  587. # symlinks when walking the filesystem tree. This is set to True
  588. # by default. Currently this only applies to the default roots
  589. # fileserver_backend.
  590. {{ get_config('fileserver_followsymlinks', 'False') }}
  591. # Uncomment the line below if you do not want symlinks to be
  592. # treated as the files they are pointing to. By default this is set to
  593. # False. By uncommenting the line below, any detected symlink while listing
  594. # files on the Master will not be returned to the Minion.
  595. {{ get_config('fileserver_ignoresymlinks', 'True') }}
  596. # By default, the Salt fileserver recurses fully into all defined environments
  597. # to attempt to find files. To limit this behavior so that the fileserver only
  598. # traverses directories with SLS files and special Salt directories like _modules,
  599. # enable the option below. This might be useful for installations where a file root
  600. # has a very large number of files and performance is impacted. Default is False.
  601. {{ get_config('fileserver_limit_traversal', 'False') }}
  602. # The fileserver can fire events off every time the fileserver is updated,
  603. # these are disabled by default, but can be easily turned on by setting this
  604. # flag to True
  605. {{ get_config('fileserver_events', 'False') }}
  606. # Git File Server Backend Configuration
  607. #
  608. # Gitfs can be provided by one of two python modules: GitPython or pygit2. If
  609. # using pygit2, both libgit2 and git must also be installed.
  610. {{ get_config('gitfs_provider', 'gitpython') }}
  611. # When using the git fileserver backend at least one git remote needs to be
  612. # defined. The user running the salt master will need read access to the repo.
  613. #
  614. # The repos will be searched in order to find the file requested by a client
  615. # and the first repo to have the file will return it.
  616. # When using the git backend branches and tags are translated into salt
  617. # environments.
  618. # Note: file:// repos will be treated as a remote, so refs you want used must
  619. # exist in that repo as *local* refs.
  620. {% if 'gitfs_remotes' in cfg_master -%}
  621. gitfs_remotes:
  622. {%- for remote in cfg_master['gitfs_remotes'] %}
  623. {%- if remote is iterable and remote is not string %}
  624. {%- for repo, children in remote.items() %}
  625. - {{ repo }}:
  626. {%- for child in children %}
  627. {%- for key, value in child.items() %}
  628. - {{ key }}: {{ value }}
  629. {%- endfor -%}
  630. {%- endfor -%}
  631. {%- endfor -%}
  632. {%- else %}
  633. - {{ remote }}
  634. {%- endif -%}
  635. {%- endfor -%}
  636. {%- endif %}
  637. #gitfs_remotes:
  638. # - git://github.com/saltstack/salt-states.git
  639. # - file:///var/git/saltmaster
  640. #
  641. # The gitfs_ssl_verify option specifies whether to ignore ssl certificate
  642. # errors when contacting the gitfs backend. You might want to set this to
  643. # false if you're using a git backend that uses a self-signed certificate but
  644. # keep in mind that setting this flag to anything other than the default of True
  645. # is a security concern, you may want to try using the ssh transport.
  646. {{ get_config('gitfs_ssl_verify', 'True') }}
  647. # The gitfs_root option gives the ability to serve files from a subdirectory
  648. # within the repository. The path is defined relative to the root of the
  649. # repository and defaults to the repository root.
  650. {{ get_config('gitfs_root', 'somefolder/otherfolder') }}
  651. # The gitfs_env_whitelist and gitfs_env_blacklist parameters allow for greater
  652. # control over which branches/tags are exposed as fileserver environments.
  653. {% if 'gitfs_env_whitelist' in cfg_master -%}
  654. gitfs_env_whitelist:
  655. {%- for git_env in cfg_master['gitfs_env_whitelist'] %}
  656. - {{ git_env }}
  657. {%- endfor -%}
  658. {% else -%}
  659. # gitfs_env_whitelist:
  660. # - base
  661. # - v1.*
  662. {% endif %}
  663. {% if 'gitfs_env_blacklist' in cfg_master -%}
  664. gitfs_env_blacklist:
  665. {%- for git_env in cfg_master['gitfs_env_blacklist'] %}
  666. - {{ git_env }}
  667. {%- endfor -%}
  668. {% else -%}
  669. # gitfs_env_blacklist:
  670. # - bug/*
  671. # - feature/*
  672. {% endif %}
  673. ##### Pillar settings #####
  674. ##########################################
  675. # Salt Pillars allow for the building of global data that can be made selectively
  676. # available to different minions based on minion grain filtering. The Salt
  677. # Pillar is laid out in the same fashion as the file server, with environments,
  678. # a top file and sls files. However, pillar data does not need to be in the
  679. # highstate format, and is generally just key/value pairs.
  680. {% if 'pillar_roots' in cfg_master -%}
  681. pillar_roots:
  682. {%- for name, roots in cfg_master['pillar_roots']|dictsort %}
  683. {{ name }}:
  684. {%- for dir in roots %}
  685. - {{ dir }}
  686. {%- endfor -%}
  687. {%- endfor -%}
  688. {% elif 'pillar_roots' in cfg_salt -%}
  689. pillar_roots:
  690. {%- for name, roots in cfg_salt['pillar_roots']|dictsort %}
  691. {{ name }}:
  692. {%- for dir in roots %}
  693. - {{ dir }}
  694. {%- endfor -%}
  695. {%- endfor -%}
  696. {%- else -%}
  697. #pillar_roots:
  698. # base:
  699. # - /srv/pillar
  700. {%- endif %}
  701. {% if 'ext_pillar' in cfg_master %}
  702. ext_pillar:
  703. {%- for pillar in cfg_master['ext_pillar'] -%}
  704. {%- for key in pillar -%}
  705. {%- if pillar[key] is string %}
  706. - {{ key }}: {{ pillar[key] }}
  707. {%- elif pillar[key] is iterable and pillar[key] is not mapping %}
  708. - {{ key }}:
  709. {%- for parameter in pillar[key] %}
  710. - {{ parameter }}
  711. {%- endfor -%}
  712. {%- elif pillar[key] is mapping and pillar[key] is not string %}
  713. - {{ key }}:
  714. {%- for parameter in pillar[key] %}
  715. {{ parameter }}: {{pillar[key][parameter]}}
  716. {%- endfor %}
  717. {%- else %}
  718. # Error in rendering {{ key }}, please read https://docs.saltstack.com/en/latest/topics/development/external_pillars.html#configuration
  719. {% endif %}
  720. {%- endfor -%}
  721. {%- endfor %}
  722. {% elif 'ext_pillar' in cfg_salt %}
  723. ext_pillar:
  724. {% for pillar in cfg_salt['ext_pillar'] %}
  725. - {{ pillar.items()[0][0] }}: {{ pillar.items()[0][1] }}
  726. {% endfor %}
  727. {% else %}
  728. #ext_pillar:
  729. # - hiera: /etc/hiera.yaml
  730. # - cmd_yaml: cat /etc/salt/yaml
  731. {% endif %}
  732. # The ext_pillar_first option allows for external pillar sources to populate
  733. # before file system pillar. This allows for targeting file system pillar from
  734. # ext_pillar.
  735. {{ get_config('ext_pillar_first', 'False') }}
  736. # The pillar_gitfs_ssl_verify option specifies whether to ignore ssl certificate
  737. # errors when contacting the pillar gitfs backend. You might want to set this to
  738. # false if you're using a git backend that uses a self-signed certificate but
  739. # keep in mind that setting this flag to anything other than the default of True
  740. # is a security concern, you may want to try using the ssh transport.
  741. {{ get_config('pillar_gitfs_ssl_verify', 'True') }}
  742. # The pillar_opts option adds the master configuration file data to a dict in
  743. # the pillar called "master". This is used to set simple configurations in the
  744. # master config file that can then be used on minions.
  745. {{ get_config('pillar_opts', 'True') }}
  746. # The pillar_safe_render_error option prevents the master from passing pillar
  747. # render errors to the minion. This is set on by default because the error could
  748. # contain templating data which would give that minion information it shouldn't
  749. # have, like a password! When set true the error message will only show:
  750. # Rendering SLS 'my.sls' failed. Please see master log for details.
  751. {{ get_config('pillar_safe_render_error', 'True') }}
  752. # The pillar_source_merging_strategy option allows you to configure merging strategy
  753. # between different sources. It accepts four values: recurse, aggregate, overwrite,
  754. # or smart. Recurse will merge recursively mapping of data. Aggregate instructs
  755. # aggregation of elements between sources that use the #!yamlex renderer. Overwrite
  756. # will verwrite elements according the order in which they are processed. This is
  757. # behavior of the 2014.1 branch and earlier. Smart guesses the best strategy based
  758. # on the "renderer" setting and is the default value.
  759. {{ get_config('pillar_source_merging_strategy', 'smart') }}
  760. # Recursively merge lists by aggregating them instead of replacing them.
  761. {{ get_config('pillar_merge_lists', 'False') }}
  762. ##### Syndic settings #####
  763. ##########################################
  764. # The Salt syndic is used to pass commands through a master from a higher
  765. # master. Using the syndic is simple. If this is a master that will have
  766. # syndic servers(s) below it, then set the "order_masters" setting to True.
  767. #
  768. # If this is a master that will be running a syndic daemon for passthrough, then
  769. # the "syndic_master" setting needs to be set to the location of the master server
  770. # to receive commands from.
  771. # Set the order_masters setting to True if this master will command lower
  772. # masters' syndic interfaces.
  773. {{ get_config('order_masters', 'False') }}
  774. # If this master will be running a salt syndic daemon, syndic_master tells
  775. # this master where to receive commands from.
  776. {{ get_config('syndic_master', 'masterofmaster') }}
  777. # This is the 'ret_port' of the MasterOfMaster:
  778. {{ get_config('syndic_master_port', '4506') }}
  779. # PID file of the syndic daemon:
  780. {{ get_config('syndic_pidfile', '/var/run/salt-syndic.pid') }}
  781. # LOG file of the syndic daemon:
  782. {{ get_config('syndic_log_file', 'syndic.log') }}
  783. ##### Peer Publish settings #####
  784. ##########################################
  785. # Salt minions can send commands to other minions, but only if the minion is
  786. # allowed to. By default "Peer Publication" is disabled, and when enabled it
  787. # is enabled for specific minions and specific commands. This allows secure
  788. # compartmentalization of commands based on individual minions.
  789. # The configuration uses regular expressions to match minions and then a list
  790. # of regular expressions to match functions. The following will allow the
  791. # minion authenticated as foo.example.com to execute functions from the test
  792. # and pkg modules.
  793. #peer:
  794. # foo.example.com:
  795. # - test.*
  796. # - pkg.*
  797. #
  798. # This will allow all minions to execute all commands:
  799. #peer:
  800. # .*:
  801. # - .*
  802. #
  803. # This is not recommended, since it would allow anyone who gets root on any
  804. # single minion to instantly have root on all of the minions!
  805. {% if 'peer' in cfg_master %}
  806. peer:
  807. {% for name, roots in cfg_master['peer'].items() %}
  808. {{ name }}:
  809. {% for mod in roots %}
  810. - {{ mod }}
  811. {% endfor %}
  812. {% endfor %}
  813. {% elif 'peer' in cfg_salt %}
  814. peer:
  815. {% for name, roots in cfg_salt['peer'].items() %}
  816. {{ name }}:
  817. {% for mod in roots %}
  818. - {{ mod }}
  819. {% endfor %}
  820. {% endfor %}
  821. {% endif %}
  822. # Minions can also be allowed to execute runners from the salt master.
  823. # Since executing a runner from the minion could be considered a security risk,
  824. # it needs to be enabled. This setting functions just like the peer setting
  825. # except that it opens up runners instead of module functions.
  826. #
  827. # All peer runner support is turned off by default and must be enabled before
  828. # using. This will enable all peer runners for all minions:
  829. #peer_run:
  830. # .*:
  831. # - .*
  832. #
  833. # To enable just the manage.up runner for the minion foo.example.com:
  834. #peer_run:
  835. # foo.example.com:
  836. # - manage.up
  837. {% if 'peer_run' in cfg_master %}
  838. peer_run:
  839. {% for name, roots in cfg_master['peer_run'].items() %}
  840. {{ name }}:
  841. {% for mod in roots %}
  842. - {{ mod }}
  843. {% endfor %}
  844. {% endfor %}
  845. {% elif 'peer_run' in cfg_salt %}
  846. peer_run:
  847. {% for name, roots in cfg_salt['peer_run'].items() %}
  848. {{ name }}:
  849. {% for mod in roots %}
  850. - {{ mod }}
  851. {% endfor %}
  852. {% endfor %}
  853. {% endif %}
  854. ##### Mine settings #####
  855. #####################################
  856. # Restrict mine.get access from minions. By default any minion has a full access
  857. # to get all mine data from master cache. In acl definion below, only pcre matches
  858. # are allowed.
  859. # mine_get:
  860. # .*:
  861. # - .*
  862. #
  863. # The example below enables minion foo.example.com to get 'network.interfaces' mine
  864. # data only, minions web* to get all network.* and disk.* mine data and all other
  865. # minions won't get any mine data.
  866. {% if 'mine_get' in cfg_master -%}
  867. mine_get:
  868. {%- for minion, data in cfg_master['mine_get']|dictsort %}
  869. {{ minion }}:
  870. {%- for command in data %}
  871. - {% raw %}'{% endraw %}{{ command }}{% raw %}'{% endraw %}
  872. {%- endfor -%}
  873. {%- endfor -%}
  874. {% elif 'mine_get' in cfg_salt -%}
  875. mine_get:
  876. {%- for minion, data in cfg_salt['mine_get']|dictsort %}
  877. {{ minion }}:
  878. {%- for command in data %}
  879. - {% raw %}'{% endraw %}{{ command }}{% raw %}'{% endraw %}
  880. {%- endfor -%}
  881. {%- endfor -%}
  882. {% else -%}
  883. # mine_get:
  884. # foo.example.com:
  885. # - network.interfaces
  886. # web.*:
  887. # - network.*
  888. # - disk.*
  889. {%- endif %}
  890. ##### Logging settings #####
  891. ##########################################
  892. # The location of the master log file
  893. # The master log can be sent to a regular file, local path name, or network
  894. # location. Remote logging works best when configured to use rsyslogd(8) (e.g.:
  895. # ``file:///dev/log``), with rsyslogd(8) configured for network logging. The URI
  896. # format is: <file|udp|tcp>://<host|socketpath>:<port-if-required>/<log-facility>
  897. #log_file: /var/log/salt/master
  898. #log_file: file:///dev/log
  899. #log_file: udp://loghost:10514
  900. {{ get_config('log_file', '/var/log/salt/master') }}
  901. {{ get_config('key_logfile', '/var/log/salt/key') }}
  902. # The level of messages to send to the console.
  903. # One of 'garbage', 'trace', 'debug', info', 'warning', 'error', 'critical'.
  904. #
  905. # The following log levels are considered INSECURE and may log sensitive data:
  906. # ['garbage', 'trace', 'debug']
  907. #
  908. {{ get_config('log_level', 'warning') }}
  909. # The level of messages to send to the log file.
  910. # One of 'garbage', 'trace', 'debug', info', 'warning', 'error', 'critical'.
  911. # If using 'log_granular_levels' this must be set to the highest desired level.
  912. {{ get_config('log_level_logfile', 'warning') }}
  913. # The date and time format used in log messages. Allowed date/time formating
  914. # can be seen here: http://docs.python.org/library/time.html#time.strftime
  915. {{ get_config('log_datefmt', "'%H:%M:%S'") }}
  916. {{ get_config('log_datefmt_logfile', "'%Y-%m-%d %H:%M:%S'") }}
  917. # The format of the console logging messages. Allowed formatting options can
  918. # be seen here: http://docs.python.org/library/logging.html#logrecord-attributes
  919. #
  920. # Console log colors are specified by these additional formatters:
  921. #
  922. # %(colorlevel)s
  923. # %(colorname)s
  924. # %(colorprocess)s
  925. # %(colormsg)s
  926. #
  927. # Since it is desirable to include the surrounding brackets, '[' and ']', in
  928. # the coloring of the messages, these color formatters also include padding as
  929. # well. Color LogRecord attributes are only available for console logging.
  930. #
  931. {{ get_config('log_fmt_console', "'%(colorlevel)s %(colormsg)s'") }}
  932. {{ get_config('log_fmt_console', "'[%(levelname)-8s] %(message)s'") }}
  933. {{ get_config('log_fmt_logfile', "'%(asctime)s,%(msecs)03.0f [%(name)-17s][%(levelname)-8s] %(message)s'") }}
  934. # This can be used to control logging levels more specificically. This
  935. # example sets the main salt library at the 'warning' level, but sets
  936. # 'salt.modules' to log at the 'debug' level:
  937. # log_granular_levels:
  938. # 'salt': 'warning'
  939. # 'salt.modules': 'debug'
  940. #
  941. {% if 'log_granular_levels' in cfg_master %}
  942. log_granular_levels:
  943. {% for name, lvl in cfg_master['log_granular_levels'].items() %}
  944. {{ name }}: {{ lvl }}
  945. {% endfor %}
  946. {% elif 'log_granular_levels' in cfg_salt %}
  947. log_granular_levels:
  948. {% for name, lvl in cfg_salt['log_granular_levels'].items() %}
  949. {{ name }}: {{ lvl }}
  950. {% endfor %}
  951. {% else %}
  952. #log_granular_levels: {}
  953. {% endif %}
  954. ##### Node Groups ######
  955. ##########################################
  956. # Node groups allow for logical groupings of minion nodes. A group consists of a group
  957. # name and a compound target.
  958. #nodegroups:
  959. # group1: 'L@foo.domain.com,bar.domain.com,baz.domain.com and bl*.domain.com'
  960. # group2: 'G@os:Debian and foo.domain.com'
  961. {% if 'nodegroups' in cfg_master %}
  962. nodegroups:
  963. {% for name, lvl in cfg_master['nodegroups'].items() %}
  964. {{ name }}: {{ lvl }}
  965. {% endfor %}
  966. {% elif 'nodegroups' in cfg_salt %}
  967. nodegroups:
  968. {% for name, lvl in cfg_salt['nodegroups'].items() %}
  969. {{ name }}: {{ lvl }}
  970. {% endfor %}
  971. {% endif %}
  972. ##### Range Cluster settings #####
  973. ##########################################
  974. # The range server (and optional port) that serves your cluster information
  975. # https://github.com/ytoolshed/range/wiki/%22yamlfile%22-module-file-spec
  976. #
  977. {{ get_config('range_server', 'range:80') }}
  978. ##### Windows Software Repo settings #####
  979. ###########################################
  980. # Repo settings for 2015.8+ master used with 2015.8+ Windows minions
  981. #
  982. # Location of the repo on the master:
  983. {{ get_config('winrepo_dir_ng', '/srv/salt/win/repo-ng') }}
  984. # List of git repositories to include with the local repo:
  985. {% if 'winrepo_remotes_ng' in cfg_master %}
  986. winrepo_remotes_ng:
  987. {% for repo in cfg_master['winrepo_remotes_ng'] %}
  988. - {{ repo }}
  989. {% endfor %}
  990. {% elif 'winrepo_remotes_ng' in cfg_salt %}
  991. winrepo_remotes_ng:
  992. {% for repo in cfg_salt['winrepo_remotes_ng'] %}
  993. - {{ repo }}
  994. {% endfor %}
  995. {% else %}
  996. #winrepo_remotes_ng:
  997. # - 'https://github.com/saltstack/salt-winrepo-ng.git'
  998. {% endif %}
  999. # Repo settings for 2015.8+ master used with pre-2015.8 Windows minions
  1000. #
  1001. # Location of the repo on the master:
  1002. {{ get_config('winrepo_dir', '/srv/salt/win/repo') }}
  1003. # Location of the master's repo cache file:
  1004. {{ get_config('winrepo_cachefile', 'winrepo.p') }}
  1005. # List of git repositories to include with the local repo:
  1006. {% if 'winrepo_remotes' in cfg_master %}
  1007. winrepo_remotes:
  1008. {% for repo in cfg_master['winrepo_remotes'] %}
  1009. - {{ repo }}
  1010. {% endfor %}
  1011. {% elif 'winrepo_remotes' in cfg_salt %}
  1012. winrepo_remotes:
  1013. {% for repo in cfg_salt['winrepo_remotes'] %}
  1014. - {{ repo }}
  1015. {% endfor %}
  1016. {% else %}
  1017. #winrepo_remotes:
  1018. # - 'https://github.com/saltstack/salt-winrepo.git'
  1019. {% endif %}
  1020. ##### Windows Software Repo settings - Pre 2015.8 #####
  1021. ########################################################
  1022. # Legacy repo settings for pre-2015.8 Windows minions.
  1023. #
  1024. # Location of the repo on the master:
  1025. {{ get_config('win_repo', '/srv/salt/win/repo') }}
  1026. # Location of the master's repo cache file:
  1027. {{ get_config('win_repo_mastercachefile', '/srv/salt/win/repo/winrepo.p') }}
  1028. # List of git repositories to include with the local repo:
  1029. {% if 'win_gitrepos' in cfg_master %}
  1030. win_gitrepos:
  1031. {% for repo in cfg_master['win_gitrepos'] %}
  1032. - {{ repo }}
  1033. {% endfor %}
  1034. {% elif 'win_gitrepos' in cfg_salt %}
  1035. win_gitrepos:
  1036. {% for repo in cfg_salt['win_gitrepos'] %}
  1037. - {{ repo }}
  1038. {% endfor %}
  1039. {% else %}
  1040. #winrepo_remotes:
  1041. # - 'https://github.com/saltstack/salt-winrepo.git'
  1042. {% endif %}
  1043. ##### Returner settings ######
  1044. ############################################
  1045. # Which returner(s) will be used for minion's result:
  1046. #return: mysql
  1047. {{ get_config('return', '')}}
  1048. ###### Miscellaneous settings ######
  1049. ############################################
  1050. # Default match type for filtering events tags: startswith, endswith, find, regex, fnmatch
  1051. {{ get_config('event_match_type', 'startswith') }}
  1052. {%- if 'halite' in cfg_master %}
  1053. ##### Halite #####
  1054. ##########################################
  1055. halite:
  1056. {%- for name, value in cfg_master['halite'].items() %}
  1057. {{ name }}: {{ value }}
  1058. {%- endfor %}
  1059. {%- endif %}
  1060. {%- if 'rest_cherrypy' in cfg_master %}
  1061. ##### rest_cherrypy #####
  1062. ##########################################
  1063. rest_cherrypy:
  1064. {%- for name, value in cfg_master['rest_cherrypy'].items() %}
  1065. {{ name }}: {{ value }}
  1066. {%- endfor %}
  1067. {%- endif %}
  1068. {%- if 'rest_tornado' in cfg_master %}
  1069. ##### rest_tornado #####
  1070. ###########################################
  1071. rest_tornado:
  1072. {%- for name, value in cfg_master['rest_tornado'].items() %}
  1073. {{ name }}: {{ value }}
  1074. {%- endfor %}
  1075. {%- endif %}
  1076. {%- if 'presence_events' in cfg_master %}
  1077. ##### presence events #####
  1078. ##########################################
  1079. {{ get_config('presence_events', 'False') }}
  1080. {%- endif %}
  1081. {%- if 'consul_config' in cfg_master %}
  1082. ##### consul_config #####
  1083. ##########################################
  1084. consul_config:
  1085. {%- for name, value in cfg_master['consul_config'].items() %}
  1086. {{ name }}: {{ value }}
  1087. {%- endfor %}
  1088. {%- endif %}