You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

master 50KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315
  1. ##### Primary configuration settings #####
  2. ##########################################
  3. # This configuration file is used to manage the behavior of the Salt Master.
  4. # Values that are commented out but have an empty line after the comment are
  5. # defaults that do not need to be set in the config. If there is no blank line
  6. # after the comment then the value is presented as an example and is not the
  7. # default.
  8. # Per default, the master will automatically include all config files
  9. # from master.d/*.conf (master.d is a directory in the same directory
  10. # as the main master config file).
  11. #default_include: master.d/*.conf
  12. # The address of the interface to bind to:
  13. interface: 0.0.0.0
  14. # Whether the master should listen for IPv6 connections. If this is set to True,
  15. # the interface option must be adjusted, too. (For example: "interface: '::'")
  16. #ipv6: False
  17. # The tcp port used by the publisher:
  18. #publish_port: 4505
  19. # The user under which the salt master will run. Salt will update all
  20. # permissions to allow the specified user to run the master. The exception is
  21. # the job cache, which must be deleted if this user is changed. If the
  22. # modified files cause conflicts, set verify_env to False.
  23. #user: root
  24. # The port used by the communication interface. The ret (return) port is the
  25. # interface used for the file server, authentication, job returns, etc.
  26. #ret_port: 4506
  27. # Specify the location of the daemon process ID file:
  28. #pidfile: /var/run/salt-master.pid
  29. # The root directory prepended to these options: pki_dir, cachedir,
  30. # sock_dir, log_file, autosign_file, autoreject_file, extension_modules,
  31. # key_logfile, pidfile, autosign_grains_dir:
  32. #root_dir: /
  33. # The path to the master's configuration file.
  34. #conf_file: /etc/salt/master
  35. # Directory used to store public key data:
  36. #pki_dir: /etc/salt/pki/master
  37. # Key cache. Increases master speed for large numbers of accepted
  38. # keys. Available options: 'sched'. (Updates on a fixed schedule.)
  39. # Note that enabling this feature means that minions will not be
  40. # available to target for up to the length of the maintanence loop
  41. # which by default is 60s.
  42. #key_cache: ''
  43. # Directory to store job and cache data:
  44. # This directory may contain sensitive data and should be protected accordingly.
  45. #
  46. #cachedir: /var/cache/salt/master
  47. # Directory for custom modules. This directory can contain subdirectories for
  48. # each of Salt's module types such as "runners", "output", "wheel", "modules",
  49. # "states", "returners", "engines", "utils", etc.
  50. #extension_modules: /var/cache/salt/master/extmods
  51. extension_modules: /data/salt/extmods
  52. # Directory for custom modules. This directory can contain subdirectories for
  53. # each of Salt's module types such as "runners", "output", "wheel", "modules",
  54. # "states", "returners", "engines", "utils", etc.
  55. # Like 'extension_modules' but can take an array of paths
  56. #module_dirs: []
  57. # Verify and set permissions on configuration directories at startup:
  58. #verify_env: True
  59. # Set the number of hours to keep old job information in the job cache:
  60. #keep_jobs: 24
  61. # The number of seconds to wait when the client is requesting information
  62. # about running jobs.
  63. #gather_job_timeout: 10
  64. # Set the default timeout for the salt command and api. The default is 5
  65. # seconds.
  66. #timeout: 5
  67. # The loop_interval option controls the seconds for the master's maintenance
  68. # process check cycle. This process updates file server backends, cleans the
  69. # job cache and executes the scheduler.
  70. #loop_interval: 60
  71. # Set the default outputter used by the salt command. The default is "nested".
  72. #output: nested
  73. # To set a list of additional directories to search for salt outputters, set the
  74. # outputter_dirs option.
  75. #outputter_dirs: []
  76. # Set the default output file used by the salt command. Default is to output
  77. # to the CLI and not to a file. Functions the same way as the "--out-file"
  78. # CLI option, only sets this to a single file for all salt commands.
  79. #output_file: None
  80. # Return minions that timeout when running commands like test.ping
  81. #show_timeout: True
  82. # Tell the client to display the jid when a job is published.
  83. #show_jid: False
  84. # By default, output is colored. To disable colored output, set the color value
  85. # to False.
  86. #color: True
  87. # Do not strip off the colored output from nested results and state outputs
  88. # (true by default).
  89. # strip_colors: False
  90. # To display a summary of the number of minions targeted, the number of
  91. # minions returned, and the number of minions that did not return, set the
  92. # cli_summary value to True. (False by default.)
  93. #
  94. #cli_summary: False
  95. # Set the directory used to hold unix sockets:
  96. #sock_dir: /var/run/salt/master
  97. # The master can take a while to start up when lspci and/or dmidecode is used
  98. # to populate the grains for the master. Enable if you want to see GPU hardware
  99. # data for your master.
  100. # enable_gpu_grains: False
  101. # The master maintains a job cache. While this is a great addition, it can be
  102. # a burden on the master for larger deployments (over 5000 minions).
  103. # Disabling the job cache will make previously executed jobs unavailable to
  104. # the jobs system and is not generally recommended.
  105. #job_cache: True
  106. # Cache minion grains, pillar and mine data via the cache subsystem in the
  107. # cachedir or a database.
  108. #minion_data_cache: True
  109. # Cache subsystem module to use for minion data cache.
  110. #cache: localfs
  111. # Enables a fast in-memory cache booster and sets the expiration time.
  112. #memcache_expire_seconds: 0
  113. # Set a memcache limit in items (bank + key) per cache storage (driver + driver_opts).
  114. #memcache_max_items: 1024
  115. # Each time a cache storage got full cleanup all the expired items not just the oldest one.
  116. #memcache_full_cleanup: False
  117. # Enable collecting the memcache stats and log it on `debug` log level.
  118. #memcache_debug: False
  119. # Store all returns in the given returner.
  120. # Setting this option requires that any returner-specific configuration also
  121. # be set. See various returners in salt/returners for details on required
  122. # configuration values. (See also, event_return_queue below.)
  123. #
  124. #event_return: mysql
  125. # On busy systems, enabling event_returns can cause a considerable load on
  126. # the storage system for returners. Events can be queued on the master and
  127. # stored in a batched fashion using a single transaction for multiple events.
  128. # By default, events are not queued.
  129. #event_return_queue: 0
  130. # Only return events matching tags in a whitelist, supports glob matches.
  131. #event_return_whitelist:
  132. # - salt/master/a_tag
  133. # - salt/run/*/ret
  134. # Store all event returns **except** the tags in a blacklist, supports globs.
  135. #event_return_blacklist:
  136. # - salt/master/not_this_tag
  137. # - salt/wheel/*/ret
  138. # Passing very large events can cause the minion to consume large amounts of
  139. # memory. This value tunes the maximum size of a message allowed onto the
  140. # master event bus. The value is expressed in bytes.
  141. #max_event_size: 1048576
  142. # By default, the master AES key rotates every 24 hours. The next command
  143. # following a key rotation will trigger a key refresh from the minion which may
  144. # result in minions which do not respond to the first command after a key refresh.
  145. #
  146. # To tell the master to ping all minions immediately after an AES key refresh, set
  147. # ping_on_rotate to True. This should mitigate the issue where a minion does not
  148. # appear to initially respond after a key is rotated.
  149. #
  150. # Note that ping_on_rotate may cause high load on the master immediately after
  151. # the key rotation event as minions reconnect. Consider this carefully if this
  152. # salt master is managing a large number of minions.
  153. #
  154. # If disabled, it is recommended to handle this event by listening for the
  155. # 'aes_key_rotate' event with the 'key' tag and acting appropriately.
  156. # ping_on_rotate: False
  157. # By default, the master deletes its cache of minion data when the key for that
  158. # minion is removed. To preserve the cache after key deletion, set
  159. # 'preserve_minion_cache' to True.
  160. #
  161. # WARNING: This may have security implications if compromised minions auth with
  162. # a previous deleted minion ID.
  163. #preserve_minion_cache: False
  164. # Allow or deny minions from requesting their own key revocation
  165. #allow_minion_key_revoke: True
  166. # If max_minions is used in large installations, the master might experience
  167. # high-load situations because of having to check the number of connected
  168. # minions for every authentication. This cache provides the minion-ids of
  169. # all connected minions to all MWorker-processes and greatly improves the
  170. # performance of max_minions.
  171. # con_cache: False
  172. # The master can include configuration from other files. To enable this,
  173. # pass a list of paths to this option. The paths can be either relative or
  174. # absolute; if relative, they are considered to be relative to the directory
  175. # the main master configuration file lives in (this file). Paths can make use
  176. # of shell-style globbing. If no files are matched by a path passed to this
  177. # option, then the master will log a warning message.
  178. #
  179. # Include a config file from some other path:
  180. # include: /etc/salt/extra_config
  181. #
  182. # Include config from several files and directories:
  183. # include:
  184. # - /etc/salt/extra_config
  185. ##### Large-scale tuning settings #####
  186. ##########################################
  187. # Max open files
  188. #
  189. # Each minion connecting to the master uses AT LEAST one file descriptor, the
  190. # master subscription connection. If enough minions connect you might start
  191. # seeing on the console (and then salt-master crashes):
  192. # Too many open files (tcp_listener.cpp:335)
  193. # Aborted (core dumped)
  194. #
  195. # By default this value will be the one of `ulimit -Hn`, ie, the hard limit for
  196. # max open files.
  197. #
  198. # If you wish to set a different value than the default one, uncomment and
  199. # configure this setting. Remember that this value CANNOT be higher than the
  200. # hard limit. Raising the hard limit depends on your OS and/or distribution,
  201. # a good way to find the limit is to search the internet. For example:
  202. # raise max open files hard limit debian
  203. #
  204. #max_open_files: 100000
  205. # The number of worker threads to start. These threads are used to manage
  206. # return calls made from minions to the master. If the master seems to be
  207. # running slowly, increase the number of threads. This setting can not be
  208. # set lower than 3.
  209. #worker_threads: 5
  210. # Set the ZeroMQ high water marks
  211. # http://api.zeromq.org/3-2:zmq-setsockopt
  212. # The listen queue size / backlog
  213. #zmq_backlog: 1000
  214. # The publisher interface ZeroMQPubServerChannel
  215. #pub_hwm: 1000
  216. # These two ZMQ HWM settings, salt_event_pub_hwm and event_publisher_pub_hwm
  217. # are significant for masters with thousands of minions. When these are
  218. # insufficiently high it will manifest in random responses missing in the CLI
  219. # and even missing from the job cache. Masters that have fast CPUs and many
  220. # cores with appropriate worker_threads will not need these set as high.
  221. # On deployment with 8,000 minions, 2.4GHz CPUs, 24 cores, 32GiB memory has
  222. # these settings:
  223. #
  224. # salt_event_pub_hwm: 128000
  225. # event_publisher_pub_hwm: 64000
  226. # ZMQ high-water-mark for SaltEvent pub socket
  227. #salt_event_pub_hwm: 20000
  228. # ZMQ high-water-mark for EventPublisher pub socket
  229. #event_publisher_pub_hwm: 10000
  230. # The master may allocate memory per-event and not
  231. # reclaim it.
  232. # To set a high-water mark for memory allocation, use
  233. # ipc_write_buffer to set a high-water mark for message
  234. # buffering.
  235. # Value: In bytes. Set to 'dynamic' to have Salt select
  236. # a value for you. Default is disabled.
  237. # ipc_write_buffer: 'dynamic'
  238. # These two batch settings, batch_safe_limit and batch_safe_size, are used to
  239. # automatically switch to a batch mode execution. If a command would have been
  240. # sent to more than <batch_safe_limit> minions, then run the command in
  241. # batches of <batch_safe_size>. If no batch_safe_size is specified, a default
  242. # of 8 will be used. If no batch_safe_limit is specified, then no automatic
  243. # batching will occur.
  244. #batch_safe_limit: 100
  245. #batch_safe_size: 8
  246. # Master stats enables stats events to be fired from the master at close
  247. # to the defined interval
  248. #master_stats: False
  249. #master_stats_event_iter: 60
  250. ##### Security settings #####
  251. ##########################################
  252. # Enable passphrase protection of Master private key. Although a string value
  253. # is acceptable; passwords should be stored in an external vaulting mechanism
  254. # and retrieved via sdb. See https://docs.saltstack.com/en/latest/topics/sdb/.
  255. # Passphrase protection is off by default but an example of an sdb profile and
  256. # query is as follows.
  257. # masterkeyring:
  258. # driver: keyring
  259. # service: system
  260. #
  261. # key_pass: sdb://masterkeyring/key_pass
  262. # Enable passphrase protection of the Master signing_key. This only applies if
  263. # master_sign_pubkey is set to True. This is disabled by default.
  264. # master_sign_pubkey: True
  265. # signing_key_pass: sdb://masterkeyring/signing_pass
  266. # Enable "open mode", this mode still maintains encryption, but turns off
  267. # authentication, this is only intended for highly secure environments or for
  268. # the situation where your keys end up in a bad state. If you run in open mode
  269. # you do so at your own risk!
  270. #open_mode: False
  271. # Enable auto_accept, this setting will automatically accept all incoming
  272. # public keys from the minions. Note that this is insecure.
  273. #auto_accept: False
  274. # The size of key that should be generated when creating new keys.
  275. #keysize: 2048
  276. # Time in minutes that an incoming public key with a matching name found in
  277. # pki_dir/minion_autosign/keyid is automatically accepted. Expired autosign keys
  278. # are removed when the master checks the minion_autosign directory.
  279. # 0 equals no timeout
  280. # autosign_timeout: 120
  281. # If the autosign_file is specified, incoming keys specified in the
  282. # autosign_file will be automatically accepted. This is insecure. Regular
  283. # expressions as well as globing lines are supported. The file must be readonly
  284. # except for the owner. Use permissive_pki_access to allow the group write access.
  285. #autosign_file: /etc/salt/autosign.conf
  286. # Works like autosign_file, but instead allows you to specify minion IDs for
  287. # which keys will automatically be rejected. Will override both membership in
  288. # the autosign_file and the auto_accept setting.
  289. #autoreject_file: /etc/salt/autoreject.conf
  290. # If the autosign_grains_dir is specified, incoming keys from minons with grain
  291. # values matching those defined in files in this directory will be accepted
  292. # automatically. This is insecure. Minions need to be configured to send the grains.
  293. #autosign_grains_dir: /etc/salt/autosign_grains
  294. # Enable permissive access to the salt keys. This allows you to run the
  295. # master or minion as root, but have a non-root group be given access to
  296. # your pki_dir. To make the access explicit, root must belong to the group
  297. # you've given access to. This is potentially quite insecure. If an autosign_file
  298. # is specified, enabling permissive_pki_access will allow group access to that
  299. # specific file.
  300. #permissive_pki_access: False
  301. # Allow users on the master access to execute specific commands on minions.
  302. # This setting should be treated with care since it opens up execution
  303. # capabilities to non root users. By default this capability is completely
  304. # disabled.
  305. #publisher_acl:
  306. # larry:
  307. # - test.ping
  308. # - network.*
  309. #
  310. # Blacklist any of the following users or modules
  311. #
  312. # This example would blacklist all non sudo users, including root from
  313. # running any commands. It would also blacklist any use of the "cmd"
  314. # module. This is completely disabled by default.
  315. #
  316. #
  317. # Check the list of configured users in client ACL against users on the
  318. # system and throw errors if they do not exist.
  319. #client_acl_verify: True
  320. #
  321. #publisher_acl_blacklist:
  322. # users:
  323. # - root
  324. # - '^(?!sudo_).*$' # all non sudo users
  325. # modules:
  326. # - cmd
  327. # Enforce publisher_acl & publisher_acl_blacklist when users have sudo
  328. # access to the salt command.
  329. #
  330. #sudo_acl: False
  331. # The external auth system uses the Salt auth modules to authenticate and
  332. # validate users to access areas of the Salt system.
  333. #external_auth:
  334. # pam:
  335. # fred:
  336. # - test.*
  337. #
  338. # Time (in seconds) for a newly generated token to live. Default: 12 hours
  339. #token_expire: 43200
  340. #
  341. # Allow eauth users to specify the expiry time of the tokens they generate.
  342. # A boolean applies to all users or a dictionary of whitelisted eauth backends
  343. # and usernames may be given.
  344. # token_expire_user_override:
  345. # pam:
  346. # - fred
  347. # - tom
  348. # ldap:
  349. # - gary
  350. #
  351. #token_expire_user_override: False
  352. # Set to True to enable keeping the calculated user's auth list in the token
  353. # file. This is disabled by default and the auth list is calculated or requested
  354. # from the eauth driver each time.
  355. #keep_acl_in_token: False
  356. # Auth subsystem module to use to get authorized access list for a user. By default it's
  357. # the same module used for external authentication.
  358. #eauth_acl_module: django
  359. # Allow minions to push files to the master. This is disabled by default, for
  360. # security purposes.
  361. #file_recv: False
  362. # Set a hard-limit on the size of the files that can be pushed to the master.
  363. # It will be interpreted as megabytes. Default: 100
  364. #file_recv_max_size: 100
  365. # Signature verification on messages published from the master.
  366. # This causes the master to cryptographically sign all messages published to its event
  367. # bus, and minions then verify that signature before acting on the message.
  368. #
  369. # This is False by default.
  370. #
  371. # Note that to facilitate interoperability with masters and minions that are different
  372. # versions, if sign_pub_messages is True but a message is received by a minion with
  373. # no signature, it will still be accepted, and a warning message will be logged.
  374. # Conversely, if sign_pub_messages is False, but a minion receives a signed
  375. # message it will be accepted, the signature will not be checked, and a warning message
  376. # will be logged. This behavior went away in Salt 2014.1.0 and these two situations
  377. # will cause minion to throw an exception and drop the message.
  378. # sign_pub_messages: False
  379. # Signature verification on messages published from minions
  380. # This requires that minions cryptographically sign the messages they
  381. # publish to the master. If minions are not signing, then log this information
  382. # at loglevel 'INFO' and drop the message without acting on it.
  383. # require_minion_sign_messages: False
  384. # The below will drop messages when their signatures do not validate.
  385. # Note that when this option is False but `require_minion_sign_messages` is True
  386. # minions MUST sign their messages but the validity of their signatures
  387. # is ignored.
  388. # These two config options exist so a Salt infrastructure can be moved
  389. # to signing minion messages gradually.
  390. # drop_messages_signature_fail: False
  391. # Use TLS/SSL encrypted connection between master and minion.
  392. # Can be set to a dictionary containing keyword arguments corresponding to Python's
  393. # 'ssl.wrap_socket' method.
  394. # Default is None.
  395. #ssl:
  396. # keyfile: <path_to_keyfile>
  397. # certfile: <path_to_certfile>
  398. # ssl_version: PROTOCOL_TLSv1_2
  399. ##### Salt-SSH Configuration #####
  400. ##########################################
  401. # Define the default salt-ssh roster module to use
  402. #roster: flat
  403. # Pass in an alternative location for the salt-ssh `flat` roster file
  404. #roster_file: /etc/salt/roster
  405. # Define locations for `flat` roster files so they can be chosen when using Salt API.
  406. # An administrator can place roster files into these locations. Then when
  407. # calling Salt API, parameter 'roster_file' should contain a relative path to
  408. # these locations. That is, "roster_file=/foo/roster" will be resolved as
  409. # "/etc/salt/roster.d/foo/roster" etc. This feature prevents passing insecure
  410. # custom rosters through the Salt API.
  411. #
  412. #rosters:
  413. # - /etc/salt/roster.d
  414. # - /opt/salt/some/more/rosters
  415. # The ssh password to log in with.
  416. #ssh_passwd: ''
  417. #The target system's ssh port number.
  418. #ssh_port: 22
  419. # Comma-separated list of ports to scan.
  420. #ssh_scan_ports: 22
  421. # Scanning socket timeout for salt-ssh.
  422. #ssh_scan_timeout: 0.01
  423. # Boolean to run command via sudo.
  424. #ssh_sudo: False
  425. # Number of seconds to wait for a response when establishing an SSH connection.
  426. #ssh_timeout: 60
  427. # The user to log in as.
  428. #ssh_user: root
  429. # The log file of the salt-ssh command:
  430. #ssh_log_file: /var/log/salt/ssh
  431. # Pass in minion option overrides that will be inserted into the SHIM for
  432. # salt-ssh calls. The local minion config is not used for salt-ssh. Can be
  433. # overridden on a per-minion basis in the roster (`minion_opts`)
  434. #ssh_minion_opts:
  435. # gpg_keydir: /root/gpg
  436. # Set this to True to default to using ~/.ssh/id_rsa for salt-ssh
  437. # authentication with minions
  438. #ssh_use_home_key: False
  439. # Set this to True to default salt-ssh to run with ``-o IdentitiesOnly=yes``.
  440. # This option is intended for situations where the ssh-agent offers many
  441. # different identities and allows ssh to ignore those identities and use the
  442. # only one specified in options.
  443. #ssh_identities_only: False
  444. # List-only nodegroups for salt-ssh. Each group must be formed as either a
  445. # comma-separated list, or a YAML list. This option is useful to group minions
  446. # into easy-to-target groups when using salt-ssh. These groups can then be
  447. # targeted with the normal -N argument to salt-ssh.
  448. #ssh_list_nodegroups: {}
  449. # salt-ssh has the ability to update the flat roster file if a minion is not
  450. # found in the roster. Set this to True to enable it.
  451. #ssh_update_roster: False
  452. ##### Master Module Management #####
  453. ##########################################
  454. # Manage how master side modules are loaded.
  455. # Add any additional locations to look for master runners:
  456. #runner_dirs: []
  457. # Add any additional locations to look for master utils:
  458. #utils_dirs: []
  459. # Enable Cython for master side modules:
  460. #cython_enable: False
  461. ##### State System settings #####
  462. ##########################################
  463. # The state system uses a "top" file to tell the minions what environment to
  464. # use and what modules to use. The state_top file is defined relative to the
  465. # root of the base environment as defined in "File Server settings" below.
  466. #state_top: top.sls
  467. # The master_tops option replaces the external_nodes option by creating
  468. # a plugable system for the generation of external top data. The external_nodes
  469. # option is deprecated by the master_tops option.
  470. #
  471. # To gain the capabilities of the classic external_nodes system, use the
  472. # following configuration:
  473. # master_tops:
  474. # ext_nodes: <Shell command which returns yaml>
  475. #
  476. #master_tops: {}
  477. # The external_nodes option allows Salt to gather data that would normally be
  478. # placed in a top file. The external_nodes option is the executable that will
  479. # return the ENC data. Remember that Salt will look for external nodes AND top
  480. # files and combine the results if both are enabled!
  481. #external_nodes: None
  482. # The renderer to use on the minions to render the state data
  483. #renderer: yaml_jinja
  484. # Default Jinja environment options for all templates except sls templates
  485. #jinja_env:
  486. # block_start_string: '{%'
  487. # block_end_string: '%}'
  488. # variable_start_string: '{{'
  489. # variable_end_string: '}}'
  490. # comment_start_string: '{#'
  491. # comment_end_string: '#}'
  492. # line_statement_prefix:
  493. # line_comment_prefix:
  494. # trim_blocks: False
  495. # lstrip_blocks: False
  496. # newline_sequence: '\n'
  497. # keep_trailing_newline: False
  498. # Jinja environment options for sls templates
  499. #jinja_sls_env:
  500. # block_start_string: '{%'
  501. # block_end_string: '%}'
  502. # variable_start_string: '{{'
  503. # variable_end_string: '}}'
  504. # comment_start_string: '{#'
  505. # comment_end_string: '#}'
  506. # line_statement_prefix:
  507. # line_comment_prefix:
  508. # trim_blocks: False
  509. # lstrip_blocks: False
  510. # newline_sequence: '\n'
  511. # keep_trailing_newline: False
  512. # The failhard option tells the minions to stop immediately after the first
  513. # failure detected in the state execution, defaults to False
  514. #failhard: False
  515. # The state_verbose and state_output settings can be used to change the way
  516. # state system data is printed to the display. By default all data is printed.
  517. # The state_verbose setting can be set to True or False, when set to False
  518. # all data that has a result of True and no changes will be suppressed.
  519. #state_verbose: True
  520. # The state_output setting controls which results will be output full multi line
  521. # full, terse - each state will be full/terse
  522. # mixed - only states with errors will be full
  523. # changes - states with changes and errors will be full
  524. # full_id, mixed_id, changes_id and terse_id are also allowed;
  525. # when set, the state ID will be used as name in the output
  526. state_output: changes
  527. # The state_output_diff setting changes whether or not the output from
  528. # successful states is returned. Useful when even the terse output of these
  529. # states is cluttering the logs. Set it to True to ignore them.
  530. #state_output_diff: False
  531. # Automatically aggregate all states that have support for mod_aggregate by
  532. # setting to 'True'. Or pass a list of state module names to automatically
  533. # aggregate just those types.
  534. #
  535. # state_aggregate:
  536. # - pkg
  537. #
  538. #state_aggregate: False
  539. # Send progress events as each function in a state run completes execution
  540. # by setting to 'True'. Progress events are in the format
  541. # 'salt/job/<JID>/prog/<MID>/<RUN NUM>'.
  542. #state_events: False
  543. ##### File Server settings #####
  544. ##########################################
  545. # Salt runs a lightweight file server written in zeromq to deliver files to
  546. # minions. This file server is built into the master daemon and does not
  547. # require a dedicated port.
  548. # The file server works on environments passed to the master, each environment
  549. # can have multiple root directories, the subdirectories in the multiple file
  550. # roots cannot match, otherwise the downloaded files will not be able to be
  551. # reliably ensured. A base environment is required to house the top file.
  552. # Example:
  553. # file_roots:
  554. # base:
  555. # - /srv/salt/
  556. # dev:
  557. # - /srv/salt/dev/services
  558. # - /srv/salt/dev/states
  559. # prod:
  560. # - /srv/salt/prod/services
  561. # - /srv/salt/prod/states
  562. #
  563. #file_roots:
  564. # base:
  565. # - /srv/salt
  566. #
  567. file_roots:
  568. base:
  569. - /data/salt/base/file_roots/
  570. # The master_roots setting configures a master-only copy of the file_roots dictionary,
  571. # used by the state compiler.
  572. #master_roots: /srv/salt-master
  573. # When using multiple environments, each with their own top file, the
  574. # default behaviour is an unordered merge. To prevent top files from
  575. # being merged together and instead to only use the top file from the
  576. # requested environment, set this value to 'same'.
  577. #top_file_merging_strategy: merge
  578. # To specify the order in which environments are merged, set the ordering
  579. # in the env_order option. Given a conflict, the last matching value will
  580. # win.
  581. #env_order: ['base', 'dev', 'prod']
  582. # If top_file_merging_strategy is set to 'same' and an environment does not
  583. # contain a top file, the top file in the environment specified by default_top
  584. # will be used instead.
  585. #default_top: base
  586. # The hash_type is the hash to use when discovering the hash of a file on
  587. # the master server. The default is sha256, but md5, sha1, sha224, sha384 and
  588. # sha512 are also supported.
  589. #
  590. # WARNING: While md5 and sha1 are also supported, do not use them due to the
  591. # high chance of possible collisions and thus security breach.
  592. #
  593. # Prior to changing this value, the master should be stopped and all Salt
  594. # caches should be cleared.
  595. #hash_type: sha256
  596. # The buffer size in the file server can be adjusted here:
  597. #file_buffer_size: 1048576
  598. # A regular expression (or a list of expressions) that will be matched
  599. # against the file path before syncing the modules and states to the minions.
  600. # This includes files affected by the file.recurse state.
  601. # For example, if you manage your custom modules and states in subversion
  602. # and don't want all the '.svn' folders and content synced to your minions,
  603. # you could set this to '/\.svn($|/)'. By default nothing is ignored.
  604. #file_ignore_regex:
  605. # - '/\.svn($|/)'
  606. # - '/\.git($|/)'
  607. # A file glob (or list of file globs) that will be matched against the file
  608. # path before syncing the modules and states to the minions. This is similar
  609. # to file_ignore_regex above, but works on globs instead of regex. By default
  610. # nothing is ignored.
  611. # file_ignore_glob:
  612. # - '*.pyc'
  613. # - '*/somefolder/*.bak'
  614. # - '*.swp'
  615. # File Server Backend
  616. #
  617. # Salt supports a modular fileserver backend system, this system allows
  618. # the salt master to link directly to third party systems to gather and
  619. # manage the files available to minions. Multiple backends can be
  620. # configured and will be searched for the requested file in the order in which
  621. # they are defined here. The default setting only enables the standard backend
  622. # "roots" which uses the "file_roots" option.
  623. #fileserver_backend:
  624. # - roots
  625. #
  626. # To use multiple backends list them in the order they are searched:
  627. #fileserver_backend:
  628. # - git
  629. # - roots
  630. #
  631. # Uncomment the line below if you do not want the file_server to follow
  632. # symlinks when walking the filesystem tree. This is set to True
  633. # by default. Currently this only applies to the default roots
  634. # fileserver_backend.
  635. #fileserver_followsymlinks: False
  636. #
  637. # Uncomment the line below if you do not want symlinks to be
  638. # treated as the files they are pointing to. By default this is set to
  639. # False. By uncommenting the line below, any detected symlink while listing
  640. # files on the Master will not be returned to the Minion.
  641. #fileserver_ignoresymlinks: True
  642. #
  643. # By default, the Salt fileserver recurses fully into all defined environments
  644. # to attempt to find files. To limit this behavior so that the fileserver only
  645. # traverses directories with SLS files and special Salt directories like _modules,
  646. # enable the option below. This might be useful for installations where a file root
  647. # has a very large number of files and performance is impacted. Default is False.
  648. # fileserver_limit_traversal: False
  649. #
  650. # The fileserver can fire events off every time the fileserver is updated,
  651. # these are disabled by default, but can be easily turned on by setting this
  652. # flag to True
  653. #fileserver_events: False
  654. # Git File Server Backend Configuration
  655. #
  656. # Optional parameter used to specify the provider to be used for gitfs. Must be
  657. # either pygit2 or gitpython. If unset, then both will be tried (in that
  658. # order), and the first one with a compatible version installed will be the
  659. # provider that is used.
  660. #
  661. #gitfs_provider: pygit2
  662. # Along with gitfs_password, is used to authenticate to HTTPS remotes.
  663. # gitfs_user: ''
  664. # Along with gitfs_user, is used to authenticate to HTTPS remotes.
  665. # This parameter is not required if the repository does not use authentication.
  666. #gitfs_password: ''
  667. # By default, Salt will not authenticate to an HTTP (non-HTTPS) remote.
  668. # This parameter enables authentication over HTTP. Enable this at your own risk.
  669. #gitfs_insecure_auth: False
  670. # Along with gitfs_privkey (and optionally gitfs_passphrase), is used to
  671. # authenticate to SSH remotes. This parameter (or its per-remote counterpart)
  672. # is required for SSH remotes.
  673. #gitfs_pubkey: ''
  674. # Along with gitfs_pubkey (and optionally gitfs_passphrase), is used to
  675. # authenticate to SSH remotes. This parameter (or its per-remote counterpart)
  676. # is required for SSH remotes.
  677. #gitfs_privkey: ''
  678. # This parameter is optional, required only when the SSH key being used to
  679. # authenticate is protected by a passphrase.
  680. #gitfs_passphrase: ''
  681. # When using the git fileserver backend at least one git remote needs to be
  682. # defined. The user running the salt master will need read access to the repo.
  683. #
  684. # The repos will be searched in order to find the file requested by a client
  685. # and the first repo to have the file will return it.
  686. # When using the git backend branches and tags are translated into salt
  687. # environments.
  688. # Note: file:// repos will be treated as a remote, so refs you want used must
  689. # exist in that repo as *local* refs.
  690. #gitfs_remotes:
  691. # - git://github.com/saltstack/salt-states.git
  692. # - file:///var/git/saltmaster
  693. #
  694. # The gitfs_ssl_verify option specifies whether to ignore ssl certificate
  695. # errors when contacting the gitfs backend. You might want to set this to
  696. # false if you're using a git backend that uses a self-signed certificate but
  697. # keep in mind that setting this flag to anything other than the default of True
  698. # is a security concern, you may want to try using the ssh transport.
  699. #gitfs_ssl_verify: True
  700. #
  701. # The gitfs_root option gives the ability to serve files from a subdirectory
  702. # within the repository. The path is defined relative to the root of the
  703. # repository and defaults to the repository root.
  704. #gitfs_root: somefolder/otherfolder
  705. #
  706. # The refspecs fetched by gitfs remotes
  707. #gitfs_refspecs:
  708. # - '+refs/heads/*:refs/remotes/origin/*'
  709. # - '+refs/tags/*:refs/tags/*'
  710. #
  711. #
  712. ##### Pillar settings #####
  713. ##########################################
  714. # Salt Pillars allow for the building of global data that can be made selectively
  715. # available to different minions based on minion grain filtering. The Salt
  716. # Pillar is laid out in the same fashion as the file server, with environments,
  717. # a top file and sls files. However, pillar data does not need to be in the
  718. # highstate format, and is generally just key/value pairs.
  719. #pillar_roots:
  720. # base:
  721. # - /srv/pillar
  722. #
  723. #ext_pillar:
  724. # - hiera: /etc/hiera.yaml
  725. # - cmd_yaml: cat /etc/salt/yaml
  726. pillar_roots:
  727. base:
  728. - /data/salt/base/pillar_roots/
  729. # A list of paths to be recursively decrypted during pillar compilation.
  730. # Entries in this list can be formatted either as a simple string, or as a
  731. # key/value pair, with the key being the pillar location, and the value being
  732. # the renderer to use for pillar decryption. If the former is used, the
  733. # renderer specified by decrypt_pillar_default will be used.
  734. #decrypt_pillar:
  735. # - 'foo:bar': gpg
  736. # - 'lorem:ipsum:dolor'
  737. # The delimiter used to distinguish nested data structures in the
  738. # decrypt_pillar option.
  739. #decrypt_pillar_delimiter: ':'
  740. # The default renderer used for decryption, if one is not specified for a given
  741. # pillar key in decrypt_pillar.
  742. #decrypt_pillar_default: gpg
  743. # List of renderers which are permitted to be used for pillar decryption.
  744. #decrypt_pillar_renderers:
  745. # - gpg
  746. # The ext_pillar_first option allows for external pillar sources to populate
  747. # before file system pillar. This allows for targeting file system pillar from
  748. # ext_pillar.
  749. #ext_pillar_first: False
  750. # The external pillars permitted to be used on-demand using pillar.ext
  751. #on_demand_ext_pillar:
  752. # - libvirt
  753. # - virtkey
  754. # The pillar_gitfs_ssl_verify option specifies whether to ignore ssl certificate
  755. # errors when contacting the pillar gitfs backend. You might want to set this to
  756. # false if you're using a git backend that uses a self-signed certificate but
  757. # keep in mind that setting this flag to anything other than the default of True
  758. # is a security concern, you may want to try using the ssh transport.
  759. #pillar_gitfs_ssl_verify: True
  760. # The pillar_opts option adds the master configuration file data to a dict in
  761. # the pillar called "master". This is used to set simple configurations in the
  762. # master config file that can then be used on minions.
  763. #pillar_opts: False
  764. # The pillar_safe_render_error option prevents the master from passing pillar
  765. # render errors to the minion. This is set on by default because the error could
  766. # contain templating data which would give that minion information it shouldn't
  767. # have, like a password! When set true the error message will only show:
  768. # Rendering SLS 'my.sls' failed. Please see master log for details.
  769. #pillar_safe_render_error: True
  770. # The pillar_source_merging_strategy option allows you to configure merging strategy
  771. # between different sources. It accepts five values: none, recurse, aggregate, overwrite,
  772. # or smart. None will not do any merging at all. Recurse will merge recursively mapping of data.
  773. # Aggregate instructs aggregation of elements between sources that use the #!yamlex renderer. Overwrite
  774. # will overwrite elements according the order in which they are processed. This is
  775. # behavior of the 2014.1 branch and earlier. Smart guesses the best strategy based
  776. # on the "renderer" setting and is the default value.
  777. #pillar_source_merging_strategy: smart
  778. # Recursively merge lists by aggregating them instead of replacing them.
  779. #pillar_merge_lists: False
  780. # Set this option to True to force the pillarenv to be the same as the effective
  781. # saltenv when running states. If pillarenv is specified this option will be
  782. # ignored.
  783. #pillarenv_from_saltenv: False
  784. # Set this option to 'True' to force a 'KeyError' to be raised whenever an
  785. # attempt to retrieve a named value from pillar fails. When this option is set
  786. # to 'False', the failed attempt returns an empty string. Default is 'False'.
  787. #pillar_raise_on_missing: False
  788. # Git External Pillar (git_pillar) Configuration Options
  789. #
  790. # Specify the provider to be used for git_pillar. Must be either pygit2 or
  791. # gitpython. If unset, then both will be tried in that same order, and the
  792. # first one with a compatible version installed will be the provider that
  793. # is used.
  794. #git_pillar_provider: pygit2
  795. # If the desired branch matches this value, and the environment is omitted
  796. # from the git_pillar configuration, then the environment for that git_pillar
  797. # remote will be base.
  798. #git_pillar_base: master
  799. # If the branch is omitted from a git_pillar remote, then this branch will
  800. # be used instead
  801. #git_pillar_branch: master
  802. # Environment to use for git_pillar remotes. This is normally derived from
  803. # the branch/tag (or from a per-remote env parameter), but if set this will
  804. # override the process of deriving the env from the branch/tag name.
  805. #git_pillar_env: ''
  806. # Path relative to the root of the repository where the git_pillar top file
  807. # and SLS files are located.
  808. #git_pillar_root: ''
  809. # Specifies whether or not to ignore SSL certificate errors when contacting
  810. # the remote repository.
  811. #git_pillar_ssl_verify: False
  812. # When set to False, if there is an update/checkout lock for a git_pillar
  813. # remote and the pid written to it is not running on the master, the lock
  814. # file will be automatically cleared and a new lock will be obtained.
  815. #git_pillar_global_lock: True
  816. # Git External Pillar Authentication Options
  817. #
  818. # Along with git_pillar_password, is used to authenticate to HTTPS remotes.
  819. #git_pillar_user: ''
  820. # Along with git_pillar_user, is used to authenticate to HTTPS remotes.
  821. # This parameter is not required if the repository does not use authentication.
  822. #git_pillar_password: ''
  823. # By default, Salt will not authenticate to an HTTP (non-HTTPS) remote.
  824. # This parameter enables authentication over HTTP.
  825. #git_pillar_insecure_auth: False
  826. # Along with git_pillar_privkey (and optionally git_pillar_passphrase),
  827. # is used to authenticate to SSH remotes.
  828. #git_pillar_pubkey: ''
  829. # Along with git_pillar_pubkey (and optionally git_pillar_passphrase),
  830. # is used to authenticate to SSH remotes.
  831. #git_pillar_privkey: ''
  832. # This parameter is optional, required only when the SSH key being used
  833. # to authenticate is protected by a passphrase.
  834. #git_pillar_passphrase: ''
  835. # The refspecs fetched by git_pillar remotes
  836. #git_pillar_refspecs:
  837. # - '+refs/heads/*:refs/remotes/origin/*'
  838. # - '+refs/tags/*:refs/tags/*'
  839. # A master can cache pillars locally to bypass the expense of having to render them
  840. # for each minion on every request. This feature should only be enabled in cases
  841. # where pillar rendering time is known to be unsatisfactory and any attendant security
  842. # concerns about storing pillars in a master cache have been addressed.
  843. #
  844. # When enabling this feature, be certain to read through the additional ``pillar_cache_*``
  845. # configuration options to fully understand the tunable parameters and their implications.
  846. #
  847. # Note: setting ``pillar_cache: True`` has no effect on targeting Minions with Pillars.
  848. # See https://docs.saltstack.com/en/latest/topics/targeting/pillar.html
  849. #pillar_cache: False
  850. # If and only if a master has set ``pillar_cache: True``, the cache TTL controls the amount
  851. # of time, in seconds, before the cache is considered invalid by a master and a fresh
  852. # pillar is recompiled and stored.
  853. #pillar_cache_ttl: 3600
  854. # If and only if a master has set `pillar_cache: True`, one of several storage providers
  855. # can be utilized.
  856. #
  857. # `disk`: The default storage backend. This caches rendered pillars to the master cache.
  858. # Rendered pillars are serialized and deserialized as msgpack structures for speed.
  859. # Note that pillars are stored UNENCRYPTED. Ensure that the master cache
  860. # has permissions set appropriately. (Same defaults are provided.)
  861. #
  862. # memory: [EXPERIMENTAL] An optional backend for pillar caches which uses a pure-Python
  863. # in-memory data structure for maximal performance. There are several caveats,
  864. # however. First, because each master worker contains its own in-memory cache,
  865. # there is no guarantee of cache consistency between minion requests. This
  866. # works best in situations where the pillar rarely if ever changes. Secondly,
  867. # and perhaps more importantly, this means that unencrypted pillars will
  868. # be accessible to any process which can examine the memory of the ``salt-master``!
  869. # This may represent a substantial security risk.
  870. #
  871. #pillar_cache_backend: disk
  872. ###### Reactor Settings #####
  873. ###########################################
  874. # Define a salt reactor. See https://docs.saltstack.com/en/latest/topics/reactor/
  875. #reactor: []
  876. #Set the TTL for the cache of the reactor configuration.
  877. #reactor_refresh_interval: 60
  878. #Configure the number of workers for the runner/wheel in the reactor.
  879. #reactor_worker_threads: 10
  880. #Define the queue size for workers in the reactor.
  881. #reactor_worker_hwm: 10000
  882. ##### Syndic settings #####
  883. ##########################################
  884. # The Salt syndic is used to pass commands through a master from a higher
  885. # master. Using the syndic is simple. If this is a master that will have
  886. # syndic servers(s) below it, then set the "order_masters" setting to True.
  887. #
  888. # If this is a master that will be running a syndic daemon for passthrough, then
  889. # the "syndic_master" setting needs to be set to the location of the master server
  890. # to receive commands from.
  891. # Set the order_masters setting to True if this master will command lower
  892. # masters' syndic interfaces.
  893. #order_masters: False
  894. # If this master will be running a salt syndic daemon, syndic_master tells
  895. # this master where to receive commands from.
  896. #syndic_master: masterofmasters
  897. # This is the 'ret_port' of the MasterOfMaster:
  898. #syndic_master_port: 4506
  899. # PID file of the syndic daemon:
  900. #syndic_pidfile: /var/run/salt-syndic.pid
  901. # The log file of the salt-syndic daemon:
  902. #syndic_log_file: /var/log/salt/syndic
  903. # The behaviour of the multi-syndic when connection to a master of masters failed.
  904. # Can specify ``random`` (default) or ``ordered``. If set to ``random``, masters
  905. # will be iterated in random order. If ``ordered`` is specified, the configured
  906. # order will be used.
  907. #syndic_failover: random
  908. # The number of seconds for the salt client to wait for additional syndics to
  909. # check in with their lists of expected minions before giving up.
  910. #syndic_wait: 5
  911. ##### Peer Publish settings #####
  912. ##########################################
  913. # Salt minions can send commands to other minions, but only if the minion is
  914. # allowed to. By default "Peer Publication" is disabled, and when enabled it
  915. # is enabled for specific minions and specific commands. This allows secure
  916. # compartmentalization of commands based on individual minions.
  917. # The configuration uses regular expressions to match minions and then a list
  918. # of regular expressions to match functions. The following will allow the
  919. # minion authenticated as foo.example.com to execute functions from the test
  920. # and pkg modules.
  921. #peer:
  922. # foo.example.com:
  923. # - test.*
  924. # - pkg.*
  925. #
  926. # This will allow all minions to execute all commands:
  927. #peer:
  928. # .*:
  929. # - .*
  930. #
  931. # This is not recommended, since it would allow anyone who gets root on any
  932. # single minion to instantly have root on all of the minions!
  933. # Minions can also be allowed to execute runners from the salt master.
  934. # Since executing a runner from the minion could be considered a security risk,
  935. # it needs to be enabled. This setting functions just like the peer setting
  936. # except that it opens up runners instead of module functions.
  937. #
  938. # All peer runner support is turned off by default and must be enabled before
  939. # using. This will enable all peer runners for all minions:
  940. #peer_run:
  941. # .*:
  942. # - .*
  943. #
  944. # To enable just the manage.up runner for the minion foo.example.com:
  945. #peer_run:
  946. # foo.example.com:
  947. # - manage.up
  948. #
  949. #
  950. ##### Mine settings #####
  951. #####################################
  952. # Restrict mine.get access from minions. By default any minion has a full access
  953. # to get all mine data from master cache. In acl definion below, only pcre matches
  954. # are allowed.
  955. # mine_get:
  956. # .*:
  957. # - .*
  958. #
  959. # The example below enables minion foo.example.com to get 'network.interfaces' mine
  960. # data only, minions web* to get all network.* and disk.* mine data and all other
  961. # minions won't get any mine data.
  962. # mine_get:
  963. # foo.example.com:
  964. # - network.interfaces
  965. # web.*:
  966. # - network.*
  967. # - disk.*
  968. ##### Logging settings #####
  969. ##########################################
  970. # The location of the master log file
  971. # The master log can be sent to a regular file, local path name, or network
  972. # location. Remote logging works best when configured to use rsyslogd(8) (e.g.:
  973. # ``file:///dev/log``), with rsyslogd(8) configured for network logging. The URI
  974. # format is: <file|udp|tcp>://<host|socketpath>:<port-if-required>/<log-facility>
  975. #log_file: /var/log/salt/master
  976. #log_file: file:///dev/log
  977. #log_file: udp://loghost:10514
  978. #log_file: /var/log/salt/master
  979. #key_logfile: /var/log/salt/key
  980. # The level of messages to send to the console.
  981. # One of 'garbage', 'trace', 'debug', info', 'warning', 'error', 'critical'.
  982. #
  983. # The following log levels are considered INSECURE and may log sensitive data:
  984. # ['garbage', 'trace', 'debug']
  985. #
  986. #log_level: warning
  987. # The level of messages to send to the log file.
  988. # One of 'garbage', 'trace', 'debug', info', 'warning', 'error', 'critical'.
  989. # If using 'log_granular_levels' this must be set to the highest desired level.
  990. #log_level_logfile: warning
  991. # The date and time format used in log messages. Allowed date/time formatting
  992. # can be seen here: http://docs.python.org/library/time.html#time.strftime
  993. #log_datefmt: '%H:%M:%S'
  994. #log_datefmt_logfile: '%Y-%m-%d %H:%M:%S'
  995. # The format of the console logging messages. Allowed formatting options can
  996. # be seen here: http://docs.python.org/library/logging.html#logrecord-attributes
  997. #
  998. # Console log colors are specified by these additional formatters:
  999. #
  1000. # %(colorlevel)s
  1001. # %(colorname)s
  1002. # %(colorprocess)s
  1003. # %(colormsg)s
  1004. #
  1005. # Since it is desirable to include the surrounding brackets, '[' and ']', in
  1006. # the coloring of the messages, these color formatters also include padding as
  1007. # well. Color LogRecord attributes are only available for console logging.
  1008. #
  1009. #log_fmt_console: '%(colorlevel)s %(colormsg)s'
  1010. #log_fmt_console: '[%(levelname)-8s] %(message)s'
  1011. #
  1012. #log_fmt_logfile: '%(asctime)s,%(msecs)03d [%(name)-17s][%(levelname)-8s] %(message)s'
  1013. # This can be used to control logging levels more specificically. This
  1014. # example sets the main salt library at the 'warning' level, but sets
  1015. # 'salt.modules' to log at the 'debug' level:
  1016. # log_granular_levels:
  1017. # 'salt': 'warning'
  1018. # 'salt.modules': 'debug'
  1019. #
  1020. #log_granular_levels: {}
  1021. ##### Node Groups ######
  1022. ##########################################
  1023. # Node groups allow for logical groupings of minion nodes. A group consists of
  1024. # a group name and a compound target. Nodgroups can reference other nodegroups
  1025. # with 'N@' classifier. Ensure that you do not have circular references.
  1026. #
  1027. #nodegroups:
  1028. # group1: 'L@foo.domain.com,bar.domain.com,baz.domain.com or bl*.domain.com'
  1029. # group2: 'G@os:Debian and foo.domain.com'
  1030. # group3: 'G@os:Debian and N@group1'
  1031. # group4:
  1032. # - 'G@foo:bar'
  1033. # - 'or'
  1034. # - 'G@foo:baz'
  1035. ##### Range Cluster settings #####
  1036. ##########################################
  1037. # The range server (and optional port) that serves your cluster information
  1038. # https://github.com/ytoolshed/range/wiki/%22yamlfile%22-module-file-spec
  1039. #
  1040. #range_server: range:80
  1041. ##### Windows Software Repo settings #####
  1042. ###########################################
  1043. # Location of the repo on the master:
  1044. #winrepo_dir_ng: '/srv/salt/win/repo-ng'
  1045. #
  1046. # List of git repositories to include with the local repo:
  1047. #winrepo_remotes_ng:
  1048. # - 'https://github.com/saltstack/salt-winrepo-ng.git'
  1049. ##### Windows Software Repo settings - Pre 2015.8 #####
  1050. ########################################################
  1051. # Legacy repo settings for pre-2015.8 Windows minions.
  1052. #
  1053. # Location of the repo on the master:
  1054. #winrepo_dir: '/srv/salt/win/repo'
  1055. #
  1056. # Location of the master's repo cache file:
  1057. #winrepo_mastercachefile: '/srv/salt/win/repo/winrepo.p'
  1058. #
  1059. # List of git repositories to include with the local repo:
  1060. #winrepo_remotes:
  1061. # - 'https://github.com/saltstack/salt-winrepo.git'
  1062. # The refspecs fetched by winrepo remotes
  1063. #winrepo_refspecs:
  1064. # - '+refs/heads/*:refs/remotes/origin/*'
  1065. # - '+refs/tags/*:refs/tags/*'
  1066. #
  1067. ##### Returner settings ######
  1068. ############################################
  1069. # Which returner(s) will be used for minion's result:
  1070. #return: mysql
  1071. ###### Miscellaneous settings ######
  1072. ############################################
  1073. # Default match type for filtering events tags: startswith, endswith, find, regex, fnmatch
  1074. #event_match_type: startswith
  1075. # Save runner returns to the job cache
  1076. #runner_returns: True
  1077. # Permanently include any available Python 3rd party modules into thin and minimal Salt
  1078. # when they are generated for Salt-SSH or other purposes.
  1079. # The modules should be named by the names they are actually imported inside the Python.
  1080. # The value of the parameters can be either one module or a comma separated list of them.
  1081. #thin_extra_mods: foo,bar
  1082. #min_extra_mods: foo,bar,baz
  1083. ###### Keepalive settings ######
  1084. ############################################
  1085. # Warning: Failure to set TCP keepalives on the salt-master can result in
  1086. # not detecting the loss of a minion when the connection is lost or when
  1087. # it's host has been terminated without first closing the socket.
  1088. # Salt's Presence System depends on this connection status to know if a minion
  1089. # is "present".
  1090. # ZeroMQ now includes support for configuring SO_KEEPALIVE if supported by
  1091. # the OS. If connections between the minion and the master pass through
  1092. # a state tracking device such as a firewall or VPN gateway, there is
  1093. # the risk that it could tear down the connection the master and minion
  1094. # without informing either party that their connection has been taken away.
  1095. # Enabling TCP Keepalives prevents this from happening.
  1096. # Overall state of TCP Keepalives, enable (1 or True), disable (0 or False)
  1097. # or leave to the OS defaults (-1), on Linux, typically disabled. Default True, enabled.
  1098. #tcp_keepalive: True
  1099. # How long before the first keepalive should be sent in seconds. Default 300
  1100. # to send the first keepalive after 5 minutes, OS default (-1) is typically 7200 seconds
  1101. # on Linux see /proc/sys/net/ipv4/tcp_keepalive_time.
  1102. #tcp_keepalive_idle: 300
  1103. # How many lost probes are needed to consider the connection lost. Default -1
  1104. # to use OS defaults, typically 9 on Linux, see /proc/sys/net/ipv4/tcp_keepalive_probes.
  1105. #tcp_keepalive_cnt: -1
  1106. # How often, in seconds, to send keepalives after the first one. Default -1 to
  1107. # use OS defaults, typically 75 seconds on Linux, see
  1108. # /proc/sys/net/ipv4/tcp_keepalive_intvl.
  1109. #tcp_keepalive_intvl: -1