proxy 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682
  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 default renderer to use in SLS files. This is configured as a
  312. # pipe-delimited expression. For example, jinja|yaml will first run jinja
  313. # templating on the SLS file, and then load the result as YAML. This syntax is
  314. # documented in further depth at the following URL:
  315. #
  316. # https://docs.saltstack.com/en/latest/ref/renderers/#composing-renderers
  317. #
  318. # NOTE: The "shebang" prefix (e.g. "#!jinja|yaml") described in the
  319. # documentation linked above is for use in an SLS file to override the default
  320. # renderer, it should not be used when configuring the renderer here.
  321. #
  322. #renderer: jinja|yaml
  323. #
  324. # The failhard option tells the minions to stop immediately after the first
  325. # failure detected in the state execution. Defaults to False.
  326. #failhard: False
  327. #
  328. # Reload the modules prior to a highstate run.
  329. #autoload_dynamic_modules: True
  330. #
  331. # clean_dynamic_modules keeps the dynamic modules on the minion in sync with
  332. # the dynamic modules on the master, this means that if a dynamic module is
  333. # not on the master it will be deleted from the minion. By default, this is
  334. # enabled and can be disabled by changing this value to False.
  335. #clean_dynamic_modules: True
  336. #
  337. # Normally, the minion is not isolated to any single environment on the master
  338. # when running states, but the environment can be isolated on the minion side
  339. # by statically setting it. Remember that the recommended way to manage
  340. # environments is to isolate via the top file.
  341. #environment: None
  342. #
  343. # If using the local file directory, then the state top file name needs to be
  344. # defined, by default this is top.sls.
  345. #state_top: top.sls
  346. #
  347. # Run states when the minion daemon starts. To enable, set startup_states to:
  348. # 'highstate' -- Execute state.highstate
  349. # 'sls' -- Read in the sls_list option and execute the named sls files
  350. # 'top' -- Read top_file option and execute based on that file on the Master
  351. #startup_states: ''
  352. #
  353. # List of states to run when the minion starts up if startup_states is 'sls':
  354. #sls_list:
  355. # - edit.vim
  356. # - hyper
  357. #
  358. # Top file to execute if startup_states is 'top':
  359. #top_file: ''
  360. # Automatically aggregate all states that have support for mod_aggregate by
  361. # setting to True. Or pass a list of state module names to automatically
  362. # aggregate just those types.
  363. #
  364. # state_aggregate:
  365. # - pkg
  366. #
  367. #state_aggregate: False
  368. ##### File Directory Settings #####
  369. ##########################################
  370. # The Salt Minion can redirect all file server operations to a local directory,
  371. # this allows for the same state tree that is on the master to be used if
  372. # copied completely onto the minion. This is a literal copy of the settings on
  373. # the master but used to reference a local directory on the minion.
  374. # Set the file client. The client defaults to looking on the master server for
  375. # files, but can be directed to look at the local file directory setting
  376. # defined below by setting it to "local". Setting a local file_client runs the
  377. # minion in masterless mode.
  378. #file_client: remote
  379. # The file directory works on environments passed to the minion, each environment
  380. # can have multiple root directories, the subdirectories in the multiple file
  381. # roots cannot match, otherwise the downloaded files will not be able to be
  382. # reliably ensured. A base environment is required to house the top file.
  383. # Example:
  384. # file_roots:
  385. # base:
  386. # - /srv/salt/
  387. # dev:
  388. # - /srv/salt/dev/services
  389. # - /srv/salt/dev/states
  390. # prod:
  391. # - /srv/salt/prod/services
  392. # - /srv/salt/prod/states
  393. #
  394. #file_roots:
  395. # base:
  396. # - /srv/salt
  397. # By default, the Salt fileserver recurses fully into all defined environments
  398. # to attempt to find files. To limit this behavior so that the fileserver only
  399. # traverses directories with SLS files and special Salt directories like _modules,
  400. # enable the option below. This might be useful for installations where a file root
  401. # has a very large number of files and performance is negatively impacted. Default
  402. # is False.
  403. #fileserver_limit_traversal: False
  404. # The hash_type is the hash to use when discovering the hash of a file in
  405. # the local fileserver. The default is sha256 but sha224, sha384 and sha512
  406. # are also supported.
  407. #
  408. # WARNING: While md5 and sha1 are also supported, do not use it due to the high chance
  409. # of possible collisions and thus security breach.
  410. #
  411. # WARNING: While md5 is also supported, do not use it due to the high chance
  412. # of possible collisions and thus security breach.
  413. #
  414. # Warning: Prior to changing this value, the minion should be stopped and all
  415. # Salt caches should be cleared.
  416. #hash_type: sha256
  417. # The Salt pillar is searched for locally if file_client is set to local. If
  418. # this is the case, and pillar data is defined, then the pillar_roots need to
  419. # also be configured on the minion:
  420. #pillar_roots:
  421. # base:
  422. # - /srv/pillar
  423. #
  424. #
  425. ###### Security settings #####
  426. ###########################################
  427. # Enable "open mode", this mode still maintains encryption, but turns off
  428. # authentication, this is only intended for highly secure environments or for
  429. # the situation where your keys end up in a bad state. If you run in open mode
  430. # you do so at your own risk!
  431. #open_mode: False
  432. # Enable permissive access to the salt keys. This allows you to run the
  433. # master or minion as root, but have a non-root group be given access to
  434. # your pki_dir. To make the access explicit, root must belong to the group
  435. # you've given access to. This is potentially quite insecure.
  436. #permissive_pki_access: False
  437. # The state_verbose and state_output settings can be used to change the way
  438. # state system data is printed to the display. By default all data is printed.
  439. # The state_verbose setting can be set to True or False, when set to False
  440. # all data that has a result of True and no changes will be suppressed.
  441. #state_verbose: True
  442. # The state_output setting controls which results will be output full multi line
  443. # full, terse - each state will be full/terse
  444. # mixed - only states with errors will be full
  445. # changes - states with changes and errors will be full
  446. # full_id, mixed_id, changes_id and terse_id are also allowed;
  447. # when set, the state ID will be used as name in the output
  448. #state_output: full
  449. # The state_output_diff setting changes whether or not the output from
  450. # successful states is returned. Useful when even the terse output of these
  451. # states is cluttering the logs. Set it to True to ignore them.
  452. #state_output_diff: False
  453. # The state_output_profile setting changes whether profile information
  454. # will be shown for each state run.
  455. #state_output_profile: True
  456. # Fingerprint of the master public key to validate the identity of your Salt master
  457. # before the initial key exchange. The master fingerprint can be found by running
  458. # "salt-key -F master" on the Salt master.
  459. #master_finger: ''
  460. ###### Thread settings #####
  461. ###########################################
  462. # Disable multiprocessing support, by default when a minion receives a
  463. # publication a new process is spawned and the command is executed therein.
  464. #multiprocessing: True
  465. ##### Logging settings #####
  466. ##########################################
  467. # The location of the minion log file
  468. # The minion log can be sent to a regular file, local path name, or network
  469. # location. Remote logging works best when configured to use rsyslogd(8) (e.g.:
  470. # ``file:///dev/log``), with rsyslogd(8) configured for network logging. The URI
  471. # format is: <file|udp|tcp>://<host|socketpath>:<port-if-required>/<log-facility>
  472. #log_file: /var/log/salt/minion
  473. #log_file: file:///dev/log
  474. #log_file: udp://loghost:10514
  475. #
  476. #log_file: /var/log/salt/minion
  477. #key_logfile: /var/log/salt/key
  478. # The level of messages to send to the console.
  479. # One of 'garbage', 'trace', 'debug', 'info', 'warning', 'error', 'critical'.
  480. #
  481. # The following log levels are considered INSECURE and may log sensitive data:
  482. # ['garbage', 'trace', 'debug']
  483. #
  484. # Default: 'warning'
  485. #log_level: warning
  486. # The level of messages to send to the log file.
  487. # One of 'garbage', 'trace', 'debug', info', 'warning', 'error', 'critical'.
  488. # If using 'log_granular_levels' this must be set to the highest desired level.
  489. # Default: 'warning'
  490. #log_level_logfile:
  491. # The date and time format used in log messages. Allowed date/time formatting
  492. # can be seen here: http://docs.python.org/library/time.html#time.strftime
  493. #log_datefmt: '%H:%M:%S'
  494. #log_datefmt_logfile: '%Y-%m-%d %H:%M:%S'
  495. # The format of the console logging messages. Allowed formatting options can
  496. # be seen here: http://docs.python.org/library/logging.html#logrecord-attributes
  497. #
  498. # Console log colors are specified by these additional formatters:
  499. #
  500. # %(colorlevel)s
  501. # %(colorname)s
  502. # %(colorprocess)s
  503. # %(colormsg)s
  504. #
  505. # Since it is desirable to include the surrounding brackets, '[' and ']', in
  506. # the coloring of the messages, these color formatters also include padding as
  507. # well. Color LogRecord attributes are only available for console logging.
  508. #
  509. #log_fmt_console: '%(colorlevel)s %(colormsg)s'
  510. #log_fmt_console: '[%(levelname)-8s] %(message)s'
  511. #
  512. #log_fmt_logfile: '%(asctime)s,%(msecs)03d [%(name)-17s][%(levelname)-8s] %(message)s'
  513. # This can be used to control logging levels more specificically. This
  514. # example sets the main salt library at the 'warning' level, but sets
  515. # 'salt.modules' to log at the 'debug' level:
  516. # log_granular_levels:
  517. # 'salt': 'warning'
  518. # 'salt.modules': 'debug'
  519. #
  520. #log_granular_levels: {}
  521. # To diagnose issues with minions disconnecting or missing returns, ZeroMQ
  522. # supports the use of monitor sockets # to log connection events. This
  523. # feature requires ZeroMQ 4.0 or higher.
  524. #
  525. # To enable ZeroMQ monitor sockets, set 'zmq_monitor' to 'True' and log at a
  526. # debug level or higher.
  527. #
  528. # A sample log event is as follows:
  529. #
  530. # [DEBUG ] ZeroMQ event: {'endpoint': 'tcp://127.0.0.1:4505', 'event': 512,
  531. # 'value': 27, 'description': 'EVENT_DISCONNECTED'}
  532. #
  533. # All events logged will include the string 'ZeroMQ event'. A connection event
  534. # should be logged on the as the minion starts up and initially connects to the
  535. # master. If not, check for debug log level and that the necessary version of
  536. # ZeroMQ is installed.
  537. #
  538. #zmq_monitor: False
  539. ###### Module configuration #####
  540. ###########################################
  541. # Salt allows for modules to be passed arbitrary configuration data, any data
  542. # passed here in valid yaml format will be passed on to the salt minion modules
  543. # for use. It is STRONGLY recommended that a naming convention be used in which
  544. # the module name is followed by a . and then the value. Also, all top level
  545. # data must be applied via the yaml dict construct, some examples:
  546. #
  547. # You can specify that all modules should run in test mode:
  548. #test: True
  549. #
  550. # A simple value for the test module:
  551. #test.foo: foo
  552. #
  553. # A list for the test module:
  554. #test.bar: [baz,quo]
  555. #
  556. # A dict for the test module:
  557. #test.baz: {spam: sausage, cheese: bread}
  558. #
  559. #
  560. ###### Update settings ######
  561. ###########################################
  562. # Using the features in Esky, a salt minion can both run as a frozen app and
  563. # be updated on the fly. These options control how the update process
  564. # (saltutil.update()) behaves.
  565. #
  566. # The url for finding and downloading updates. Disabled by default.
  567. #update_url: False
  568. #
  569. # The list of services to restart after a successful update. Empty by default.
  570. #update_restart_services: []
  571. ###### Keepalive settings ######
  572. ############################################
  573. # ZeroMQ now includes support for configuring SO_KEEPALIVE if supported by
  574. # the OS. If connections between the minion and the master pass through
  575. # a state tracking device such as a firewall or VPN gateway, there is
  576. # the risk that it could tear down the connection the master and minion
  577. # without informing either party that their connection has been taken away.
  578. # Enabling TCP Keepalives prevents this from happening.
  579. # Overall state of TCP Keepalives, enable (1 or True), disable (0 or False)
  580. # or leave to the OS defaults (-1), on Linux, typically disabled. Default True, enabled.
  581. #tcp_keepalive: True
  582. # How long before the first keepalive should be sent in seconds. Default 300
  583. # to send the first keepalive after 5 minutes, OS default (-1) is typically 7200 seconds
  584. # on Linux see /proc/sys/net/ipv4/tcp_keepalive_time.
  585. #tcp_keepalive_idle: 300
  586. # How many lost probes are needed to consider the connection lost. Default -1
  587. # to use OS defaults, typically 9 on Linux, see /proc/sys/net/ipv4/tcp_keepalive_probes.
  588. #tcp_keepalive_cnt: -1
  589. # How often, in seconds, to send keepalives after the first one. Default -1 to
  590. # use OS defaults, typically 75 seconds on Linux, see
  591. # /proc/sys/net/ipv4/tcp_keepalive_intvl.
  592. #tcp_keepalive_intvl: -1
  593. ###### Windows Software settings ######
  594. ############################################
  595. # Location of the repository cache file on the master:
  596. #win_repo_cachefile: 'salt://win/repo/winrepo.p'
  597. ###### Returner settings ######
  598. ############################################
  599. # Which returner(s) will be used for minion's result:
  600. #return: mysql