1
0

master 50 KB

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