minion 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888
  1. ##### Primary configuration settings #####
  2. ##########################################
  3. # This configuration file is used to manage the behavior of the Salt Minion.
  4. # With the exception of the location of the Salt Master Server, values that are
  5. # commented out but have an empty line after the comment are defaults that need
  6. # not be set in the config. If there is no blank line after the comment, the
  7. # value is presented as an example and is not the default.
  8. # Per default the minion will automatically include all config files
  9. # from minion.d/*.conf (minion.d is a directory in the same directory
  10. # as the main minion config file).
  11. #default_include: minion.d/*.conf
  12. # Set the location of the salt master server. If the master server cannot be
  13. # resolved, then the minion will fail to start.
  14. #master: salt
  15. # Set http proxy information for the minion when doing requests
  16. #proxy_host:
  17. #proxy_port:
  18. #proxy_username:
  19. #proxy_password:
  20. # If multiple masters are specified in the 'master' setting, the default behavior
  21. # is to always try to connect to them in the order they are listed. If random_master is
  22. # set to True, the order will be randomized instead. This can be helpful in distributing
  23. # the load of many minions executing salt-call requests, for example, from a cron job.
  24. # If only one master is listed, this setting is ignored and a warning will be logged.
  25. # NOTE: If master_type is set to failover, use master_shuffle instead.
  26. #random_master: False
  27. # Use if master_type is set to failover.
  28. #master_shuffle: False
  29. # Minions can connect to multiple masters simultaneously (all masters
  30. # are "hot"), or can be configured to failover if a master becomes
  31. # unavailable. Multiple hot masters are configured by setting this
  32. # value to "str". Failover masters can be requested by setting
  33. # to "failover". MAKE SURE TO SET master_alive_interval if you are
  34. # using failover.
  35. # Setting master_type to 'disable' let's you have a running minion (with engines and
  36. # beacons) without a master connection
  37. # master_type: str
  38. # Poll interval in seconds for checking if the master is still there. Only
  39. # respected if master_type above is "failover". To disable the interval entirely,
  40. # set the value to -1. (This may be necessary on machines which have high numbers
  41. # of TCP connections, such as load balancers.)
  42. # master_alive_interval: 30
  43. # If the minion is in multi-master mode and the master_type configuration option
  44. # is set to "failover", this setting can be set to "True" to force the minion
  45. # to fail back to the first master in the list if the first master is back online.
  46. #master_failback: False
  47. # If the minion is in multi-master mode, the "master_type" configuration is set to
  48. # "failover", and the "master_failback" option is enabled, the master failback
  49. # interval can be set to ping the top master with this interval, in seconds.
  50. #master_failback_interval: 0
  51. # Set whether the minion should connect to the master via IPv6:
  52. #ipv6: False
  53. # Set the number of seconds to wait before attempting to resolve
  54. # the master hostname if name resolution fails. Defaults to 30 seconds.
  55. # Set to zero if the minion should shutdown and not retry.
  56. # retry_dns: 30
  57. # Set the number of times to attempt to resolve
  58. # the master hostname if name resolution fails. Defaults to None,
  59. # which will attempt the resolution indefinitely.
  60. # retry_dns_count: 3
  61. # Set the port used by the master reply and authentication server.
  62. #master_port: 4506
  63. # The user to run salt.
  64. #user: root
  65. # The user to run salt remote execution commands as via sudo. If this option is
  66. # enabled then sudo will be used to change the active user executing the remote
  67. # command. If enabled the user will need to be allowed access via the sudoers
  68. # file for the user that the salt minion is configured to run as. The most
  69. # common option would be to use the root user. If this option is set the user
  70. # option should also be set to a non-root user. If migrating from a root minion
  71. # to a non root minion the minion cache should be cleared and the minion pki
  72. # directory will need to be changed to the ownership of the new user.
  73. #sudo_user: root
  74. # Specify the location of the daemon process ID file.
  75. #pidfile: /var/run/salt-minion.pid
  76. # The root directory prepended to these options: pki_dir, cachedir, log_file,
  77. # sock_dir, pidfile.
  78. #root_dir: /
  79. # The path to the minion's configuration file.
  80. #conf_file: /etc/salt/minion
  81. # The directory to store the pki information in
  82. #pki_dir: /etc/salt/pki/minion
  83. # Explicitly declare the id for this minion to use, if left commented the id
  84. # will be the hostname as returned by the python call: socket.getfqdn()
  85. # Since salt uses detached ids it is possible to run multiple minions on the
  86. # same machine but with different ids, this can be useful for salt compute
  87. # clusters.
  88. #id:
  89. # Cache the minion id to a file when the minion's id is not statically defined
  90. # in the minion config. Defaults to "True". This setting prevents potential
  91. # problems when automatic minion id resolution changes, which can cause the
  92. # minion to lose connection with the master. To turn off minion id caching,
  93. # set this config to ``False``.
  94. #minion_id_caching: True
  95. # Append a domain to a hostname in the event that it does not exist. This is
  96. # useful for systems where socket.getfqdn() does not actually result in a
  97. # FQDN (for instance, Solaris).
  98. #append_domain:
  99. # Custom static grains for this minion can be specified here and used in SLS
  100. # files just like all other grains. This example sets 4 custom grains, with
  101. # the 'roles' grain having two values that can be matched against.
  102. #grains:
  103. # roles:
  104. # - webserver
  105. # - memcache
  106. # deployment: datacenter4
  107. # cabinet: 13
  108. # cab_u: 14-15
  109. #
  110. # Where cache data goes.
  111. # This data may contain sensitive data and should be protected accordingly.
  112. #cachedir: /var/cache/salt/minion
  113. # Append minion_id to these directories. Helps with
  114. # multiple proxies and minions running on the same machine.
  115. # Allowed elements in the list: pki_dir, cachedir, extension_modules
  116. # Normally not needed unless running several proxies and/or minions on the same machine
  117. # Defaults to ['cachedir'] for proxies, [] (empty list) for regular minions
  118. #append_minionid_config_dirs:
  119. # Verify and set permissions on configuration directories at startup.
  120. #verify_env: True
  121. # The minion can locally cache the return data from jobs sent to it, this
  122. # can be a good way to keep track of jobs the minion has executed
  123. # (on the minion side). By default this feature is disabled, to enable, set
  124. # cache_jobs to True.
  125. #cache_jobs: False
  126. # Set the directory used to hold unix sockets.
  127. #sock_dir: /var/run/salt/minion
  128. # The minion can take a while to start up when lspci and/or dmidecode is used
  129. # to populate the grains for the minion. Set this to False if you do not need
  130. # GPU hardware grains for your minion.
  131. # enable_gpu_grains: True
  132. # Set the default outputter used by the salt-call command. The default is
  133. # "nested".
  134. #output: nested
  135. # To set a list of additional directories to search for salt outputters, set the
  136. # outputter_dirs option.
  137. #outputter_dirs: []
  138. # By default output is colored. To disable colored output, set the color value
  139. # to False.
  140. #color: True
  141. # Do not strip off the colored output from nested results and state outputs
  142. # (true by default).
  143. # strip_colors: False
  144. # Backup files that are replaced by file.managed and file.recurse under
  145. # 'cachedir'/file_backup relative to their original location and appended
  146. # with a timestamp. The only valid setting is "minion". Disabled by default.
  147. #
  148. # Alternatively this can be specified for each file in state files:
  149. # /etc/ssh/sshd_config:
  150. # file.managed:
  151. # - source: salt://ssh/sshd_config
  152. # - backup: minion
  153. #
  154. #backup_mode: minion
  155. # When waiting for a master to accept the minion's public key, salt will
  156. # continuously attempt to reconnect until successful. This is the time, in
  157. # seconds, between those reconnection attempts.
  158. #acceptance_wait_time: 10
  159. # If this is nonzero, the time between reconnection attempts will increase by
  160. # acceptance_wait_time seconds per iteration, up to this maximum. If this is
  161. # set to zero, the time between reconnection attempts will stay constant.
  162. #acceptance_wait_time_max: 0
  163. # If the master rejects the minion's public key, retry instead of exiting.
  164. # Rejected keys will be handled the same as waiting on acceptance.
  165. #rejected_retry: False
  166. # When the master key changes, the minion will try to re-auth itself to receive
  167. # the new master key. In larger environments this can cause a SYN flood on the
  168. # master because all minions try to re-auth immediately. To prevent this and
  169. # have a minion wait for a random amount of time, use this optional parameter.
  170. # The wait-time will be a random number of seconds between 0 and the defined value.
  171. #random_reauth_delay: 60
  172. # To avoid overloading a master when many minions startup at once, a randomized
  173. # delay may be set to tell the minions to wait before connecting to the master.
  174. # This value is the number of seconds to choose from for a random number. For
  175. # example, setting this value to 60 will choose a random number of seconds to delay
  176. # on startup between zero seconds and sixty seconds. Setting to '0' will disable
  177. # this feature.
  178. #random_startup_delay: 0
  179. # When waiting for a master to accept the minion's public key, salt will
  180. # continuously attempt to reconnect until successful. This is the timeout value,
  181. # in seconds, for each individual attempt. After this timeout expires, the minion
  182. # will wait for acceptance_wait_time seconds before trying again. Unless your master
  183. # is under unusually heavy load, this should be left at the default.
  184. #auth_timeout: 60
  185. # Number of consecutive SaltReqTimeoutError that are acceptable when trying to
  186. # authenticate.
  187. #auth_tries: 7
  188. # The number of attempts to connect to a master before giving up.
  189. # Set this to -1 for unlimited attempts. This allows for a master to have
  190. # downtime and the minion to reconnect to it later when it comes back up.
  191. # In 'failover' mode, it is the number of attempts for each set of masters.
  192. # In this mode, it will cycle through the list of masters for each attempt.
  193. #
  194. # This is different than auth_tries because auth_tries attempts to
  195. # retry auth attempts with a single master. auth_tries is under the
  196. # assumption that you can connect to the master but not gain
  197. # authorization from it. master_tries will still cycle through all
  198. # the masters in a given try, so it is appropriate if you expect
  199. # occasional downtime from the master(s).
  200. #master_tries: 1
  201. # If authentication fails due to SaltReqTimeoutError during a ping_interval,
  202. # cause sub minion process to restart.
  203. #auth_safemode: False
  204. # Ping Master to ensure connection is alive (minutes).
  205. #ping_interval: 0
  206. # To auto recover minions if master changes IP address (DDNS)
  207. # auth_tries: 10
  208. # auth_safemode: False
  209. # ping_interval: 2
  210. #
  211. # Minions won't know master is missing until a ping fails. After the ping fail,
  212. # the minion will attempt authentication and likely fails out and cause a restart.
  213. # When the minion restarts it will resolve the masters IP and attempt to reconnect.
  214. # If you don't have any problems with syn-floods, don't bother with the
  215. # three recon_* settings described below, just leave the defaults!
  216. #
  217. # The ZeroMQ pull-socket that binds to the masters publishing interface tries
  218. # to reconnect immediately, if the socket is disconnected (for example if
  219. # the master processes are restarted). In large setups this will have all
  220. # minions reconnect immediately which might flood the master (the ZeroMQ-default
  221. # is usually a 100ms delay). To prevent this, these three recon_* settings
  222. # can be used.
  223. # recon_default: the interval in milliseconds that the socket should wait before
  224. # trying to reconnect to the master (1000ms = 1 second)
  225. #
  226. # recon_max: the maximum time a socket should wait. each interval the time to wait
  227. # is calculated by doubling the previous time. if recon_max is reached,
  228. # it starts again at recon_default. Short example:
  229. #
  230. # reconnect 1: the socket will wait 'recon_default' milliseconds
  231. # reconnect 2: 'recon_default' * 2
  232. # reconnect 3: ('recon_default' * 2) * 2
  233. # reconnect 4: value from previous interval * 2
  234. # reconnect 5: value from previous interval * 2
  235. # reconnect x: if value >= recon_max, it starts again with recon_default
  236. #
  237. # recon_randomize: generate a random wait time on minion start. The wait time will
  238. # be a random value between recon_default and recon_default +
  239. # recon_max. Having all minions reconnect with the same recon_default
  240. # and recon_max value kind of defeats the purpose of being able to
  241. # change these settings. If all minions have the same values and your
  242. # setup is quite large (several thousand minions), they will still
  243. # flood the master. The desired behavior is to have timeframe within
  244. # all minions try to reconnect.
  245. #
  246. # Example on how to use these settings. The goal: have all minions reconnect within a
  247. # 60 second timeframe on a disconnect.
  248. # recon_default: 1000
  249. # recon_max: 59000
  250. # recon_randomize: True
  251. #
  252. # Each minion will have a randomized reconnect value between 'recon_default'
  253. # and 'recon_default + recon_max', which in this example means between 1000ms
  254. # 60000ms (or between 1 and 60 seconds). The generated random-value will be
  255. # doubled after each attempt to reconnect. Lets say the generated random
  256. # value is 11 seconds (or 11000ms).
  257. # reconnect 1: wait 11 seconds
  258. # reconnect 2: wait 22 seconds
  259. # reconnect 3: wait 33 seconds
  260. # reconnect 4: wait 44 seconds
  261. # reconnect 5: wait 55 seconds
  262. # reconnect 6: wait time is bigger than 60 seconds (recon_default + recon_max)
  263. # reconnect 7: wait 11 seconds
  264. # reconnect 8: wait 22 seconds
  265. # reconnect 9: wait 33 seconds
  266. # reconnect x: etc.
  267. #
  268. # In a setup with ~6000 thousand hosts these settings would average the reconnects
  269. # to about 100 per second and all hosts would be reconnected within 60 seconds.
  270. # recon_default: 100
  271. # recon_max: 5000
  272. # recon_randomize: False
  273. #
  274. #
  275. # The loop_interval sets how long in seconds the minion will wait between
  276. # evaluating the scheduler and running cleanup tasks. This defaults to 1
  277. # second on the minion scheduler.
  278. #loop_interval: 1
  279. # Some installations choose to start all job returns in a cache or a returner
  280. # and forgo sending the results back to a master. In this workflow, jobs
  281. # are most often executed with --async from the Salt CLI and then results
  282. # are evaluated by examining job caches on the minions or any configured returners.
  283. # WARNING: Setting this to False will **disable** returns back to the master.
  284. #pub_ret: True
  285. # The grains can be merged, instead of overridden, using this option.
  286. # This allows custom grains to defined different subvalues of a dictionary
  287. # grain. By default this feature is disabled, to enable set grains_deep_merge
  288. # to ``True``.
  289. #grains_deep_merge: False
  290. # The grains_refresh_every setting allows for a minion to periodically check
  291. # its grains to see if they have changed and, if so, to inform the master
  292. # of the new grains. This operation is moderately expensive, therefore
  293. # care should be taken not to set this value too low.
  294. #
  295. # Note: This value is expressed in __minutes__!
  296. #
  297. # A value of 10 minutes is a reasonable default.
  298. #
  299. # If the value is set to zero, this check is disabled.
  300. #grains_refresh_every: 1
  301. # Cache grains on the minion. Default is False.
  302. #grains_cache: False
  303. # Cache rendered pillar data on the minion. Default is False.
  304. # This may cause 'cachedir'/pillar to contain sensitive data that should be
  305. # protected accordingly.
  306. #minion_pillar_cache: False
  307. # Grains cache expiration, in seconds. If the cache file is older than this
  308. # number of seconds then the grains cache will be dumped and fully re-populated
  309. # with fresh data. Defaults to 5 minutes. Will have no effect if 'grains_cache'
  310. # is not enabled.
  311. # grains_cache_expiration: 300
  312. # Determines whether or not the salt minion should run scheduled mine updates.
  313. # Defaults to "True". Set to "False" to disable the scheduled mine updates
  314. # (this essentially just does not add the mine update function to the minion's
  315. # scheduler).
  316. #mine_enabled: True
  317. # Determines whether or not scheduled mine updates should be accompanied by a job
  318. # return for the job cache. Defaults to "False". Set to "True" to include job
  319. # returns in the job cache for mine updates.
  320. #mine_return_job: False
  321. # Example functions that can be run via the mine facility
  322. # NO mine functions are established by default.
  323. # Note these can be defined in the minion's pillar as well.
  324. #mine_functions:
  325. # test.ping: []
  326. # network.ip_addrs:
  327. # interface: eth0
  328. # cidr: '10.0.0.0/8'
  329. # The number of minutes between mine updates.
  330. #mine_interval: 60
  331. # Windows platforms lack posix IPC and must rely on slower TCP based inter-
  332. # process communications. Set ipc_mode to 'tcp' on such systems
  333. #ipc_mode: ipc
  334. # Overwrite the default tcp ports used by the minion when in tcp mode
  335. #tcp_pub_port: 4510
  336. #tcp_pull_port: 4511
  337. # Passing very large events can cause the minion to consume large amounts of
  338. # memory. This value tunes the maximum size of a message allowed onto the
  339. # minion event bus. The value is expressed in bytes.
  340. #max_event_size: 1048576
  341. # To detect failed master(s) and fire events on connect/disconnect, set
  342. # master_alive_interval to the number of seconds to poll the masters for
  343. # connection events.
  344. #
  345. #master_alive_interval: 30
  346. # The minion can include configuration from other files. To enable this,
  347. # pass a list of paths to this option. The paths can be either relative or
  348. # absolute; if relative, they are considered to be relative to the directory
  349. # the main minion configuration file lives in (this file). Paths can make use
  350. # of shell-style globbing. If no files are matched by a path passed to this
  351. # option then the minion will log a warning message.
  352. #
  353. # Include a config file from some other path:
  354. # include: /etc/salt/extra_config
  355. #
  356. # Include config from several files and directories:
  357. #include:
  358. # - /etc/salt/extra_config
  359. # - /etc/roles/webserver
  360. # The syndic minion can verify that it is talking to the correct master via the
  361. # key fingerprint of the higher-level master with the "syndic_finger" config.
  362. #syndic_finger: ''
  363. #
  364. #
  365. #
  366. ##### Minion module management #####
  367. ##########################################
  368. # Disable specific modules. This allows the admin to limit the level of
  369. # access the master has to the minion. The default here is the empty list,
  370. # below is an example of how this needs to be formatted in the config file
  371. #disable_modules:
  372. # - cmdmod
  373. # - test
  374. #disable_returners: []
  375. # This is the reverse of disable_modules. The default, like disable_modules, is the empty list,
  376. # but if this option is set to *anything* then *only* those modules will load.
  377. # Note that this is a very large hammer and it can be quite difficult to keep the minion working
  378. # the way you think it should since Salt uses many modules internally itself. At a bare minimum
  379. # you need the following enabled or else the minion won't start.
  380. #whitelist_modules:
  381. # - cmdmod
  382. # - test
  383. # - config
  384. # Modules can be loaded from arbitrary paths. This enables the easy deployment
  385. # of third party modules. Modules for returners and minions can be loaded.
  386. # Specify a list of extra directories to search for minion modules and
  387. # returners. These paths must be fully qualified!
  388. #module_dirs: []
  389. #returner_dirs: []
  390. #states_dirs: []
  391. #render_dirs: []
  392. #utils_dirs: []
  393. #
  394. # A module provider can be statically overwritten or extended for the minion
  395. # via the providers option, in this case the default module will be
  396. # overwritten by the specified module. In this example the pkg module will
  397. # be provided by the yumpkg5 module instead of the system default.
  398. #providers:
  399. # pkg: yumpkg5
  400. #
  401. # Enable Cython modules searching and loading. (Default: False)
  402. #cython_enable: False
  403. #
  404. # Specify a max size (in bytes) for modules on import. This feature is currently
  405. # only supported on *nix operating systems and requires psutil.
  406. # modules_max_memory: -1
  407. ##### State Management Settings #####
  408. ###########################################
  409. # The state management system executes all of the state templates on the minion
  410. # to enable more granular control of system state management. The type of
  411. # template and serialization used for state management needs to be configured
  412. # on the minion, the default renderer is yaml_jinja. This is a yaml file
  413. # rendered from a jinja template, the available options are:
  414. # yaml_jinja
  415. # yaml_mako
  416. # yaml_wempy
  417. # json_jinja
  418. # json_mako
  419. # json_wempy
  420. #
  421. #renderer: yaml_jinja
  422. #
  423. # The failhard option tells the minions to stop immediately after the first
  424. # failure detected in the state execution. Defaults to False.
  425. #failhard: False
  426. #
  427. # Reload the modules prior to a highstate run.
  428. #autoload_dynamic_modules: True
  429. #
  430. # clean_dynamic_modules keeps the dynamic modules on the minion in sync with
  431. # the dynamic modules on the master, this means that if a dynamic module is
  432. # not on the master it will be deleted from the minion. By default, this is
  433. # enabled and can be disabled by changing this value to False.
  434. #clean_dynamic_modules: True
  435. #
  436. # Normally, the minion is not isolated to any single environment on the master
  437. # when running states, but the environment can be isolated on the minion side
  438. # by statically setting it. Remember that the recommended way to manage
  439. # environments is to isolate via the top file.
  440. #environment: None
  441. #
  442. # Isolates the pillar environment on the minion side. This functions the same
  443. # as the environment setting, but for pillar instead of states.
  444. #pillarenv: None
  445. #
  446. # Set this option to True to force the pillarenv to be the same as the
  447. # effective saltenv when running states. Note that if pillarenv is specified,
  448. # this option will be ignored.
  449. #pillarenv_from_saltenv: False
  450. #
  451. # Set this option to 'True' to force a 'KeyError' to be raised whenever an
  452. # attempt to retrieve a named value from pillar fails. When this option is set
  453. # to 'False', the failed attempt returns an empty string. Default is 'False'.
  454. #pillar_raise_on_missing: False
  455. #
  456. # If using the local file directory, then the state top file name needs to be
  457. # defined, by default this is top.sls.
  458. #state_top: top.sls
  459. #
  460. # Run states when the minion daemon starts. To enable, set startup_states to:
  461. # 'highstate' -- Execute state.highstate
  462. # 'sls' -- Read in the sls_list option and execute the named sls files
  463. # 'top' -- Read top_file option and execute based on that file on the Master
  464. #startup_states: ''
  465. #
  466. # List of states to run when the minion starts up if startup_states is 'sls':
  467. #sls_list:
  468. # - edit.vim
  469. # - hyper
  470. #
  471. # Top file to execute if startup_states is 'top':
  472. #top_file: ''
  473. # Automatically aggregate all states that have support for mod_aggregate by
  474. # setting to True. Or pass a list of state module names to automatically
  475. # aggregate just those types.
  476. #
  477. # state_aggregate:
  478. # - pkg
  479. #
  480. #state_aggregate: False
  481. ##### File Directory Settings #####
  482. ##########################################
  483. # The Salt Minion can redirect all file server operations to a local directory,
  484. # this allows for the same state tree that is on the master to be used if
  485. # copied completely onto the minion. This is a literal copy of the settings on
  486. # the master but used to reference a local directory on the minion.
  487. # Set the file client. The client defaults to looking on the master server for
  488. # files, but can be directed to look at the local file directory setting
  489. # defined below by setting it to "local". Setting a local file_client runs the
  490. # minion in masterless mode.
  491. #file_client: remote
  492. # The file directory works on environments passed to the minion, each environment
  493. # can have multiple root directories, the subdirectories in the multiple file
  494. # roots cannot match, otherwise the downloaded files will not be able to be
  495. # reliably ensured. A base environment is required to house the top file.
  496. # Example:
  497. # file_roots:
  498. # base:
  499. # - /srv/salt/
  500. # dev:
  501. # - /srv/salt/dev/services
  502. # - /srv/salt/dev/states
  503. # prod:
  504. # - /srv/salt/prod/services
  505. # - /srv/salt/prod/states
  506. #
  507. #file_roots:
  508. # base:
  509. # - /srv/salt
  510. # Uncomment the line below if you do not want the file_server to follow
  511. # symlinks when walking the filesystem tree. This is set to True
  512. # by default. Currently this only applies to the default roots
  513. # fileserver_backend.
  514. #fileserver_followsymlinks: False
  515. #
  516. # Uncomment the line below if you do not want symlinks to be
  517. # treated as the files they are pointing to. By default this is set to
  518. # False. By uncommenting the line below, any detected symlink while listing
  519. # files on the Master will not be returned to the Minion.
  520. #fileserver_ignoresymlinks: True
  521. #
  522. # By default, the Salt fileserver recurses fully into all defined environments
  523. # to attempt to find files. To limit this behavior so that the fileserver only
  524. # traverses directories with SLS files and special Salt directories like _modules,
  525. # enable the option below. This might be useful for installations where a file root
  526. # has a very large number of files and performance is negatively impacted. Default
  527. # is False.
  528. #fileserver_limit_traversal: False
  529. # The hash_type is the hash to use when discovering the hash of a file on
  530. # the local fileserver. The default is sha256, but md5, sha1, sha224, sha384
  531. # and sha512 are also supported.
  532. #
  533. # WARNING: While md5 and sha1 are also supported, do not use them due to the
  534. # high chance of possible collisions and thus security breach.
  535. #
  536. # Warning: Prior to changing this value, the minion should be stopped and all
  537. # Salt caches should be cleared.
  538. #hash_type: sha256
  539. # The Salt pillar is searched for locally if file_client is set to local. If
  540. # this is the case, and pillar data is defined, then the pillar_roots need to
  541. # also be configured on the minion:
  542. #pillar_roots:
  543. # base:
  544. # - /srv/pillar
  545. # Set a hard-limit on the size of the files that can be pushed to the master.
  546. # It will be interpreted as megabytes. Default: 100
  547. #file_recv_max_size: 100
  548. #
  549. #
  550. ###### Security settings #####
  551. ###########################################
  552. # Enable "open mode", this mode still maintains encryption, but turns off
  553. # authentication, this is only intended for highly secure environments or for
  554. # the situation where your keys end up in a bad state. If you run in open mode
  555. # you do so at your own risk!
  556. #open_mode: False
  557. # The size of key that should be generated when creating new keys.
  558. #keysize: 2048
  559. # Enable permissive access to the salt keys. This allows you to run the
  560. # master or minion as root, but have a non-root group be given access to
  561. # your pki_dir. To make the access explicit, root must belong to the group
  562. # you've given access to. This is potentially quite insecure.
  563. #permissive_pki_access: False
  564. # The state_verbose and state_output settings can be used to change the way
  565. # state system data is printed to the display. By default all data is printed.
  566. # The state_verbose setting can be set to True or False, when set to False
  567. # all data that has a result of True and no changes will be suppressed.
  568. #state_verbose: True
  569. # The state_output setting controls which results will be output full multi line
  570. # full, terse - each state will be full/terse
  571. # mixed - only states with errors will be full
  572. # changes - states with changes and errors will be full
  573. # full_id, mixed_id, changes_id and terse_id are also allowed;
  574. # when set, the state ID will be used as name in the output
  575. #state_output: full
  576. # The state_output_diff setting changes whether or not the output from
  577. # successful states is returned. Useful when even the terse output of these
  578. # states is cluttering the logs. Set it to True to ignore them.
  579. #state_output_diff: False
  580. # The state_output_profile setting changes whether profile information
  581. # will be shown for each state run.
  582. #state_output_profile: True
  583. # Fingerprint of the master public key to validate the identity of your Salt master
  584. # before the initial key exchange. The master fingerprint can be found by running
  585. # "salt-key -f master.pub" on the Salt master.
  586. #master_finger: ''
  587. # Use TLS/SSL encrypted connection between master and minion.
  588. # Can be set to a dictionary containing keyword arguments corresponding to Python's
  589. # 'ssl.wrap_socket' method.
  590. # Default is None.
  591. #ssl:
  592. # keyfile: <path_to_keyfile>
  593. # certfile: <path_to_certfile>
  594. # ssl_version: PROTOCOL_TLSv1_2
  595. # Grains to be sent to the master on authentication to check if the minion's key
  596. # will be accepted automatically. Needs to be configured on the master.
  597. #autosign_grains:
  598. # - uuid
  599. # - server_id
  600. ###### Reactor Settings #####
  601. ###########################################
  602. # Define a salt reactor. See https://docs.saltstack.com/en/latest/topics/reactor/
  603. #reactor: []
  604. #Set the TTL for the cache of the reactor configuration.
  605. #reactor_refresh_interval: 60
  606. #Configure the number of workers for the runner/wheel in the reactor.
  607. #reactor_worker_threads: 10
  608. #Define the queue size for workers in the reactor.
  609. #reactor_worker_hwm: 10000
  610. ###### Thread settings #####
  611. ###########################################
  612. # Disable multiprocessing support, by default when a minion receives a
  613. # publication a new process is spawned and the command is executed therein.
  614. #
  615. # WARNING: Disabling multiprocessing may result in substantial slowdowns
  616. # when processing large pillars. See https://github.com/saltstack/salt/issues/38758
  617. # for a full explanation.
  618. #multiprocessing: True
  619. # Limit the maximum amount of processes or threads created by salt-minion.
  620. # This is useful to avoid resource exhaustion in case the minion receives more
  621. # publications than it is able to handle, as it limits the number of spawned
  622. # processes or threads. -1 is the default and disables the limit.
  623. #process_count_max: -1
  624. ##### Logging settings #####
  625. ##########################################
  626. # The location of the minion log file
  627. # The minion log can be sent to a regular file, local path name, or network
  628. # location. Remote logging works best when configured to use rsyslogd(8) (e.g.:
  629. # ``file:///dev/log``), with rsyslogd(8) configured for network logging. The URI
  630. # format is: <file|udp|tcp>://<host|socketpath>:<port-if-required>/<log-facility>
  631. #log_file: /var/log/salt/minion
  632. #log_file: file:///dev/log
  633. #log_file: udp://loghost:10514
  634. #
  635. #log_file: /var/log/salt/minion
  636. #key_logfile: /var/log/salt/key
  637. # The level of messages to send to the console.
  638. # One of 'garbage', 'trace', 'debug', info', 'warning', 'error', 'critical'.
  639. #
  640. # The following log levels are considered INSECURE and may log sensitive data:
  641. # ['garbage', 'trace', 'debug']
  642. #
  643. # Default: 'warning'
  644. #log_level: warning
  645. # The level of messages to send to the log file.
  646. # One of 'garbage', 'trace', 'debug', info', 'warning', 'error', 'critical'.
  647. # If using 'log_granular_levels' this must be set to the highest desired level.
  648. # Default: 'warning'
  649. #log_level_logfile:
  650. # The date and time format used in log messages. Allowed date/time formatting
  651. # can be seen here: http://docs.python.org/library/time.html#time.strftime
  652. #log_datefmt: '%H:%M:%S'
  653. #log_datefmt_logfile: '%Y-%m-%d %H:%M:%S'
  654. # The format of the console logging messages. Allowed formatting options can
  655. # be seen here: http://docs.python.org/library/logging.html#logrecord-attributes
  656. #
  657. # Console log colors are specified by these additional formatters:
  658. #
  659. # %(colorlevel)s
  660. # %(colorname)s
  661. # %(colorprocess)s
  662. # %(colormsg)s
  663. #
  664. # Since it is desirable to include the surrounding brackets, '[' and ']', in
  665. # the coloring of the messages, these color formatters also include padding as
  666. # well. Color LogRecord attributes are only available for console logging.
  667. #
  668. #log_fmt_console: '%(colorlevel)s %(colormsg)s'
  669. #log_fmt_console: '[%(levelname)-8s] %(message)s'
  670. #
  671. #log_fmt_logfile: '%(asctime)s,%(msecs)03d [%(name)-17s][%(levelname)-8s] %(message)s'
  672. # This can be used to control logging levels more specificically. This
  673. # example sets the main salt library at the 'warning' level, but sets
  674. # 'salt.modules' to log at the 'debug' level:
  675. # log_granular_levels:
  676. # 'salt': 'warning'
  677. # 'salt.modules': 'debug'
  678. #
  679. #log_granular_levels: {}
  680. # To diagnose issues with minions disconnecting or missing returns, ZeroMQ
  681. # supports the use of monitor sockets to log connection events. This
  682. # feature requires ZeroMQ 4.0 or higher.
  683. #
  684. # To enable ZeroMQ monitor sockets, set 'zmq_monitor' to 'True' and log at a
  685. # debug level or higher.
  686. #
  687. # A sample log event is as follows:
  688. #
  689. # [DEBUG ] ZeroMQ event: {'endpoint': 'tcp://127.0.0.1:4505', 'event': 512,
  690. # 'value': 27, 'description': 'EVENT_DISCONNECTED'}
  691. #
  692. # All events logged will include the string 'ZeroMQ event'. A connection event
  693. # should be logged as the minion starts up and initially connects to the
  694. # master. If not, check for debug log level and that the necessary version of
  695. # ZeroMQ is installed.
  696. #
  697. #zmq_monitor: False
  698. # Number of times to try to authenticate with the salt master when reconnecting
  699. # to the master
  700. #tcp_authentication_retries: 5
  701. ###### Module configuration #####
  702. ###########################################
  703. # Salt allows for modules to be passed arbitrary configuration data, any data
  704. # passed here in valid yaml format will be passed on to the salt minion modules
  705. # for use. It is STRONGLY recommended that a naming convention be used in which
  706. # the module name is followed by a . and then the value. Also, all top level
  707. # data must be applied via the yaml dict construct, some examples:
  708. #
  709. # You can specify that all modules should run in test mode:
  710. #test: True
  711. #
  712. # A simple value for the test module:
  713. #test.foo: foo
  714. #
  715. # A list for the test module:
  716. #test.bar: [baz,quo]
  717. #
  718. # A dict for the test module:
  719. #test.baz: {spam: sausage, cheese: bread}
  720. #
  721. #
  722. ###### Update settings ######
  723. ###########################################
  724. # Using the features in Esky, a salt minion can both run as a frozen app and
  725. # be updated on the fly. These options control how the update process
  726. # (saltutil.update()) behaves.
  727. #
  728. # The url for finding and downloading updates. Disabled by default.
  729. #update_url: False
  730. #
  731. # The list of services to restart after a successful update. Empty by default.
  732. #update_restart_services: []
  733. ###### Keepalive settings ######
  734. ############################################
  735. # ZeroMQ now includes support for configuring SO_KEEPALIVE if supported by
  736. # the OS. If connections between the minion and the master pass through
  737. # a state tracking device such as a firewall or VPN gateway, there is
  738. # the risk that it could tear down the connection the master and minion
  739. # without informing either party that their connection has been taken away.
  740. # Enabling TCP Keepalives prevents this from happening.
  741. # Overall state of TCP Keepalives, enable (1 or True), disable (0 or False)
  742. # or leave to the OS defaults (-1), on Linux, typically disabled. Default True, enabled.
  743. #tcp_keepalive: True
  744. # How long before the first keepalive should be sent in seconds. Default 300
  745. # to send the first keepalive after 5 minutes, OS default (-1) is typically 7200 seconds
  746. # on Linux see /proc/sys/net/ipv4/tcp_keepalive_time.
  747. #tcp_keepalive_idle: 300
  748. # How many lost probes are needed to consider the connection lost. Default -1
  749. # to use OS defaults, typically 9 on Linux, see /proc/sys/net/ipv4/tcp_keepalive_probes.
  750. #tcp_keepalive_cnt: -1
  751. # How often, in seconds, to send keepalives after the first one. Default -1 to
  752. # use OS defaults, typically 75 seconds on Linux, see
  753. # /proc/sys/net/ipv4/tcp_keepalive_intvl.
  754. #tcp_keepalive_intvl: -1
  755. ###### Windows Software settings ######
  756. ############################################
  757. # Location of the repository cache file on the master:
  758. #win_repo_cachefile: 'salt://win/repo/winrepo.p'
  759. ###### Returner settings ######
  760. ############################################
  761. # Default Minion returners. Can be a comma delimited string or a list:
  762. #
  763. #return: mysql
  764. #
  765. #return: mysql,slack,redis
  766. #
  767. #return:
  768. # - mysql
  769. # - hipchat
  770. # - slack
  771. ###### Miscellaneous settings ######
  772. ############################################
  773. # Default match type for filtering events tags: startswith, endswith, find, regex, fnmatch
  774. #event_match_type: startswith