proxy 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  1. ##### Primary configuration settings #####
  2. ##########################################
  3. # This configuration file is used to manage the behavior of all Salt Proxy
  4. # Minions on this host.
  5. # With the exception of the location of the Salt Master Server, values that are
  6. # commented out but have an empty line after the comment are defaults that need
  7. # not be set in the config. If there is no blank line after the comment, the
  8. # value is presented as an example and is not the default.
  9. # Per default the minion will automatically include all config files
  10. # from minion.d/*.conf (minion.d is a directory in the same directory
  11. # as the main minion config file).
  12. #default_include: minion.d/*.conf
  13. # Backwards compatibility option for proxymodules created before 2015.8.2
  14. # This setting will default to 'False' in the 2016.3.0 release
  15. # Setting this to True adds proxymodules to the __opts__ dictionary.
  16. # This breaks several Salt features (basically anything that serializes
  17. # __opts__ over the wire) but retains backwards compatibility.
  18. #add_proxymodule_to_opts: True
  19. # Set the location of the salt master server. If the master server cannot be
  20. # resolved, then the minion will fail to start.
  21. #master: salt
  22. # If a proxymodule has a function called 'grains', then call it during
  23. # regular grains loading and merge the results with the proxy's grains
  24. # dictionary. Otherwise it is assumed that the module calls the grains
  25. # function in a custom way and returns the data elsewhere
  26. #
  27. # Default to False for 2016.3 and 2016.11. Switch to True for 2017.7.0.
  28. # proxy_merge_grains_in_module: True
  29. # If a proxymodule has a function called 'alive' returning a boolean
  30. # flag reflecting the state of the connection with the remove device,
  31. # when this option is set as True, a scheduled job on the proxy will
  32. # try restarting the connection. The polling frequency depends on the
  33. # next option, 'proxy_keep_alive_interval'. Added in 2017.7.0.
  34. # proxy_keep_alive: True
  35. # The polling interval (in minutes) to check if the underlying connection
  36. # with the remote device is still alive. This option requires
  37. # 'proxy_keep_alive' to be configured as True and the proxymodule to
  38. # implement the 'alive' function. Added in 2017.7.0.
  39. # proxy_keep_alive_interval: 1
  40. # By default, any proxy opens the connection with the remote device when
  41. # initialized. Some proxymodules allow through this option to open/close
  42. # the session per command. This requires the proxymodule to have this
  43. # capability. Please consult the documentation to see if the proxy type
  44. # used can be that flexible. Added in 2017.7.0.
  45. # proxy_always_alive: True
  46. # If multiple masters are specified in the 'master' setting, the default behavior
  47. # is to always try to connect to them in the order they are listed. If random_master is
  48. # set to True, the order will be randomized instead. This can be helpful in distributing
  49. # the load of many minions executing salt-call requests, for example, from a cron job.
  50. # If only one master is listed, this setting is ignored and a warning will be logged.
  51. #random_master: False
  52. # Minions can connect to multiple masters simultaneously (all masters
  53. # are "hot"), or can be configured to failover if a master becomes
  54. # unavailable. Multiple hot masters are configured by setting this
  55. # value to "str". Failover masters can be requested by setting
  56. # to "failover". MAKE SURE TO SET master_alive_interval if you are
  57. # using failover.
  58. # master_type: str
  59. # Poll interval in seconds for checking if the master is still there. Only
  60. # respected if master_type above is "failover".
  61. # master_alive_interval: 30
  62. # Set whether the minion should connect to the master via IPv6:
  63. #ipv6: False
  64. # Set the number of seconds to wait before attempting to resolve
  65. # the master hostname if name resolution fails. Defaults to 30 seconds.
  66. # Set to zero if the minion should shutdown and not retry.
  67. # retry_dns: 30
  68. # Set the port used by the master reply and authentication server.
  69. #master_port: 4506
  70. # The user to run salt.
  71. #user: root
  72. # Setting sudo_user will cause salt to run all execution modules under an sudo
  73. # to the user given in sudo_user. The user under which the salt minion process
  74. # itself runs will still be that provided in the user config above, but all
  75. # execution modules run by the minion will be rerouted through sudo.
  76. #sudo_user: saltdev
  77. # Specify the location of the daemon process ID file.
  78. #pidfile: /var/run/salt-minion.pid
  79. # The root directory prepended to these options: pki_dir, cachedir, log_file,
  80. # sock_dir, pidfile.
  81. #root_dir: /
  82. # The directory to store the pki information in
  83. #pki_dir: /etc/salt/pki/minion
  84. # Where cache data goes.
  85. # This data may contain sensitive data and should be protected accordingly.
  86. #cachedir: /var/cache/salt/minion
  87. # Append minion_id to these directories. Helps with
  88. # multiple proxies and minions running on the same machine.
  89. # Allowed elements in the list: pki_dir, cachedir, extension_modules
  90. # Normally not needed unless running several proxies and/or minions on the same machine
  91. # Defaults to ['cachedir'] for proxies, [] (empty list) for regular minions
  92. # append_minionid_config_dirs:
  93. # - cachedir
  94. # Verify and set permissions on configuration directories at startup.
  95. #verify_env: True
  96. # The minion can locally cache the return data from jobs sent to it, this
  97. # can be a good way to keep track of jobs the minion has executed
  98. # (on the minion side). By default this feature is disabled, to enable, set
  99. # cache_jobs to True.
  100. #cache_jobs: False
  101. # Set the directory used to hold unix sockets.
  102. #sock_dir: /var/run/salt/minion
  103. # Set the default outputter used by the salt-call command. The default is
  104. # "nested".
  105. #output: nested
  106. #
  107. # By default output is colored. To disable colored output, set the color value
  108. # to False.
  109. #color: True
  110. # Do not strip off the colored output from nested results and state outputs
  111. # (true by default).
  112. # strip_colors: False
  113. # Backup files that are replaced by file.managed and file.recurse under
  114. # 'cachedir'/file_backup relative to their original location and appended
  115. # with a timestamp. The only valid setting is "minion". Disabled by default.
  116. #
  117. # Alternatively this can be specified for each file in state files:
  118. # /etc/ssh/sshd_config:
  119. # file.managed:
  120. # - source: salt://ssh/sshd_config
  121. # - backup: minion
  122. #
  123. #backup_mode: minion
  124. # When waiting for a master to accept the minion's public key, salt will
  125. # continuously attempt to reconnect until successful. This is the time, in
  126. # seconds, between those reconnection attempts.
  127. #acceptance_wait_time: 10
  128. # If this is nonzero, the time between reconnection attempts will increase by
  129. # acceptance_wait_time seconds per iteration, up to this maximum. If this is
  130. # set to zero, the time between reconnection attempts will stay constant.
  131. #acceptance_wait_time_max: 0
  132. # If the master rejects the minion's public key, retry instead of exiting.
  133. # Rejected keys will be handled the same as waiting on acceptance.
  134. #rejected_retry: False
  135. # When the master key changes, the minion will try to re-auth itself to receive
  136. # the new master key. In larger environments this can cause a SYN flood on the
  137. # master because all minions try to re-auth immediately. To prevent this and
  138. # have a minion wait for a random amount of time, use this optional parameter.
  139. # The wait-time will be a random number of seconds between 0 and the defined value.
  140. #random_reauth_delay: 60
  141. # When waiting for a master to accept the minion's public key, salt will
  142. # continuously attempt to reconnect until successful. This is the timeout value,
  143. # in seconds, for each individual attempt. After this timeout expires, the minion
  144. # will wait for acceptance_wait_time seconds before trying again. Unless your master
  145. # is under unusually heavy load, this should be left at the default.
  146. #auth_timeout: 60
  147. # Number of consecutive SaltReqTimeoutError that are acceptable when trying to
  148. # authenticate.
  149. #auth_tries: 7
  150. # If authentication fails due to SaltReqTimeoutError during a ping_interval,
  151. # cause sub minion process to restart.
  152. #auth_safemode: False
  153. # Ping Master to ensure connection is alive (minutes).
  154. #ping_interval: 0
  155. # To auto recover minions if master changes IP address (DDNS)
  156. # auth_tries: 10
  157. # auth_safemode: False
  158. # ping_interval: 90
  159. #
  160. # Minions won't know master is missing until a ping fails. After the ping fail,
  161. # the minion will attempt authentication and likely fails out and cause a restart.
  162. # When the minion restarts it will resolve the masters IP and attempt to reconnect.
  163. # If you don't have any problems with syn-floods, don't bother with the
  164. # three recon_* settings described below, just leave the defaults!
  165. #
  166. # The ZeroMQ pull-socket that binds to the masters publishing interface tries
  167. # to reconnect immediately, if the socket is disconnected (for example if
  168. # the master processes are restarted). In large setups this will have all
  169. # minions reconnect immediately which might flood the master (the ZeroMQ-default
  170. # is usually a 100ms delay). To prevent this, these three recon_* settings
  171. # can be used.
  172. # recon_default: the interval in milliseconds that the socket should wait before
  173. # trying to reconnect to the master (1000ms = 1 second)
  174. #
  175. # recon_max: the maximum time a socket should wait. each interval the time to wait
  176. # is calculated by doubling the previous time. if recon_max is reached,
  177. # it starts again at recon_default. Short example:
  178. #
  179. # reconnect 1: the socket will wait 'recon_default' milliseconds
  180. # reconnect 2: 'recon_default' * 2
  181. # reconnect 3: ('recon_default' * 2) * 2
  182. # reconnect 4: value from previous interval * 2
  183. # reconnect 5: value from previous interval * 2
  184. # reconnect x: if value >= recon_max, it starts again with recon_default
  185. #
  186. # recon_randomize: generate a random wait time on minion start. The wait time will
  187. # be a random value between recon_default and recon_default +
  188. # recon_max. Having all minions reconnect with the same recon_default
  189. # and recon_max value kind of defeats the purpose of being able to
  190. # change these settings. If all minions have the same values and your
  191. # setup is quite large (several thousand minions), they will still
  192. # flood the master. The desired behavior is to have timeframe within
  193. # all minions try to reconnect.
  194. #
  195. # Example on how to use these settings. The goal: have all minions reconnect within a
  196. # 60 second timeframe on a disconnect.
  197. # recon_default: 1000
  198. # recon_max: 59000
  199. # recon_randomize: True
  200. #
  201. # Each minion will have a randomized reconnect value between 'recon_default'
  202. # and 'recon_default + recon_max', which in this example means between 1000ms
  203. # 60000ms (or between 1 and 60 seconds). The generated random-value will be
  204. # doubled after each attempt to reconnect. Lets say the generated random
  205. # value is 11 seconds (or 11000ms).
  206. # reconnect 1: wait 11 seconds
  207. # reconnect 2: wait 22 seconds
  208. # reconnect 3: wait 33 seconds
  209. # reconnect 4: wait 44 seconds
  210. # reconnect 5: wait 55 seconds
  211. # reconnect 6: wait time is bigger than 60 seconds (recon_default + recon_max)
  212. # reconnect 7: wait 11 seconds
  213. # reconnect 8: wait 22 seconds
  214. # reconnect 9: wait 33 seconds
  215. # reconnect x: etc.
  216. #
  217. # In a setup with ~6000 thousand hosts these settings would average the reconnects
  218. # to about 100 per second and all hosts would be reconnected within 60 seconds.
  219. # recon_default: 100
  220. # recon_max: 5000
  221. # recon_randomize: False
  222. #
  223. #
  224. # The loop_interval sets how long in seconds the minion will wait between
  225. # evaluating the scheduler and running cleanup tasks. This defaults to a
  226. # sane 60 seconds, but if the minion scheduler needs to be evaluated more
  227. # often lower this value
  228. #loop_interval: 60
  229. # The grains_refresh_every setting allows for a minion to periodically check
  230. # its grains to see if they have changed and, if so, to inform the master
  231. # of the new grains. This operation is moderately expensive, therefore
  232. # care should be taken not to set this value too low.
  233. #
  234. # Note: This value is expressed in __minutes__!
  235. #
  236. # A value of 10 minutes is a reasonable default.
  237. #
  238. # If the value is set to zero, this check is disabled.
  239. #grains_refresh_every: 1
  240. # Cache grains on the minion. Default is False.
  241. #grains_cache: False
  242. # Grains cache expiration, in seconds. If the cache file is older than this
  243. # number of seconds then the grains cache will be dumped and fully re-populated
  244. # with fresh data. Defaults to 5 minutes. Will have no effect if 'grains_cache'
  245. # is not enabled.
  246. # grains_cache_expiration: 300
  247. # Windows platforms lack posix IPC and must rely on slower TCP based inter-
  248. # process communications. Set ipc_mode to 'tcp' on such systems
  249. #ipc_mode: ipc
  250. # Overwrite the default tcp ports used by the minion when in tcp mode
  251. #tcp_pub_port: 4510
  252. #tcp_pull_port: 4511
  253. # Passing very large events can cause the minion to consume large amounts of
  254. # memory. This value tunes the maximum size of a message allowed onto the
  255. # minion event bus. The value is expressed in bytes.
  256. #max_event_size: 1048576
  257. # To detect failed master(s) and fire events on connect/disconnect, set
  258. # master_alive_interval to the number of seconds to poll the masters for
  259. # connection events.
  260. #
  261. #master_alive_interval: 30
  262. # The minion can include configuration from other files. To enable this,
  263. # pass a list of paths to this option. The paths can be either relative or
  264. # absolute; if relative, they are considered to be relative to the directory
  265. # the main minion configuration file lives in (this file). Paths can make use
  266. # of shell-style globbing. If no files are matched by a path passed to this
  267. # option then the minion will log a warning message.
  268. #
  269. # Include a config file from some other path:
  270. # include: /etc/salt/extra_config
  271. #
  272. # Include config from several files and directories:
  273. #include:
  274. # - /etc/salt/extra_config
  275. # - /etc/roles/webserver
  276. #
  277. #
  278. #
  279. ##### Minion module management #####
  280. ##########################################
  281. # Disable specific modules. This allows the admin to limit the level of
  282. # access the master has to the minion.
  283. #disable_modules: [cmd,test]
  284. #disable_returners: []
  285. #
  286. # Modules can be loaded from arbitrary paths. This enables the easy deployment
  287. # of third party modules. Modules for returners and minions can be loaded.
  288. # Specify a list of extra directories to search for minion modules and
  289. # returners. These paths must be fully qualified!
  290. #module_dirs: []
  291. #returner_dirs: []
  292. #states_dirs: []
  293. #render_dirs: []
  294. #utils_dirs: []
  295. #
  296. # A module provider can be statically overwritten or extended for the minion
  297. # via the providers option, in this case the default module will be
  298. # overwritten by the specified module. In this example the pkg module will
  299. # be provided by the yumpkg5 module instead of the system default.
  300. #providers:
  301. # pkg: yumpkg5
  302. #
  303. # Enable Cython modules searching and loading. (Default: False)
  304. #cython_enable: False
  305. #
  306. # Specify a max size (in bytes) for modules on import. This feature is currently
  307. # only supported on *nix operating systems and requires psutil.
  308. # modules_max_memory: -1
  309. ##### State Management Settings #####
  310. ###########################################
  311. # The state management system executes all of the state templates on the minion
  312. # to enable more granular control of system state management. The type of
  313. # template and serialization used for state management needs to be configured
  314. # on the minion, the default renderer is yaml_jinja. This is a yaml file
  315. # rendered from a jinja template, the available options are:
  316. # yaml_jinja
  317. # yaml_mako
  318. # yaml_wempy
  319. # json_jinja
  320. # json_mako
  321. # json_wempy
  322. #
  323. #renderer: yaml_jinja
  324. #
  325. # The failhard option tells the minions to stop immediately after the first
  326. # failure detected in the state execution. Defaults to False.
  327. #failhard: False
  328. #
  329. # Reload the modules prior to a highstate run.
  330. #autoload_dynamic_modules: True
  331. #
  332. # clean_dynamic_modules keeps the dynamic modules on the minion in sync with
  333. # the dynamic modules on the master, this means that if a dynamic module is
  334. # not on the master it will be deleted from the minion. By default, this is
  335. # enabled and can be disabled by changing this value to False.
  336. #clean_dynamic_modules: True
  337. #
  338. # Normally, the minion is not isolated to any single environment on the master
  339. # when running states, but the environment can be isolated on the minion side
  340. # by statically setting it. Remember that the recommended way to manage
  341. # environments is to isolate via the top file.
  342. #environment: None
  343. #
  344. # If using the local file directory, then the state top file name needs to be
  345. # defined, by default this is top.sls.
  346. #state_top: top.sls
  347. #
  348. # Run states when the minion daemon starts. To enable, set startup_states to:
  349. # 'highstate' -- Execute state.highstate
  350. # 'sls' -- Read in the sls_list option and execute the named sls files
  351. # 'top' -- Read top_file option and execute based on that file on the Master
  352. #startup_states: ''
  353. #
  354. # List of states to run when the minion starts up if startup_states is 'sls':
  355. #sls_list:
  356. # - edit.vim
  357. # - hyper
  358. #
  359. # Top file to execute if startup_states is 'top':
  360. #top_file: ''
  361. # Automatically aggregate all states that have support for mod_aggregate by
  362. # setting to True. Or pass a list of state module names to automatically
  363. # aggregate just those types.
  364. #
  365. # state_aggregate:
  366. # - pkg
  367. #
  368. #state_aggregate: False
  369. ##### File Directory Settings #####
  370. ##########################################
  371. # The Salt Minion can redirect all file server operations to a local directory,
  372. # this allows for the same state tree that is on the master to be used if
  373. # copied completely onto the minion. This is a literal copy of the settings on
  374. # the master but used to reference a local directory on the minion.
  375. # Set the file client. The client defaults to looking on the master server for
  376. # files, but can be directed to look at the local file directory setting
  377. # defined below by setting it to "local". Setting a local file_client runs the
  378. # minion in masterless mode.
  379. #file_client: remote
  380. # The file directory works on environments passed to the minion, each environment
  381. # can have multiple root directories, the subdirectories in the multiple file
  382. # roots cannot match, otherwise the downloaded files will not be able to be
  383. # reliably ensured. A base environment is required to house the top file.
  384. # Example:
  385. # file_roots:
  386. # base:
  387. # - /srv/salt/
  388. # dev:
  389. # - /srv/salt/dev/services
  390. # - /srv/salt/dev/states
  391. # prod:
  392. # - /srv/salt/prod/services
  393. # - /srv/salt/prod/states
  394. #
  395. #file_roots:
  396. # base:
  397. # - /srv/salt
  398. # By default, the Salt fileserver recurses fully into all defined environments
  399. # to attempt to find files. To limit this behavior so that the fileserver only
  400. # traverses directories with SLS files and special Salt directories like _modules,
  401. # enable the option below. This might be useful for installations where a file root
  402. # has a very large number of files and performance is negatively impacted. Default
  403. # is False.
  404. #fileserver_limit_traversal: False
  405. # The hash_type is the hash to use when discovering the hash of a file in
  406. # the local fileserver. The default is sha256 but sha224, sha384 and sha512
  407. # are also supported.
  408. #
  409. # WARNING: While md5 and sha1 are also supported, do not use it due to the high chance
  410. # of possible collisions and thus security breach.
  411. #
  412. # WARNING: While md5 is also supported, do not use it due to the high chance
  413. # of possible collisions and thus security breach.
  414. #
  415. # Warning: Prior to changing this value, the minion should be stopped and all
  416. # Salt caches should be cleared.
  417. #hash_type: sha256
  418. # The Salt pillar is searched for locally if file_client is set to local. If
  419. # this is the case, and pillar data is defined, then the pillar_roots need to
  420. # also be configured on the minion:
  421. #pillar_roots:
  422. # base:
  423. # - /srv/pillar
  424. #
  425. #
  426. ###### Security settings #####
  427. ###########################################
  428. # Enable "open mode", this mode still maintains encryption, but turns off
  429. # authentication, this is only intended for highly secure environments or for
  430. # the situation where your keys end up in a bad state. If you run in open mode
  431. # you do so at your own risk!
  432. #open_mode: False
  433. # Enable permissive access to the salt keys. This allows you to run the
  434. # master or minion as root, but have a non-root group be given access to
  435. # your pki_dir. To make the access explicit, root must belong to the group
  436. # you've given access to. This is potentially quite insecure.
  437. #permissive_pki_access: False
  438. # The state_verbose and state_output settings can be used to change the way
  439. # state system data is printed to the display. By default all data is printed.
  440. # The state_verbose setting can be set to True or False, when set to False
  441. # all data that has a result of True and no changes will be suppressed.
  442. #state_verbose: True
  443. # The state_output setting controls which results will be output full multi line
  444. # full, terse - each state will be full/terse
  445. # mixed - only states with errors will be full
  446. # changes - states with changes and errors will be full
  447. # full_id, mixed_id, changes_id and terse_id are also allowed;
  448. # when set, the state ID will be used as name in the output
  449. #state_output: full
  450. # The state_output_diff setting changes whether or not the output from
  451. # successful states is returned. Useful when even the terse output of these
  452. # states is cluttering the logs. Set it to True to ignore them.
  453. #state_output_diff: False
  454. # The state_output_profile setting changes whether profile information
  455. # will be shown for each state run.
  456. #state_output_profile: True
  457. # Fingerprint of the master public key to validate the identity of your Salt master
  458. # before the initial key exchange. The master fingerprint can be found by running
  459. # "salt-key -F master" on the Salt master.
  460. #master_finger: ''
  461. ###### Thread settings #####
  462. ###########################################
  463. # Disable multiprocessing support, by default when a minion receives a
  464. # publication a new process is spawned and the command is executed therein.
  465. #multiprocessing: True
  466. ##### Logging settings #####
  467. ##########################################
  468. # The location of the minion log file
  469. # The minion log can be sent to a regular file, local path name, or network
  470. # location. Remote logging works best when configured to use rsyslogd(8) (e.g.:
  471. # ``file:///dev/log``), with rsyslogd(8) configured for network logging. The URI
  472. # format is: <file|udp|tcp>://<host|socketpath>:<port-if-required>/<log-facility>
  473. #log_file: /var/log/salt/minion
  474. #log_file: file:///dev/log
  475. #log_file: udp://loghost:10514
  476. #
  477. #log_file: /var/log/salt/minion
  478. #key_logfile: /var/log/salt/key
  479. # The level of messages to send to the console.
  480. # One of 'garbage', 'trace', 'debug', info', 'warning', 'error', 'critical'.
  481. #
  482. # The following log levels are considered INSECURE and may log sensitive data:
  483. # ['garbage', 'trace', 'debug']
  484. #
  485. # Default: 'warning'
  486. #log_level: warning
  487. # The level of messages to send to the log file.
  488. # One of 'garbage', 'trace', 'debug', info', 'warning', 'error', 'critical'.
  489. # If using 'log_granular_levels' this must be set to the highest desired level.
  490. # Default: 'warning'
  491. #log_level_logfile:
  492. # The date and time format used in log messages. Allowed date/time formatting
  493. # can be seen here: http://docs.python.org/library/time.html#time.strftime
  494. #log_datefmt: '%H:%M:%S'
  495. #log_datefmt_logfile: '%Y-%m-%d %H:%M:%S'
  496. # The format of the console logging messages. Allowed formatting options can
  497. # be seen here: http://docs.python.org/library/logging.html#logrecord-attributes
  498. #
  499. # Console log colors are specified by these additional formatters:
  500. #
  501. # %(colorlevel)s
  502. # %(colorname)s
  503. # %(colorprocess)s
  504. # %(colormsg)s
  505. #
  506. # Since it is desirable to include the surrounding brackets, '[' and ']', in
  507. # the coloring of the messages, these color formatters also include padding as
  508. # well. Color LogRecord attributes are only available for console logging.
  509. #
  510. #log_fmt_console: '%(colorlevel)s %(colormsg)s'
  511. #log_fmt_console: '[%(levelname)-8s] %(message)s'
  512. #
  513. #log_fmt_logfile: '%(asctime)s,%(msecs)03d [%(name)-17s][%(levelname)-8s] %(message)s'
  514. # This can be used to control logging levels more specificically. This
  515. # example sets the main salt library at the 'warning' level, but sets
  516. # 'salt.modules' to log at the 'debug' level:
  517. # log_granular_levels:
  518. # 'salt': 'warning'
  519. # 'salt.modules': 'debug'
  520. #
  521. #log_granular_levels: {}
  522. # To diagnose issues with minions disconnecting or missing returns, ZeroMQ
  523. # supports the use of monitor sockets # to log connection events. This
  524. # feature requires ZeroMQ 4.0 or higher.
  525. #
  526. # To enable ZeroMQ monitor sockets, set 'zmq_monitor' to 'True' and log at a
  527. # debug level or higher.
  528. #
  529. # A sample log event is as follows:
  530. #
  531. # [DEBUG ] ZeroMQ event: {'endpoint': 'tcp://127.0.0.1:4505', 'event': 512,
  532. # 'value': 27, 'description': 'EVENT_DISCONNECTED'}
  533. #
  534. # All events logged will include the string 'ZeroMQ event'. A connection event
  535. # should be logged on the as the minion starts up and initially connects to the
  536. # master. If not, check for debug log level and that the necessary version of
  537. # ZeroMQ is installed.
  538. #
  539. #zmq_monitor: False
  540. ###### Module configuration #####
  541. ###########################################
  542. # Salt allows for modules to be passed arbitrary configuration data, any data
  543. # passed here in valid yaml format will be passed on to the salt minion modules
  544. # for use. It is STRONGLY recommended that a naming convention be used in which
  545. # the module name is followed by a . and then the value. Also, all top level
  546. # data must be applied via the yaml dict construct, some examples:
  547. #
  548. # You can specify that all modules should run in test mode:
  549. #test: True
  550. #
  551. # A simple value for the test module:
  552. #test.foo: foo
  553. #
  554. # A list for the test module:
  555. #test.bar: [baz,quo]
  556. #
  557. # A dict for the test module:
  558. #test.baz: {spam: sausage, cheese: bread}
  559. #
  560. #
  561. ###### Update settings ######
  562. ###########################################
  563. # Using the features in Esky, a salt minion can both run as a frozen app and
  564. # be updated on the fly. These options control how the update process
  565. # (saltutil.update()) behaves.
  566. #
  567. # The url for finding and downloading updates. Disabled by default.
  568. #update_url: False
  569. #
  570. # The list of services to restart after a successful update. Empty by default.
  571. #update_restart_services: []
  572. ###### Keepalive settings ######
  573. ############################################
  574. # ZeroMQ now includes support for configuring SO_KEEPALIVE if supported by
  575. # the OS. If connections between the minion and the master pass through
  576. # a state tracking device such as a firewall or VPN gateway, there is
  577. # the risk that it could tear down the connection the master and minion
  578. # without informing either party that their connection has been taken away.
  579. # Enabling TCP Keepalives prevents this from happening.
  580. # Overall state of TCP Keepalives, enable (1 or True), disable (0 or False)
  581. # or leave to the OS defaults (-1), on Linux, typically disabled. Default True, enabled.
  582. #tcp_keepalive: True
  583. # How long before the first keepalive should be sent in seconds. Default 300
  584. # to send the first keepalive after 5 minutes, OS default (-1) is typically 7200 seconds
  585. # on Linux see /proc/sys/net/ipv4/tcp_keepalive_time.
  586. #tcp_keepalive_idle: 300
  587. # How many lost probes are needed to consider the connection lost. Default -1
  588. # to use OS defaults, typically 9 on Linux, see /proc/sys/net/ipv4/tcp_keepalive_probes.
  589. #tcp_keepalive_cnt: -1
  590. # How often, in seconds, to send keepalives after the first one. Default -1 to
  591. # use OS defaults, typically 75 seconds on Linux, see
  592. # /proc/sys/net/ipv4/tcp_keepalive_intvl.
  593. #tcp_keepalive_intvl: -1
  594. ###### Windows Software settings ######
  595. ############################################
  596. # Location of the repository cache file on the master:
  597. #win_repo_cachefile: 'salt://win/repo/winrepo.p'
  598. ###### Returner settings ######
  599. ############################################
  600. # Which returner(s) will be used for minion's result:
  601. #return: mysql