Saltstack Official Salt Formula
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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