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