minion 37 KB

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