Advertisement
Guest User

configuration file

a guest
Aug 8th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.62 KB | None | 0 0
  1. ##### Primary configuration settings #####
  2. ##########################################
  3.  
  4. # Per default the minion will automatically include all config files
  5. # from minion.d/*.conf (minion.d is a directory in the same directory
  6. # as the main minion config file).
  7. #default_include: minion.d/*.conf
  8.  
  9. # Set the location of the salt master server, if the master server cannot be
  10. # resolved, then the minion will fail to start.
  11. master: patches.mooreheadcomm.com
  12.  
  13. # Set the number of seconds to wait before attempting to resolve
  14. # the master hostname if name resolution fails. Defaults to 30 seconds.
  15. # Set to zero if the minion should shutdown and not retry.
  16. # retry_dns: 30
  17.  
  18. # Set the port used by the master reply and authentication server
  19. #master_port: 4506
  20.  
  21. # The user to run salt
  22. #user: root
  23.  
  24. # Specify the location of the daemon process ID file
  25. #pidfile: /var/run/salt-minion.pid
  26.  
  27. # The root directory prepended to these options: pki_dir, cachedir, log_file,
  28. # sock_dir, pidfile.
  29. #root_dir: /
  30.  
  31. # The directory to store the pki information in
  32. #pki_dir: /etc/salt/pki/minion
  33.  
  34. # Explicitly declare the id for this minion to use, if left commented the id
  35. # will be the hostname as returned by the python call: socket.getfqdn()
  36. # Since salt uses detached ids it is possible to run multiple minions on the
  37. # same machine but with different ids, this can be useful for salt compute
  38. # clusters.
  39. id: 4017-16-20
  40.  
  41. # Append a domain to a hostname in the event that it does not exist. This is
  42. # useful for systems where socket.getfqdn() does not actually result in a
  43. # FQDN (for instance, Solaris).
  44. #append_domain:
  45.  
  46. # Custom static grains for this minion can be specified here and used in SLS
  47. # files just like all other grains. This example sets 4 custom grains, with
  48. # the 'roles' grain having two values that can be matched against:
  49. grains:
  50. roles:
  51. - xibo
  52. # - memcache
  53. # deployment: datacenter4
  54. # cabinet: 13
  55. # cab_u: 14-15
  56.  
  57. # Where cache data goes
  58. #cachedir: /var/cache/salt/minion
  59.  
  60. # Verify and set permissions on configuration directories at startup
  61. #verify_env: True
  62.  
  63. # The minion can locally cache the return data from jobs sent to it, this
  64. # can be a good way to keep track of jobs the minion has executed
  65. # (on the minion side). By default this feature is disabled, to enable
  66. # set cache_jobs to True
  67. #cache_jobs: False
  68.  
  69. # set the directory used to hold unix sockets
  70. #sock_dir: /var/run/salt/minion
  71.  
  72. # Set the default outputter used by the salt-call command. The default is
  73. # "nested"
  74. #output: nested
  75. #
  76. # By default output is colored, to disable colored output set the color value
  77. # to False
  78. #color: True
  79.  
  80. # Backup files that are replaced by file.managed and file.recurse under
  81. # 'cachedir'/file_backups relative to their original location and appended
  82. # with a timestamp. The only valid setting is "minion". Disabled by default.
  83. #
  84. # Alternatively this can be specified for each file in state files:
  85. #
  86. # /etc/ssh/sshd_config:
  87. # file.managed:
  88. # - source: salt://ssh/sshd_config
  89. # - backup: minion
  90. #
  91. #backup_mode: minion
  92.  
  93. # When waiting for a master to accept the minion's public key, salt will
  94. # continuously attempt to reconnect until successful. This is the time, in
  95. # seconds, between those reconnection attempts.
  96. #acceptance_wait_time: 10
  97.  
  98. # The loop_interval sets how long in seconds the minion will wait between
  99. # evaluating the scheduler and running cleanup tasks. This defaults to a
  100. # sane 60 seconds, but if the minion scheduler needs to be evaluated more
  101. # often lower this value
  102. #loop_interval: 60
  103.  
  104. # When healing, a dns_check is run. This is to make sure that the originally
  105. # resolved dns has not changed. If this is something that does not happen in
  106. # your environment, set this value to False.
  107. #dns_check: True
  108.  
  109. # Windows platforms lack posix IPC and must rely on slower TCP based inter-
  110. # process communications. Set ipc_mode to 'tcp' on such systems
  111. #ipc_mode: ipc
  112. #
  113. # Overwrite the default tcp ports used by the minion when in tcp mode
  114. #tcp_pub_port: 4510
  115. #tcp_pull_port: 4511
  116.  
  117. # The minion can include configuration from other files. To enable this,
  118. # pass a list of paths to this option. The paths can be either relative or
  119. # absolute; if relative, they are considered to be relative to the directory
  120. # the main minion configuration file lives in (this file). Paths can make use
  121. # of shell-style globbing. If no files are matched by a path passed to this
  122. # option then the minion will log a warning message.
  123. #
  124. #
  125. # Include a config file from some other path:
  126. # include: /etc/salt/extra_config
  127. #
  128. # Include config from several files and directories:
  129. # include:
  130. # - /etc/salt/extra_config
  131. # - /etc/roles/webserver
  132.  
  133. ##### Minion module management #####
  134. ##########################################
  135. # Disable specific modules. This allows the admin to limit the level of
  136. # access the master has to the minion
  137. #disable_modules: [cmd,test]
  138. #disable_returners: []
  139. #
  140. # Modules can be loaded from arbitrary paths. This enables the easy deployment
  141. # of third party modules. Modules for returners and minions can be loaded.
  142. # Specify a list of extra directories to search for minion modules and
  143. # returners. These paths must be fully qualified!
  144. #module_dirs: []
  145. #returner_dirs: []
  146. #states_dirs: []
  147. #render_dirs: []
  148. #
  149. # A module provider can be statically overwritten or extended for the minion
  150. # via the providers option, in this case the default module will be
  151. # overwritten by the specified module. In this example the pkg module will
  152. # be provided by the yumpkg5 module instead of the system default.
  153. #
  154. # providers:
  155. # pkg: yumpkg5
  156. #
  157. # Enable Cython modules searching and loading. (Default: False)
  158. #cython_enable: False
  159. #
  160.  
  161. ##### State Management Settings #####
  162. ###########################################
  163. # The state management system executes all of the state templates on the minion
  164. # to enable more granular control of system state management. The type of
  165. # template and serialization used for state management needs to be configured
  166. # on the minion, the default renderer is yaml_jinja. This is a yaml file
  167. # rendered from a jinja template, the available options are:
  168. # yaml_jinja
  169. # yaml_mako
  170. # yaml_wempy
  171. # json_jinja
  172. # json_mako
  173. # json_wempy
  174. #
  175. #renderer: yaml_jinja
  176. #
  177. # The failhard option tells the minions to stop immediately after the first
  178. # failure detected in the state execution, defaults to False
  179. #failhard: False
  180. #
  181. # autoload_dynamic_modules Turns on automatic loading of modules found in the
  182. # environments on the master. This is turned on by default, to turn of
  183. # autoloading modules when states run set this value to False
  184. #autoload_dynamic_modules: True
  185. #
  186. # clean_dynamic_modules keeps the dynamic modules on the minion in sync with
  187. # the dynamic modules on the master, this means that if a dynamic module is
  188. # not on the master it will be deleted from the minion. By default this is
  189. # enabled and can be disabled by changing this value to False
  190. #clean_dynamic_modules: True
  191. #
  192. # Normally the minion is not isolated to any single environment on the master
  193. # when running states, but the environment can be isolated on the minion side
  194. # by statically setting it. Remember that the recommended way to manage
  195. # environments is to isolate via the top file.
  196. #environment: None
  197. #
  198. # If using the local file directory, then the state top file name needs to be
  199. # defined, by default this is top.sls.
  200. #state_top: top.sls
  201. #
  202. # Run states when the minion daemon starts. To enable, set startup_states to:
  203. # 'highstate' -- Execute state.highstate
  204. # 'sls' -- Read in the sls_list option and execute the named sls files
  205. # 'top' -- Read top_file option and execute based on that file on the Master
  206. #startup_states: ''
  207. #
  208. # list of states to run when the minion starts up if startup_states is 'sls'
  209. #sls_list:
  210. # - edit.vim
  211. # - hyper
  212. #
  213. # top file to execute if startup_states is 'top'
  214. #top_file: ''
  215.  
  216. ##### File Directory Settings #####
  217. ##########################################
  218. # The Salt Minion can redirect all file server operations to a local directory,
  219. # this allows for the same state tree that is on the master to be used if
  220. # copied completely onto the minion. This is a literal copy of the settings on
  221. # the master but used to reference a local directory on the minion.
  222.  
  223. # Set the file client, the client defaults to looking on the master server for
  224. # files, but can be directed to look at the local file directory setting
  225. # defined below by setting it to local.
  226. #file_client: remote
  227.  
  228. # The file directory works on environments passed to the minion, each environment
  229. # can have multiple root directories, the subdirectories in the multiple file
  230. # roots cannot match, otherwise the downloaded files will not be able to be
  231. # reliably ensured. A base environment is required to house the top file.
  232. # Example:
  233. # file_roots:
  234. # base:
  235. # - /srv/salt/
  236. # dev:
  237. # - /srv/salt/dev/services
  238. # - /srv/salt/dev/states
  239. # prod:
  240. # - /srv/salt/prod/services
  241. # - /srv/salt/prod/states
  242. #
  243. # Default:
  244. #file_roots:
  245. # base:
  246. # - /srv/salt
  247.  
  248. # The hash_type is the hash to use when discovering the hash of a file in
  249. # the minion directory, the default is md5, but sha1, sha224, sha256, sha384
  250. # and sha512 are also supported.
  251. #hash_type: md5
  252.  
  253. # The Salt pillar is searched for locally if file_client is set to local. If
  254. # this is the case, and pillar data is defined, then the pillar_roots need to
  255. # also be configured on the minion:
  256. #pillar_roots:
  257. # base:
  258. # - /srv/pillar
  259.  
  260. ###### Security settings #####
  261. ###########################################
  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.  
  268. # Enable permissive access to the salt keys. This allows you to run the
  269. # master or minion as root, but have a non-root group be given access to
  270. # your pki_dir. To make the access explicit, root must belong to the group
  271. # you've given access to. This is potentially quite insecure.
  272. #permissive_pki_access: False
  273.  
  274. # The state_verbose and state_output settings can be used to change the way
  275. # state system data is printed to the display. By default all data is printed.
  276. # The state_verbose setting can be set to True or False, when set to False
  277. # all data that has a result of True and no changes will be suppressed.
  278. #state_verbose: True
  279. #
  280. # The state_output setting changes if the output is the full multi line
  281. # output for each changed state if set to 'full', but if set to 'terse'
  282. # the output will be shortened to a single line.
  283. #state_output: full
  284. #
  285. # Fingerprint of the master public key to double verify the master is valid,
  286. # the master fingerprint can be found by running "salt-key -F master" on the
  287. # salt master.
  288. #master_finger: ''
  289.  
  290. ###### Thread settings #####
  291. ###########################################
  292. # Disable multiprocessing support, by default when a minion receives a
  293. # publication a new process is spawned and the command is executed therein.
  294. #multiprocessing: True
  295.  
  296. ##### Logging settings #####
  297. ##########################################
  298. # The location of the minion log file
  299. # The minion log can be sent to a regular file, local path name, or network
  300. # location. Remote logging works best when configured to use rsyslogd(8) (e.g.:
  301. # ``file:///dev/log``), with rsyslogd(8) configured for network logging. The URI
  302. # format is: <file|udp|tcp>://<host|socketpath>:<port-if-required>/<log-facility>
  303. #log_file: /var/log/salt/minion
  304. #log_file: file:///dev/log
  305. #log_file: udp://loghost:10514
  306. #
  307. #log_file: /var/log/salt/minion
  308. #key_logfile: /var/log/salt/key
  309. #
  310. # The level of messages to send to the console.
  311. # One of 'garbage', 'trace', 'debug', info', 'warning', 'error', 'critical'.
  312. # Default: 'warning'
  313. #log_level: warning
  314. #
  315. # The level of messages to send to the log file.
  316. # One of 'garbage', 'trace', 'debug', info', 'warning', 'error', 'critical'.
  317. # Default: 'warning'
  318. #log_level_logfile:
  319.  
  320. # The date and time format used in log messages. Allowed date/time formating
  321. # can be seen here: http://docs.python.org/library/time.html#time.strftime
  322. #log_datefmt: '%H:%M:%S'
  323. #log_datefmt_logfile: '%Y-%m-%d %H:%M:%S'
  324. #
  325. # The format of the console logging messages. Allowed formatting options can
  326. # be seen here: http://docs.python.org/library/logging.html#logrecord-attributes
  327. #log_fmt_console: '[%(levelname)-8s] %(message)s'
  328. #log_fmt_logfile: '%(asctime)s,%(msecs)03.0f [%(name)-17s][%(levelname)-8s] %(message)s'
  329. #
  330. # This can be used to control logging levels more specificically. This
  331. # example sets the main salt library at the 'warning' level, but sets
  332. # 'salt.modules' to log at the 'debug' level:
  333. # log_granular_levels:
  334. # 'salt': 'warning',
  335. # 'salt.modules': 'debug'
  336. #
  337. #log_granular_levels: {}
  338.  
  339. ###### Module configuration #####
  340. ###########################################
  341. # Salt allows for modules to be passed arbitrary configuration data, any data
  342. # passed here in valid yaml format will be passed on to the salt minion modules
  343. # for use. It is STRONGLY recommended that a naming convention be used in which
  344. # the module name is followed by a . and then the value. Also, all top level
  345. # data must be applied via the yaml dict construct, some examples:
  346. #
  347. # You can specify that all modules should run in test mode:
  348. #test: True
  349. #
  350. # A simple value for the test module:
  351. #test.foo: foo
  352. #
  353. # A list for the test module:
  354. #test.bar: [baz,quo]
  355. #
  356. # A dict for the test module:
  357. #test.baz: {spam: sausage, cheese: bread}
  358.  
  359.  
  360. ###### Update settings ######
  361. ###########################################
  362. # Using the features in Esky, a salt minion can both run as a frozen app and
  363. # be updated on the fly. These options control how the update process
  364. # (saltutil.update()) behaves.
  365. #
  366. # The url for finding and downloading updates. Disabled by default.
  367. #update_url: False
  368. #
  369. # The list of services to restart after a successful update. Empty by default.
  370. #update_restart_services: []
  371.  
  372.  
  373. ###### Keepalive settings ######
  374. ############################################
  375. # ZeroMQ now includes support for configuring SO_KEEPALIVE if supported by
  376. # the OS. If connections between the minion and the master pass through
  377. # a state tracking device such as a firewall or VPN gateway, there is
  378. # the risk that it could tear down the connection the master and minion
  379. # without informing either party that their connection has been taken away.
  380. # Enabling TCP Keepalives prevents this from happening.
  381. #
  382. # Overall state of TCP Keepalives, enable (1 or True), disable (0 or False)
  383. # or leave to the OS defaults (-1), on linux, typically disabled. Default True, enabled.
  384. #tcp_keepalive: True
  385. #
  386. # How long before the first keepalive should be sent in seconds. Default 300
  387. # to send the first keepalive after 5 minutes, OS default (-1) is typically 7200 seconds
  388. # on Linux see /proc/sys/net/ipv4/tcp_keepalive_time.
  389. #tcp_keepalive_idle: 300
  390. #
  391. # How many lost probes are needed to consider the connection lost. Default -1
  392. # to use OS defaults, typically 9 on Linux, see /proc/sys/net/ipv4/tcp_keepalive_probes.
  393. #tcp_keepalive_cnt: -1
  394. #
  395. # How often, in seconds, to send keepalives after the first one. Default -1 to
  396. # use OS defaults, typically 75 seconds on Linux, see
  397. # /proc/sys/net/ipv4/tcp_keepalive_intvl.
  398. #tcp_keepalive_intvl: -1
  399.  
  400.  
  401. ###### Windows Software settings ######
  402. ############################################
  403. # Location of the repository cache file on the master
  404. # win_repo_cachefile: 'salt://win/repo/winrepo.p'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement