master 50 KB

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