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.

618 lines
25KB

  1. # This file managed by Salt, do not edit by hand!!
  2. # Based on salt version 0.17.4 default config
  3. {% set reserved_keys = ['master', 'minion', 'cloud', 'salt_cloud_certs'] -%}
  4. {% set salt = pillar.get('salt', {}) -%}
  5. {% set minion = salt.get('minion', {}) -%}
  6. {%- macro get_config(configname, default_value) -%}
  7. {%- if configname in minion -%}
  8. {{ configname }}: {{ minion[configname] }}
  9. {%- elif configname in salt and configname not in reserved_keys -%}
  10. {{ configname }}: {{ salt[configname] }}
  11. {%- else -%}
  12. #{{ configname }}: {{ default_value }}
  13. {%- endif -%}
  14. {%- endmacro -%}
  15. ##### Primary configuration settings #####
  16. ##########################################
  17. # Per default the minion will automatically include all config files
  18. # from minion.d/*.conf (minion.d is a directory in the same directory
  19. # as the main minion config file).
  20. {{ get_config('default_include', 'minion.d/*.conf') }}
  21. # Set the location of the salt master server, if the master server cannot be
  22. # resolved, then the minion will fail to start.
  23. {{ get_config('master', 'salt') }}
  24. # If multiple masters are specified in the 'master' setting, the default behavior
  25. # is to always try to connect to them in the order they are listed. If random_master is
  26. # set to True, the order will be randomized instead. This can be helpful in distributing
  27. # the load of many minions executing salt-call requests, for example from a cron job.
  28. # If only one master is listed, this setting is ignored and a warning will be logged.
  29. {{ get_config('random_master', 'False') }}
  30. # Set whether the minion should connect to the master via IPv6
  31. {{ get_config('ipv6', 'False') }}
  32. # Set the number of seconds to wait before attempting to resolve
  33. # the master hostname if name resolution fails. Defaults to 30 seconds.
  34. # Set to zero if the minion should shutdown and not retry.
  35. {{ get_config('retry_dns', '30') }}
  36. # Set the port used by the master reply and authentication server
  37. {{ get_config('master_port', '4506') }}
  38. # The user to run salt
  39. {{ get_config('user', 'root') }}
  40. # Specify the location of the daemon process ID file
  41. {{ get_config('pidfile', '/var/run/salt-minion.pid') }}
  42. # The root directory prepended to these options: pki_dir, cachedir, log_file,
  43. # sock_dir, pidfile.
  44. {{ get_config('root_dir', '/') }}
  45. # The directory to store the pki information in
  46. {{ get_config('pki_dir', '/etc/salt/pki/minion') }}
  47. # Explicitly declare the id for this minion to use, if left commented the id
  48. # will be the hostname as returned by the python call: socket.getfqdn()
  49. # Since salt uses detached ids it is possible to run multiple minions on the
  50. # same machine but with different ids, this can be useful for salt compute
  51. # clusters.
  52. {% if 'id' in minion -%}
  53. id: {{ minion['id'] }}
  54. {% else -%}
  55. #id:
  56. {%- endif %}
  57. # Append a domain to a hostname in the event that it does not exist. This is
  58. # useful for systems where socket.getfqdn() does not actually result in a
  59. # FQDN (for instance, Solaris).
  60. {{ get_config('append_domain', '') }}
  61. # Custom static grains for this minion can be specified here and used in SLS
  62. # files just like all other grains. This example sets 4 custom grains, with
  63. # the 'roles' grain having two values that can be matched against:
  64. #grains:
  65. # roles:
  66. # - webserver
  67. # - memcache
  68. # deployment: datacenter4
  69. # cabinet: 13
  70. # cab_u: 14-15
  71. {{ get_config('grains', '{}') }}
  72. # Where cache data goes
  73. {{ get_config('cachedir', '/var/cache/salt/minion') }}
  74. # Verify and set permissions on configuration directories at startup
  75. {{ get_config('verify_env', 'True') }}
  76. # The minion can locally cache the return data from jobs sent to it, this
  77. # can be a good way to keep track of jobs the minion has executed
  78. # (on the minion side). By default this feature is disabled, to enable
  79. # set cache_jobs to True
  80. {{ get_config('cache_jobs', 'False') }}
  81. # set the directory used to hold unix sockets
  82. {{ get_config('sock_dir', '/var/run/salt/minion') }}
  83. # Set the default outputter used by the salt-call command. The default is
  84. # "nested"
  85. {{ get_config('output', 'nested') }}
  86. #
  87. # By default output is colored, to disable colored output set the color value
  88. # to False
  89. {{ get_config('color', 'True') }}
  90. # Backup files that are replaced by file.managed and file.recurse under
  91. # 'cachedir'/file_backups relative to their original location and appended
  92. # with a timestamp. The only valid setting is "minion". Disabled by default.
  93. #
  94. # Alternatively this can be specified for each file in state files:
  95. #
  96. # /etc/ssh/sshd_config:
  97. # file.managed:
  98. # - source: salt://ssh/sshd_config
  99. # - backup: minion
  100. #
  101. {{ get_config('backup_mode', 'minion') }}
  102. # When waiting for a master to accept the minion's public key, salt will
  103. # continuously attempt to reconnect until successful. This is the time, in
  104. # seconds, between those reconnection attempts.
  105. {{ get_config('acceptance_wait_time', '10') }}
  106. # If this is nonzero, the time between reconnection attempts will increase by
  107. # acceptance_wait_time seconds per iteration, up to this maximum. If this is
  108. # set to zero, the time between reconnection attempts will stay constant.
  109. {{ get_config('acceptance_wait_time_max', '0') }}
  110. # When the master key changes, the minion will try to re-auth itself to receive
  111. # the new master key. In larger environments this can cause a SYN flood on the
  112. # master because all minions try to re-auth immediately. To prevent this and
  113. # have a minion wait for a random amount of time, use this optional parameter.
  114. # The wait-time will be a random number of seconds between
  115. # 0 and the defined value.
  116. {{ get_config('random_reauth_delay', '60') }}
  117. # When waiting for a master to accept the minion's public key, salt will
  118. # continuously attempt to reconnect until successful. This is the timeout value,
  119. # in seconds, for each individual attempt. After this timeout expires, the minion
  120. # will wait for acceptance_wait_time seconds before trying again.
  121. # Unless your master is under unusually heavy load, this should be left at the default.
  122. {{ get_config('auth_timeout', '3') }}
  123. # If you don't have any problems with syn-floods, dont bother with the
  124. # three recon_* settings described below, just leave the defaults!
  125. #
  126. # The ZeroMQ pull-socket that binds to the masters publishing interface tries
  127. # to reconnect immediately, if the socket is disconnected (for example if
  128. # the master processes are restarted). In large setups this will have all
  129. # minions reconnect immediately which might flood the master (the ZeroMQ-default
  130. # is usually a 100ms delay). To prevent this, these three recon_* settings
  131. # can be used.
  132. #
  133. # recon_default: the interval in milliseconds that the socket should wait before
  134. # trying to reconnect to the master (100ms = 1 second)
  135. #
  136. # recon_max: the maximum time a socket should wait. each interval the time to wait
  137. # is calculated by doubling the previous time. if recon_max is reached,
  138. # it starts again at recon_default. Short example:
  139. #
  140. # reconnect 1: the socket will wait 'recon_default' milliseconds
  141. # reconnect 2: 'recon_default' * 2
  142. # reconnect 3: ('recon_default' * 2) * 2
  143. # reconnect 4: value from previous interval * 2
  144. # reconnect 5: value from previous interval * 2
  145. # reconnect x: if value >= recon_max, it starts again with recon_default
  146. #
  147. # recon_randomize: generate a random wait time on minion start. The wait time will
  148. # be a random value between recon_default and recon_default +
  149. # recon_max. Having all minions reconnect with the same recon_default
  150. # and recon_max value kind of defeats the purpose of being able to
  151. # change these settings. If all minions have the same values and your
  152. # setup is quite large (several thousand minions), they will still
  153. # flood the master. The desired behaviour is to have timeframe within
  154. # all minions try to reconnect.
  155. # Example on how to use these settings:
  156. # The goal: have all minions reconnect within a 60 second timeframe on a disconnect
  157. #
  158. # The settings:
  159. #recon_default: 1000
  160. #recon_max: 59000
  161. #recon_randomize: True
  162. #
  163. # Each minion will have a randomized reconnect value between 'recon_default'
  164. # and 'recon_default + recon_max', which in this example means between 1000ms
  165. # 60000ms (or between 1 and 60 seconds). The generated random-value will be
  166. # doubled after each attempt to reconnect. Lets say the generated random
  167. # value is 11 seconds (or 11000ms).
  168. #
  169. # reconnect 1: wait 11 seconds
  170. # reconnect 2: wait 22 seconds
  171. # reconnect 3: wait 33 seconds
  172. # reconnect 4: wait 44 seconds
  173. # reconnect 5: wait 55 seconds
  174. # reconnect 6: wait time is bigger than 60 seconds (recon_default + recon_max)
  175. # reconnect 7: wait 11 seconds
  176. # reconnect 8: wait 22 seconds
  177. # reconnect 9: wait 33 seconds
  178. # reconnect x: etc.
  179. #
  180. # In a setup with ~6000 thousand hosts these settings would average the reconnects
  181. # to about 100 per second and all hosts would be reconnected within 60 seconds.
  182. {{ get_config('recon_default', '100') }}
  183. {{ get_config('recon_max', '5000') }}
  184. {{ get_config('recon_randomize', 'False') }}
  185. # The loop_interval sets how long in seconds the minion will wait between
  186. # evaluating the scheduler and running cleanup tasks. This defaults to a
  187. # sane 60 seconds, but if the minion scheduler needs to be evaluated more
  188. # often lower this value
  189. {{ get_config('loop_interval', '60') }}
  190. # The grains_refresh_every setting allows for a minion to periodically check
  191. # its grains to see if they have changed and, if so, to inform the master
  192. # of the new grains. This operation is moderately expensive, therefore
  193. # care should be taken not to set this value too low.
  194. #
  195. # Note: This value is expressed in __minutes__!
  196. #
  197. # A value of 10 minutes is a reasonable default.
  198. #
  199. # If the value is set to zero, this check is disabled.
  200. {{ get_config('grains_refresh_every', '1') }}
  201. # Cache grains on the minion. Default is False.
  202. {{ get_config('grains_cache', 'False') }}
  203. # Grains cache expiration, in seconds. If the cache file is older than this
  204. # number of seconds then the grains cache will be dumped and fully re-populated
  205. # with fresh data. Defaults to 5 minutes. Will have no effect if 'grains_cache'
  206. # is not enabled.
  207. {{ get_config('grains_cache_expiration', '300') }}
  208. # When healing, a dns_check is run. This is to make sure that the originally
  209. # resolved dns has not changed. If this is something that does not happen in
  210. # your environment, set this value to False.
  211. {{ get_config('dns_check', 'True') }}
  212. # Windows platforms lack posix IPC and must rely on slower TCP based inter-
  213. # process communications. Set ipc_mode to 'tcp' on such systems
  214. {{ get_config('ipc_mode', 'ipc') }}
  215. #
  216. # Overwrite the default tcp ports used by the minion when in tcp mode
  217. {{ get_config('tcp_pub_port', '4510') }}
  218. {{ get_config('tcp_pull_port', '4511') }}
  219. # The minion can include configuration from other files. To enable this,
  220. # pass a list of paths to this option. The paths can be either relative or
  221. # absolute; if relative, they are considered to be relative to the directory
  222. # the main minion configuration file lives in (this file). Paths can make use
  223. # of shell-style globbing. If no files are matched by a path passed to this
  224. # option then the minion will log a warning message.
  225. #
  226. #
  227. # Include a config file from some other path:
  228. # include: /etc/salt/extra_config
  229. #
  230. # Include config from several files and directories:
  231. #include:
  232. # - /etc/salt/extra_config
  233. # - /etc/roles/webserver
  234. {% if 'include' in minion -%}
  235. {% if isinstance(minion['include'], list) -%}
  236. include:
  237. {% for include in minion['include'] -%}
  238. - {{ include }}
  239. {% endfor -%}
  240. {% else -%}
  241. include: minion['include']
  242. {% endif -%}
  243. {% elif 'include' in salt -%}
  244. {% if isinstance(salt['include'], list) -%}
  245. include:
  246. {% for include in salt['include'] -%}
  247. - {{ include }}
  248. {% endfor -%}
  249. {% else -%}
  250. include: salt['include']
  251. {% endif -%}
  252. {% endif -%}
  253. ##### Minion module management #####
  254. ##########################################
  255. # Disable specific modules. This allows the admin to limit the level of
  256. # access the master has to the minion
  257. {{ get_config('disable_modules', '[cmd,test]') }}
  258. {{ get_config('disable_returners', '[]') }}
  259. #
  260. # Modules can be loaded from arbitrary paths. This enables the easy deployment
  261. # of third party modules. Modules for returners and minions can be loaded.
  262. # Specify a list of extra directories to search for minion modules and
  263. # returners. These paths must be fully qualified!
  264. {{ get_config('module_dirs', '[]') }}
  265. {{ get_config('returner_dirs', '[]') }}
  266. {{ get_config('states_dirs', '[]') }}
  267. {{ get_config('render_dirs', '[]') }}
  268. #
  269. # A module provider can be statically overwritten or extended for the minion
  270. # via the providers option, in this case the default module will be
  271. # overwritten by the specified module. In this example the pkg module will
  272. # be provided by the yumpkg5 module instead of the system default.
  273. #
  274. #providers:
  275. # pkg: yumpkg5
  276. {{ get_config('providers', '{}') }}
  277. #
  278. # Enable Cython modules searching and loading. (Default: False)
  279. {{ get_config('cython_enable', 'False') }}
  280. #
  281. #
  282. #
  283. # Specify a max size (in bytes) for modules on import
  284. # this feature is currently only supported on *nix OSs and requires psutil
  285. {{ get_config('modules_max_memory', '-1') }}
  286. ##### State Management Settings #####
  287. ###########################################
  288. # The state management system executes all of the state templates on the minion
  289. # to enable more granular control of system state management. The type of
  290. # template and serialization used for state management needs to be configured
  291. # on the minion, the default renderer is yaml_jinja. This is a yaml file
  292. # rendered from a jinja template, the available options are:
  293. # yaml_jinja
  294. # yaml_mako
  295. # yaml_wempy
  296. # json_jinja
  297. # json_mako
  298. # json_wempy
  299. #
  300. {{ get_config('renderer', 'yaml_jinja') }}
  301. #
  302. # The failhard option tells the minions to stop immediately after the first
  303. # failure detected in the state execution, defaults to False
  304. {{ get_config('failhard', 'False') }}
  305. #
  306. # autoload_dynamic_modules Turns on automatic loading of modules found in the
  307. # environments on the master. This is turned on by default, to turn of
  308. # autoloading modules when states run set this value to False
  309. {{ get_config('autoload_dynamic_modules', 'True') }}
  310. #
  311. # clean_dynamic_modules keeps the dynamic modules on the minion in sync with
  312. # the dynamic modules on the master, this means that if a dynamic module is
  313. # not on the master it will be deleted from the minion. By default this is
  314. # enabled and can be disabled by changing this value to False
  315. {{ get_config('clean_dynamic_modules', 'True') }}
  316. #
  317. # Normally the minion is not isolated to any single environment on the master
  318. # when running states, but the environment can be isolated on the minion side
  319. # by statically setting it. Remember that the recommended way to manage
  320. # environments is to isolate via the top file.
  321. {{ get_config('environment', 'None') }}
  322. #
  323. # If using the local file directory, then the state top file name needs to be
  324. # defined, by default this is top.sls.
  325. {{ get_config('state_top', 'top.sls') }}
  326. #
  327. # Run states when the minion daemon starts. To enable, set startup_states to:
  328. # 'highstate' -- Execute state.highstate
  329. # 'sls' -- Read in the sls_list option and execute the named sls files
  330. # 'top' -- Read top_file option and execute based on that file on the Master
  331. {{ get_config('startup_states', "''") }}
  332. #
  333. # list of states to run when the minion starts up if startup_states is 'sls'
  334. #sls_list:
  335. # - edit.vim
  336. # - hyper
  337. {{ get_config('sls_list', '[]') }}
  338. # top file to execute if startup_states is 'top'
  339. {{ get_config('top_file', "''") }}
  340. ##### File Directory Settings #####
  341. ##########################################
  342. # The Salt Minion can redirect all file server operations to a local directory,
  343. # this allows for the same state tree that is on the master to be used if
  344. # copied completely onto the minion. This is a literal copy of the settings on
  345. # the master but used to reference a local directory on the minion.
  346. # Set the file client. The client defaults to looking on the master server for
  347. # files, but can be directed to look at the local file directory setting
  348. # defined below by setting it to local.
  349. {{ get_config('file_client', 'remote') }}
  350. # The file directory works on environments passed to the minion, each environment
  351. # can have multiple root directories, the subdirectories in the multiple file
  352. # roots cannot match, otherwise the downloaded files will not be able to be
  353. # reliably ensured. A base environment is required to house the top file.
  354. # Example:
  355. # file_roots:
  356. # base:
  357. # - /srv/salt/
  358. # dev:
  359. # - /srv/salt/dev/services
  360. # - /srv/salt/dev/states
  361. # prod:
  362. # - /srv/salt/prod/services
  363. # - /srv/salt/prod/states
  364. #
  365. {% if 'file_roots' in minion -%}
  366. file_roots:
  367. {%- for name, roots in minion['file_roots']|dictsort %}
  368. {{ name }}:
  369. {%- for dir in roots %}
  370. - {{ dir }}
  371. {%- endfor -%}
  372. {%- endfor -%}
  373. {% elif 'file_roots' in salt -%}
  374. file_roots:
  375. {%- for name, roots in salt['file_roots']|dictsort %}
  376. {{ name }}:
  377. {%- for dir in roots %}
  378. - {{ dir }}
  379. {%- endfor -%}
  380. {%- endfor -%}
  381. {% else -%}
  382. #file_roots:
  383. # base:
  384. # - /srv/salt
  385. {%- endif %}
  386. # By default, the Salt fileserver recurses fully into all defined environments
  387. # to attempt to find files. To limit this behavior so that the fileserver only
  388. # traverses directories with SLS files and special Salt directories like _modules,
  389. # enable the option below. This might be useful for installations where a file root
  390. # has a very large number of files and performance is negatively impacted.
  391. #
  392. # Default is False.
  393. #
  394. {{ get_config('fileserver_limit_traversal', 'False') }}
  395. # The hash_type is the hash to use when discovering the hash of a file in
  396. # the local fileserver. The default is md5, but sha1, sha224, sha256, sha384
  397. # and sha512 are also supported.
  398. {{ get_config('hash_type', 'md5') }}
  399. # The Salt pillar is searched for locally if file_client is set to local. If
  400. # this is the case, and pillar data is defined, then the pillar_roots need to
  401. # also be configured on the minion:
  402. {% if 'pillar_roots' in minion -%}
  403. pillar_roots:
  404. {%- for name, roots in minion['pillar_roots']|dictsort %}
  405. {{ name }}:
  406. {%- for dir in roots %}
  407. - {{ dir }}
  408. {%- endfor -%}
  409. {%- endfor -%}
  410. {% elif 'pillar_roots' in salt -%}
  411. pillar_roots:
  412. {%- for name, roots in salt['pillar_roots']|dictsort %}
  413. {{ name }}:
  414. {%- for dir in roots %}
  415. - {{ dir }}
  416. {%- endfor -%}
  417. {%- endfor -%}
  418. {% else -%}
  419. #pillar_roots:
  420. # base:
  421. # - /srv/salt
  422. {%- endif %}
  423. ###### Security settings #####
  424. ###########################################
  425. # Enable "open mode", this mode still maintains encryption, but turns off
  426. # authentication, this is only intended for highly secure environments or for
  427. # the situation where your keys end up in a bad state. If you run in open mode
  428. # you do so at your own risk!
  429. {{ get_config('open_mode', 'False') }}
  430. # Enable permissive access to the salt keys. This allows you to run the
  431. # master or minion as root, but have a non-root group be given access to
  432. # your pki_dir. To make the access explicit, root must belong to the group
  433. # you've given access to. This is potentially quite insecure.
  434. {{ get_config('permissive_pki_access', 'False') }}
  435. # The state_verbose and state_output settings can be used to change the way
  436. # state system data is printed to the display. By default all data is printed.
  437. # The state_verbose setting can be set to True or False, when set to False
  438. # all data that has a result of True and no changes will be suppressed.
  439. {{ get_config('state_verbose', 'True') }}
  440. #
  441. # The state_output setting changes if the output is the full multi line
  442. # output for each changed state if set to 'full', but if set to 'terse'
  443. # the output will be shortened to a single line.
  444. {{ get_config('state_output', 'full') }}
  445. #
  446. # Fingerprint of the master public key to double verify the master is valid,
  447. # the master fingerprint can be found by running "salt-key -F master" on the
  448. # salt master.
  449. {{ get_config('master_finger', "''") }}
  450. ###### Thread settings #####
  451. ###########################################
  452. # Disable multiprocessing support, by default when a minion receives a
  453. # publication a new process is spawned and the command is executed therein.
  454. {{ get_config('multiprocessing', 'True') }}
  455. ##### Logging settings #####
  456. ##########################################
  457. # The location of the minion log file
  458. # The minion log can be sent to a regular file, local path name, or network
  459. # location. Remote logging works best when configured to use rsyslogd(8) (e.g.:
  460. # ``file:///dev/log``), with rsyslogd(8) configured for network logging. The URI
  461. # format is: <file|udp|tcp>://<host|socketpath>:<port-if-required>/<log-facility>
  462. #log_file: /var/log/salt/minion
  463. #log_file: file:///dev/log
  464. #log_file: udp://loghost:10514
  465. #
  466. {{ get_config('log_file', '/var/log/salt/minion') }}
  467. {{ get_config('key_logfile', ' /var/log/salt/key') }}
  468. #
  469. # The level of messages to send to the console.
  470. # One of 'garbage', 'trace', 'debug', info', 'warning', 'error', 'critical'.
  471. # Default: 'warning'
  472. {{ get_config('log_level', 'warning') }}
  473. #
  474. # The level of messages to send to the log file.
  475. # One of 'garbage', 'trace', 'debug', info', 'warning', 'error', 'critical'.
  476. # Default: 'warning'
  477. {{ get_config('log_level_logfile', '') }}
  478. # The date and time format used in log messages. Allowed date/time formating
  479. # can be seen here: http://docs.python.org/library/time.html#time.strftime
  480. {{ get_config('log_datefmt', "'%H:%M:%S'") }}
  481. {{ get_config('log_datefmt_logfile', "'%Y-%m-%d %H:%M:%S'") }}
  482. #
  483. # The format of the console logging messages. Allowed formatting options can
  484. # be seen here: http://docs.python.org/library/logging.html#logrecord-attributes
  485. {{ get_config('log_fmt_console', "'[%(levelname)-8s] %(message)s'") }}
  486. {{ get_config('log_fmt_logfile', "'%(asctime)s,%(msecs)03.0f [%(name)-17s][%(levelname)-8s] %(message)s'") }}
  487. #
  488. # This can be used to control logging levels more specificically. This
  489. # example sets the main salt library at the 'warning' level, but sets
  490. # 'salt.modules' to log at the 'debug' level:
  491. # log_granular_levels:
  492. # 'salt': 'warning',
  493. # 'salt.modules': 'debug'
  494. #
  495. {{ get_config('log_granular_levels', '{}') }}
  496. ###### Module configuration #####
  497. ###########################################
  498. # Salt allows for modules to be passed arbitrary configuration data, any data
  499. # passed here in valid yaml format will be passed on to the salt minion modules
  500. # for use. It is STRONGLY recommended that a naming convention be used in which
  501. # the module name is followed by a . and then the value. Also, all top level
  502. # data must be applied via the yaml dict construct, some examples:
  503. #
  504. # You can specify that all modules should run in test mode:
  505. #test: True
  506. #
  507. # A simple value for the test module:
  508. #test.foo: foo
  509. #
  510. # A list for the test module:
  511. #test.bar: [baz,quo]
  512. #
  513. # A dict for the test module:
  514. #test.baz: {spam: sausage, cheese: bread}
  515. {%- if 'module_config' in minion %}
  516. {%- for modkey, modval in minion.module_config.items() %}
  517. {{ modkey }}: {{ modval }}
  518. {%- endfor %}
  519. {%- endif %}
  520. ###### Update settings ######
  521. ###########################################
  522. # Using the features in Esky, a salt minion can both run as a frozen app and
  523. # be updated on the fly. These options control how the update process
  524. # (saltutil.update()) behaves.
  525. #
  526. # The url for finding and downloading updates. Disabled by default.
  527. {{ get_config('update_url', 'False') }}
  528. #
  529. # The list of services to restart after a successful update. Empty by default.
  530. {{ get_config('update_restart_services', '[]') }}
  531. ###### Keepalive settings ######
  532. ############################################
  533. # ZeroMQ now includes support for configuring SO_KEEPALIVE if supported by
  534. # the OS. If connections between the minion and the master pass through
  535. # a state tracking device such as a firewall or VPN gateway, there is
  536. # the risk that it could tear down the connection the master and minion
  537. # without informing either party that their connection has been taken away.
  538. # Enabling TCP Keepalives prevents this from happening.
  539. #
  540. # Overall state of TCP Keepalives, enable (1 or True), disable (0 or False)
  541. # or leave to the OS defaults (-1), on Linux, typically disabled. Default True, enabled.
  542. {{ get_config('tcp_keepalive', 'True') }}
  543. #
  544. # How long before the first keepalive should be sent in seconds. Default 300
  545. # to send the first keepalive after 5 minutes, OS default (-1) is typically 7200 seconds
  546. # on Linux see /proc/sys/net/ipv4/tcp_keepalive_time.
  547. {{ get_config('tcp_keepalive_idle', '300') }}
  548. #
  549. # How many lost probes are needed to consider the connection lost. Default -1
  550. # to use OS defaults, typically 9 on Linux, see /proc/sys/net/ipv4/tcp_keepalive_probes.
  551. {{ get_config('tcp_keepalive_cnt', '-1') }}
  552. #
  553. # How often, in seconds, to send keepalives after the first one. Default -1 to
  554. # use OS defaults, typically 75 seconds on Linux, see
  555. # /proc/sys/net/ipv4/tcp_keepalive_intvl.
  556. {{ get_config('tcp_keepalive_intvl', '-1') }}
  557. ###### Windows Software settings ######
  558. ############################################
  559. # Location of the repository cache file on the master
  560. {{ get_config('win_repo_cachefile', 'salt://win/repo/winrepo.p') }}