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.

преди 11 години
преди 10 години
преди 11 години
преди 11 години
преди 10 години
преди 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 години
преди 10 години
преди 11 години
преди 10 години
преди 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 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671
  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. {%- if standalone %}
  350. file_client: local
  351. {%- else %}
  352. {{ get_config('file_client', 'remote') }}
  353. {%- endif %}
  354. # The file directory works on environments passed to the minion, each environment
  355. # can have multiple root directories, the subdirectories in the multiple file
  356. # roots cannot match, otherwise the downloaded files will not be able to be
  357. # reliably ensured. A base environment is required to house the top file.
  358. # Example:
  359. # file_roots:
  360. # base:
  361. # - /srv/salt/
  362. # dev:
  363. # - /srv/salt/dev/services
  364. # - /srv/salt/dev/states
  365. # prod:
  366. # - /srv/salt/prod/services
  367. # - /srv/salt/prod/states
  368. #
  369. {% if 'file_roots' in minion -%}
  370. file_roots:
  371. {%- for name, roots in minion['file_roots']|dictsort %}
  372. {{ name }}:
  373. {%- for dir in roots %}
  374. - {{ dir }}
  375. {%- endfor -%}
  376. {%- endfor -%}
  377. {% elif 'file_roots' in salt -%}
  378. file_roots:
  379. {%- for name, roots in salt['file_roots']|dictsort %}
  380. {{ name }}:
  381. {%- for dir in roots %}
  382. - {{ dir }}
  383. {%- endfor -%}
  384. {%- endfor -%}
  385. {% else -%}
  386. #file_roots:
  387. # base:
  388. # - /srv/salt
  389. {%- endif %}
  390. # By default, the Salt fileserver recurses fully into all defined environments
  391. # to attempt to find files. To limit this behavior so that the fileserver only
  392. # traverses directories with SLS files and special Salt directories like _modules,
  393. # enable the option below. This might be useful for installations where a file root
  394. # has a very large number of files and performance is negatively impacted.
  395. #
  396. # Default is False.
  397. #
  398. {{ get_config('fileserver_limit_traversal', 'False') }}
  399. #
  400. # Git fileserver backend configuration
  401. #
  402. # Gitfs can be provided by one of two python modules: GitPython or pygit2. If
  403. # using pygit2, both libgit2 and git must also be installed.
  404. {{ get_config('gitfs_provider', 'pygit2') }}
  405. #
  406. # When using the git fileserver backend at least one git remote needs to be
  407. # defined. The user running the salt master will need read access to the repo.
  408. #
  409. # The repos will be searched in order to find the file requested by a client
  410. # and the first repo to have the file will return it.
  411. # When using the git backend branches and tags are translated into salt
  412. # environments.
  413. # Note: file:// repos will be treated as a remote, so refs you want used must
  414. # exist in that repo as *local* refs.
  415. {% if 'gitfs_remotes' in minion -%}
  416. gitfs_remotes:
  417. {%- for remote in minion['gitfs_remotes'] %}
  418. {%- if remote is iterable and remote is not string %}
  419. {%- for repo, children in remote.iteritems() %}
  420. - {{ repo }}:
  421. {%- for child in children %}
  422. {%- for key, value in child.iteritems() %}
  423. - {{ key }}: {{ value }}
  424. {%- endfor -%}
  425. {%- endfor -%}
  426. {%- endfor -%}
  427. {%- else %}
  428. - {{ remote }}
  429. {%- endif -%}
  430. {%- endfor -%}
  431. {%- endif %}
  432. #
  433. #gitfs_remotes:
  434. # - git://github.com/saltstack/salt-states.git
  435. # - file:///var/git/saltmaster
  436. #
  437. # The gitfs_ssl_verify option specifies whether to ignore ssl certificate
  438. # errors when contacting the gitfs backend. You might want to set this to
  439. # false if you're using a git backend that uses a self-signed certificate but
  440. # keep in mind that setting this flag to anything other than the default of True
  441. # is a security concern, you may want to try using the ssh transport.
  442. {{ get_config('gitfs_ssl_verify', 'True') }}
  443. #
  444. #
  445. # The gitfs_root option gives the ability to serve files from a subdirectory
  446. # within the repository. The path is defined relative to the root of the
  447. # repository and defaults to the repository root.
  448. {{ get_config('gitfs_root', 'somefolder/otherfolder') }}
  449. #
  450. # The hash_type is the hash to use when discovering the hash of a file in
  451. # the local fileserver. The default is md5, but sha1, sha224, sha256, sha384
  452. # and sha512 are also supported.
  453. {{ get_config('hash_type', 'md5') }}
  454. # The Salt pillar is searched for locally if file_client is set to local. If
  455. # this is the case, and pillar data is defined, then the pillar_roots need to
  456. # also be configured on the minion:
  457. {% if 'pillar_roots' in minion -%}
  458. pillar_roots:
  459. {%- for name, roots in minion['pillar_roots']|dictsort %}
  460. {{ name }}:
  461. {%- for dir in roots %}
  462. - {{ dir }}
  463. {%- endfor -%}
  464. {%- endfor -%}
  465. {% elif 'pillar_roots' in salt -%}
  466. pillar_roots:
  467. {%- for name, roots in salt['pillar_roots']|dictsort %}
  468. {{ name }}:
  469. {%- for dir in roots %}
  470. - {{ dir }}
  471. {%- endfor -%}
  472. {%- endfor -%}
  473. {% else -%}
  474. #pillar_roots:
  475. # base:
  476. # - /srv/salt
  477. {%- endif %}
  478. ###### Security settings #####
  479. ###########################################
  480. # Enable "open mode", this mode still maintains encryption, but turns off
  481. # authentication, this is only intended for highly secure environments or for
  482. # the situation where your keys end up in a bad state. If you run in open mode
  483. # you do so at your own risk!
  484. {{ get_config('open_mode', 'False') }}
  485. # Enable permissive access to the salt keys. This allows you to run the
  486. # master or minion as root, but have a non-root group be given access to
  487. # your pki_dir. To make the access explicit, root must belong to the group
  488. # you've given access to. This is potentially quite insecure.
  489. {{ get_config('permissive_pki_access', 'False') }}
  490. # The state_verbose and state_output settings can be used to change the way
  491. # state system data is printed to the display. By default all data is printed.
  492. # The state_verbose setting can be set to True or False, when set to False
  493. # all data that has a result of True and no changes will be suppressed.
  494. {{ get_config('state_verbose', 'True') }}
  495. #
  496. # The state_output setting changes if the output is the full multi line
  497. # output for each changed state if set to 'full', but if set to 'terse'
  498. # the output will be shortened to a single line.
  499. {{ get_config('state_output', 'full') }}
  500. #
  501. # Fingerprint of the master public key to double verify the master is valid,
  502. # the master fingerprint can be found by running "salt-key -F master" on the
  503. # salt master.
  504. {{ get_config('master_finger', "''") }}
  505. ###### Thread settings #####
  506. ###########################################
  507. # Disable multiprocessing support, by default when a minion receives a
  508. # publication a new process is spawned and the command is executed therein.
  509. {{ get_config('multiprocessing', 'True') }}
  510. ##### Logging settings #####
  511. ##########################################
  512. # The location of the minion log file
  513. # The minion log can be sent to a regular file, local path name, or network
  514. # location. Remote logging works best when configured to use rsyslogd(8) (e.g.:
  515. # ``file:///dev/log``), with rsyslogd(8) configured for network logging. The URI
  516. # format is: <file|udp|tcp>://<host|socketpath>:<port-if-required>/<log-facility>
  517. #log_file: /var/log/salt/minion
  518. #log_file: file:///dev/log
  519. #log_file: udp://loghost:10514
  520. #
  521. {{ get_config('log_file', '/var/log/salt/minion') }}
  522. {{ get_config('key_logfile', ' /var/log/salt/key') }}
  523. #
  524. # The level of messages to send to the console.
  525. # One of 'garbage', 'trace', 'debug', info', 'warning', 'error', 'critical'.
  526. # Default: 'warning'
  527. {{ get_config('log_level', 'warning') }}
  528. #
  529. # The level of messages to send to the log file.
  530. # One of 'garbage', 'trace', 'debug', info', 'warning', 'error', 'critical'.
  531. # Default: 'warning'
  532. {{ get_config('log_level_logfile', '') }}
  533. # The date and time format used in log messages. Allowed date/time formating
  534. # can be seen here: http://docs.python.org/library/time.html#time.strftime
  535. {{ get_config('log_datefmt', "'%H:%M:%S'") }}
  536. {{ get_config('log_datefmt_logfile', "'%Y-%m-%d %H:%M:%S'") }}
  537. #
  538. # The format of the console logging messages. Allowed formatting options can
  539. # be seen here: http://docs.python.org/library/logging.html#logrecord-attributes
  540. {{ get_config('log_fmt_console', "'[%(levelname)-8s] %(message)s'") }}
  541. {{ get_config('log_fmt_logfile', "'%(asctime)s,%(msecs)03.0f [%(name)-17s][%(levelname)-8s] %(message)s'") }}
  542. #
  543. # This can be used to control logging levels more specificically. This
  544. # example sets the main salt library at the 'warning' level, but sets
  545. # 'salt.modules' to log at the 'debug' level:
  546. # log_granular_levels:
  547. # 'salt': 'warning',
  548. # 'salt.modules': 'debug'
  549. #
  550. {{ get_config('log_granular_levels', '{}') }}
  551. ###### Module configuration #####
  552. ###########################################
  553. # Salt allows for modules to be passed arbitrary configuration data, any data
  554. # passed here in valid yaml format will be passed on to the salt minion modules
  555. # for use. It is STRONGLY recommended that a naming convention be used in which
  556. # the module name is followed by a . and then the value. Also, all top level
  557. # data must be applied via the yaml dict construct, some examples:
  558. #
  559. # You can specify that all modules should run in test mode:
  560. #test: True
  561. #
  562. # A simple value for the test module:
  563. #test.foo: foo
  564. #
  565. # A list for the test module:
  566. #test.bar: [baz,quo]
  567. #
  568. # A dict for the test module:
  569. #test.baz: {spam: sausage, cheese: bread}
  570. {%- if 'module_config' in minion %}
  571. {%- for modkey, modval in minion.module_config.items() %}
  572. {{ modkey }}: {{ modval }}
  573. {%- endfor %}
  574. {%- endif %}
  575. ###### Update settings ######
  576. ###########################################
  577. # Using the features in Esky, a salt minion can both run as a frozen app and
  578. # be updated on the fly. These options control how the update process
  579. # (saltutil.update()) behaves.
  580. #
  581. # The url for finding and downloading updates. Disabled by default.
  582. {{ get_config('update_url', 'False') }}
  583. #
  584. # The list of services to restart after a successful update. Empty by default.
  585. {{ get_config('update_restart_services', '[]') }}
  586. ###### Keepalive settings ######
  587. ############################################
  588. # ZeroMQ now includes support for configuring SO_KEEPALIVE if supported by
  589. # the OS. If connections between the minion and the master pass through
  590. # a state tracking device such as a firewall or VPN gateway, there is
  591. # the risk that it could tear down the connection the master and minion
  592. # without informing either party that their connection has been taken away.
  593. # Enabling TCP Keepalives prevents this from happening.
  594. #
  595. # Overall state of TCP Keepalives, enable (1 or True), disable (0 or False)
  596. # or leave to the OS defaults (-1), on Linux, typically disabled. Default True, enabled.
  597. {{ get_config('tcp_keepalive', 'True') }}
  598. #
  599. # How long before the first keepalive should be sent in seconds. Default 300
  600. # to send the first keepalive after 5 minutes, OS default (-1) is typically 7200 seconds
  601. # on Linux see /proc/sys/net/ipv4/tcp_keepalive_time.
  602. {{ get_config('tcp_keepalive_idle', '300') }}
  603. #
  604. # How many lost probes are needed to consider the connection lost. Default -1
  605. # to use OS defaults, typically 9 on Linux, see /proc/sys/net/ipv4/tcp_keepalive_probes.
  606. {{ get_config('tcp_keepalive_cnt', '-1') }}
  607. #
  608. # How often, in seconds, to send keepalives after the first one. Default -1 to
  609. # use OS defaults, typically 75 seconds on Linux, see
  610. # /proc/sys/net/ipv4/tcp_keepalive_intvl.
  611. {{ get_config('tcp_keepalive_intvl', '-1') }}
  612. ###### Windows Software settings ######
  613. ############################################
  614. # Location of the repository cache file on the master
  615. {{ get_config('win_repo_cachefile', 'salt://win/repo/winrepo.p') }}