2013-08-14 16:43:46 +02:00
|
|
|
# This file managed by Salt, do not edit by hand!!
|
2014-01-08 14:27:41 +01:00
|
|
|
# Based on salt version 0.17.4 default config
|
2014-10-03 10:43:59 +02:00
|
|
|
{% set reserved_keys = ['master', 'minion', 'cloud', 'salt_cloud_certs'] -%}
|
2014-12-24 16:12:40 +01:00
|
|
|
{% set cfg_salt = pillar.get('salt', {}) -%}
|
|
|
|
{% set cfg_minion = cfg_salt.get('minion', {}) -%}
|
2013-08-14 16:43:46 +02:00
|
|
|
{%- macro get_config(configname, default_value) -%}
|
2014-12-24 16:12:40 +01:00
|
|
|
{%- if configname in cfg_minion -%}
|
|
|
|
{{ configname }}: {{ cfg_minion[configname] }}
|
|
|
|
{%- elif configname in cfg_salt and configname not in reserved_keys -%}
|
|
|
|
{{ configname }}: {{ cfg_salt[configname] }}
|
2013-08-14 16:43:46 +02:00
|
|
|
{%- else -%}
|
|
|
|
#{{ configname }}: {{ default_value }}
|
|
|
|
{%- endif -%}
|
|
|
|
{%- endmacro -%}
|
2014-12-24 16:19:43 +01:00
|
|
|
{%- from 'salt/formulas.jinja' import file_roots, formulas with context -%}
|
2013-07-15 13:25:42 +02:00
|
|
|
##### Primary configuration settings #####
|
|
|
|
##########################################
|
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# minion includes
|
2013-08-23 23:03:26 +02:00
|
|
|
{{ get_config('default_include', 'minion.d/*.conf') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# master configs
|
2015-02-06 22:27:55 +01:00
|
|
|
{%- if 'master' in cfg_minion -%}
|
|
|
|
{%- if cfg_minion['master'] is not string %}
|
|
|
|
master:
|
|
|
|
{% for name in cfg_minion['master'] -%}
|
|
|
|
- {{ name }}
|
|
|
|
{% endfor -%}
|
|
|
|
{%- else %}
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('master', 'salt') }}
|
2015-02-06 22:27:55 +01:00
|
|
|
{%- endif %}
|
|
|
|
{% elif 'master' in cfg_salt -%}
|
|
|
|
{%- if cfg_salt['master'] is not string %}
|
|
|
|
master:
|
|
|
|
{% for name in cfg_salt['master'] -%}
|
|
|
|
- {{ name }}
|
|
|
|
{% endfor -%}
|
|
|
|
{%- else %}
|
|
|
|
{{ get_config('master', 'salt') }}
|
|
|
|
{%- endif -%}
|
|
|
|
{%- endif %}
|
2014-01-08 14:27:41 +01:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# choose a random master
|
2014-02-11 03:59:22 +01:00
|
|
|
{{ get_config('random_master', 'False') }}
|
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# use IPv6
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('ipv6', 'False') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# name resolution retries
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('retry_dns', '30') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# master port
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('master_port', '4506') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# user to run salt.
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('user', 'root') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# PID file
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('pidfile', '/var/run/salt-minion.pid') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# root dir
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('root_dir', '/') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# pki dir
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('pki_dir', '/etc/salt/pki/minion') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# minion id
|
2014-12-24 16:12:40 +01:00
|
|
|
{% if 'id' in cfg_minion -%}
|
|
|
|
id: {{ cfg_minion['id'] }}
|
2013-08-14 16:43:46 +02:00
|
|
|
{% else -%}
|
2013-07-15 13:25:42 +02:00
|
|
|
#id:
|
2013-08-14 16:43:46 +02:00
|
|
|
{%- endif %}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# domain name for hostnames
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('append_domain', '') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# custom grains
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('grains', '{}') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# cache location
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('cachedir', '/var/cache/salt/minion') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# environment verification
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('verify_env', 'True') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# cache executed jobs
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('cache_jobs', 'False') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# unix socket location
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('sock_dir', '/var/run/salt/minion') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# output formatter
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('output', 'nested') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# output color
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('color', 'True') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# remove nested color
|
2014-12-27 00:00:48 +01:00
|
|
|
{{ get_config('strip_colors', 'False') }}
|
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# backup modified files
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('backup_mode', 'minion') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# key acceptance time
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('acceptance_wait_time', '10') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# maximum acceptance wait
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('acceptance_wait_time_max', '0') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# retry key
|
2014-12-27 00:00:48 +01:00
|
|
|
{{ get_config('rejected_retry', 'False') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# time to wait for trying reauth
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('random_reauth_delay', '60') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# auth wait timeout
|
2014-12-27 00:00:48 +01:00
|
|
|
{{ get_config('auth_timeout', '60') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# auth retries
|
2014-12-27 00:00:48 +01:00
|
|
|
{{ get_config('auth_tries', '7') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# retry auth if ping failed
|
2014-12-27 00:00:48 +01:00
|
|
|
{{ get_config('auth_safemode', 'False') }}
|
2013-08-14 16:43:46 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# master ping interval
|
2014-12-27 00:00:48 +01:00
|
|
|
{{ get_config('ping_interval', '0') }}
|
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# salt mine functions execution interval
|
2015-02-20 20:43:14 +01:00
|
|
|
{{ get_config('mine_interval', '60') }}
|
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# mine functions
|
2015-04-03 20:34:34 +02:00
|
|
|
{%- if 'mine_functions' in cfg_minion %}
|
|
|
|
mine_functions:
|
|
|
|
{%- for func, args in cfg_minion['mine_functions'].items() %}
|
|
|
|
{{ func }}: {{ args }}
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# reconnection parameters
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('recon_default', '100') }}
|
|
|
|
{{ get_config('recon_max', '5000') }}
|
|
|
|
{{ get_config('recon_randomize', 'False') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# minion scheduler interval
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('loop_interval', '60') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# grain refresh interval
|
2014-02-11 03:59:22 +01:00
|
|
|
{{ get_config('grains_refresh_every', '1') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# cache grains in minion
|
2014-02-11 03:59:22 +01:00
|
|
|
{{ get_config('grains_cache', 'False') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# grains cache expiration interval
|
2014-02-11 03:59:22 +01:00
|
|
|
{{ get_config('grains_cache_expiration', '300') }}
|
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# ipc method
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('ipc_mode', 'ipc') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# ipc tcp ports
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('tcp_pub_port', '4510') }}
|
|
|
|
{{ get_config('tcp_pull_port', '4511') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# max event size in minion bus
|
2014-12-27 00:00:48 +01:00
|
|
|
{{ get_config('max_event_size', '1048576') }}
|
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# master check alive interval
|
2014-12-27 00:00:48 +01:00
|
|
|
{{ get_config('master_alive_interval', '30') }}
|
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# include extra config
|
2014-12-24 16:12:40 +01:00
|
|
|
{% if 'include' in cfg_minion -%}
|
|
|
|
{% if isinstance(cfg_minion['include'], list) -%}
|
2013-07-22 16:56:36 +02:00
|
|
|
include:
|
2014-12-24 16:12:40 +01:00
|
|
|
{% for include in cfg_minion['include'] -%}
|
2013-07-22 16:56:36 +02:00
|
|
|
- {{ include }}
|
|
|
|
{% endfor -%}
|
|
|
|
{% else -%}
|
2014-12-24 16:12:40 +01:00
|
|
|
include: cfg_minion['include']
|
2013-07-22 16:56:36 +02:00
|
|
|
{% endif -%}
|
2014-12-24 16:12:40 +01:00
|
|
|
{% elif 'include' in cfg_salt -%}
|
|
|
|
{% if isinstance(cfg_salt['include'], list) -%}
|
2013-08-14 16:43:46 +02:00
|
|
|
include:
|
2014-12-24 16:12:40 +01:00
|
|
|
{% for include in cfg_salt['include'] -%}
|
2013-08-14 16:43:46 +02:00
|
|
|
- {{ include }}
|
|
|
|
{% endfor -%}
|
|
|
|
{% else -%}
|
2014-12-24 16:12:40 +01:00
|
|
|
include: cfg_salt['include']
|
2013-08-14 16:43:46 +02:00
|
|
|
{% endif -%}
|
2013-07-22 16:56:36 +02:00
|
|
|
{% endif -%}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2014-12-27 00:00:48 +01:00
|
|
|
|
2013-07-15 13:25:42 +02:00
|
|
|
##### Minion module management #####
|
|
|
|
##########################################
|
2015-05-08 22:33:43 +02:00
|
|
|
# disable modules
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('disable_modules', '[cmd,test]') }}
|
|
|
|
{{ get_config('disable_returners', '[]') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
#
|
2015-05-08 22:33:43 +02:00
|
|
|
# minion modules search paths
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('module_dirs', '[]') }}
|
|
|
|
{{ get_config('returner_dirs', '[]') }}
|
|
|
|
{{ get_config('states_dirs', '[]') }}
|
|
|
|
{{ get_config('render_dirs', '[]') }}
|
2014-12-27 00:00:48 +01:00
|
|
|
{{ get_config('utils_dirs', '[]') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# module overrides
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('providers', '{}') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# enable cython modules
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('cython_enable', 'False') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# max module size
|
2014-02-11 03:59:22 +01:00
|
|
|
{{ get_config('modules_max_memory', '-1') }}
|
|
|
|
|
|
|
|
|
2013-07-15 13:25:42 +02:00
|
|
|
##### State Management Settings #####
|
|
|
|
###########################################
|
2015-05-08 22:33:43 +02:00
|
|
|
# renderer selection
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('renderer', 'yaml_jinja') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# fail on first failure
|
2013-08-14 21:53:29 +02:00
|
|
|
{{ get_config('failhard', 'False') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# auto reload dynamic modules
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('autoload_dynamic_modules', 'True') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# sync dynamic modules with deletion
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('clean_dynamic_modules', 'True') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# minion accepted environment
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('environment', 'None') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# top state file
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('state_top', 'top.sls') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# states to run in minion daemon
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('startup_states', "''") }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# sls states to run
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('sls_list', '[]') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# top file to run
|
2014-01-08 14:27:41 +01:00
|
|
|
{{ get_config('top_file', "''") }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
|
|
|
##### File Directory Settings #####
|
|
|
|
##########################################
|
2015-05-08 22:33:43 +02:00
|
|
|
# file client location
|
2014-12-21 15:35:45 +01:00
|
|
|
{%- if standalone %}
|
|
|
|
file_client: local
|
|
|
|
{%- else %}
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('file_client', 'remote') }}
|
2014-12-21 15:35:45 +01:00
|
|
|
{%- endif %}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# environment file roots
|
2014-12-24 16:12:40 +01:00
|
|
|
{% if 'file_roots' in cfg_minion -%}
|
|
|
|
{{ file_roots(cfg_minion['file_roots']) }}
|
|
|
|
{%- elif 'file_roots' in cfg_salt -%}
|
|
|
|
{{ file_roots(cfg_salt['file_roots']) }}
|
2014-12-23 16:02:08 +01:00
|
|
|
{%- elif formulas|length -%}
|
|
|
|
{{ file_roots({'base': ['/srv/salt']}) }}
|
2013-08-14 16:43:46 +02:00
|
|
|
{%- endif %}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# limit fileserver traversal
|
2014-01-08 14:27:41 +01:00
|
|
|
{{ get_config('fileserver_limit_traversal', 'False') }}
|
2014-12-27 00:00:48 +01:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# gitfs provider
|
2014-12-08 22:17:07 +01:00
|
|
|
{{ get_config('gitfs_provider', 'pygit2') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# gitfs remotes
|
2014-12-24 16:12:40 +01:00
|
|
|
{% if 'gitfs_remotes' in cfg_minion -%}
|
2014-12-08 22:17:07 +01:00
|
|
|
gitfs_remotes:
|
2014-12-24 16:12:40 +01:00
|
|
|
{%- for remote in cfg_minion['gitfs_remotes'] %}
|
2014-12-11 22:09:21 +01:00
|
|
|
{%- if remote is iterable and remote is not string %}
|
2014-12-23 17:38:50 +01:00
|
|
|
{%- for repo, children in remote.items() %}
|
2014-12-08 22:17:07 +01:00
|
|
|
- {{ repo }}:
|
2014-12-11 22:09:21 +01:00
|
|
|
{%- for child in children %}
|
2014-12-23 17:38:50 +01:00
|
|
|
{%- for key, value in child.items() %}
|
2014-12-08 22:17:07 +01:00
|
|
|
- {{ key }}: {{ value }}
|
2014-12-11 22:09:21 +01:00
|
|
|
{%- endfor -%}
|
|
|
|
{%- endfor -%}
|
|
|
|
{%- endfor -%}
|
|
|
|
{%- else %}
|
2014-12-08 22:17:07 +01:00
|
|
|
- {{ remote }}
|
2014-12-11 22:09:21 +01:00
|
|
|
{%- endif -%}
|
|
|
|
{%- endfor -%}
|
2014-12-14 20:38:47 +01:00
|
|
|
{%- endif %}
|
2015-05-08 22:33:43 +02:00
|
|
|
# verify git ssl errors
|
2014-12-08 22:17:07 +01:00
|
|
|
{{ get_config('gitfs_ssl_verify', 'True') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# gitfs root dir
|
2014-12-08 22:17:07 +01:00
|
|
|
{{ get_config('gitfs_root', 'somefolder/otherfolder') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
|
|
|
|
# file hash method
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('hash_type', 'md5') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# pillar roots
|
2014-12-24 16:12:40 +01:00
|
|
|
{% if 'pillar_roots' in cfg_minion -%}
|
2013-08-14 16:43:46 +02:00
|
|
|
pillar_roots:
|
2014-12-24 16:12:40 +01:00
|
|
|
{%- for name, roots in cfg_minion['pillar_roots']|dictsort %}
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ name }}:
|
2014-07-22 07:43:24 +02:00
|
|
|
{%- for dir in roots %}
|
|
|
|
- {{ dir }}
|
|
|
|
{%- endfor -%}
|
|
|
|
{%- endfor -%}
|
2014-12-24 16:12:40 +01:00
|
|
|
{% elif 'pillar_roots' in cfg_salt -%}
|
2013-08-14 16:43:46 +02:00
|
|
|
pillar_roots:
|
2014-12-24 16:12:40 +01:00
|
|
|
{%- for name, roots in cfg_salt['pillar_roots']|dictsort %}
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ name }}:
|
2014-07-22 07:43:24 +02:00
|
|
|
{%- for dir in roots %}
|
|
|
|
- {{ dir }}
|
|
|
|
{%- endfor -%}
|
|
|
|
{%- endfor -%}
|
2013-08-14 16:43:46 +02:00
|
|
|
{%- endif %}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2014-12-27 00:00:48 +01:00
|
|
|
|
2013-07-15 13:25:42 +02:00
|
|
|
###### Security settings #####
|
|
|
|
###########################################
|
2015-05-08 22:33:43 +02:00
|
|
|
# disable authentication
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('open_mode', 'False') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# allow access to pki dir
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('permissive_pki_access', 'False') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# print verbose changes
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('state_verbose', 'True') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# multi line output
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('state_output', 'full') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# output diff
|
2014-12-27 00:00:48 +01:00
|
|
|
{{ get_config('state_output_diff', 'False') }}
|
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# master fingerprint
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('master_finger', "''") }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
|
|
|
###### Thread settings #####
|
|
|
|
###########################################
|
2015-05-08 22:33:43 +02:00
|
|
|
# enable multiprocessing
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('multiprocessing', 'True') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2014-12-27 00:00:48 +01:00
|
|
|
|
2013-07-15 13:25:42 +02:00
|
|
|
##### Logging settings #####
|
|
|
|
##########################################
|
2015-05-08 22:33:43 +02:00
|
|
|
# log file and log lock file location
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('log_file', '/var/log/salt/minion') }}
|
|
|
|
{{ get_config('key_logfile', ' /var/log/salt/key') }}
|
2014-12-27 00:00:48 +01:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# console log level
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('log_level', 'warning') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# logfile log level
|
2014-01-08 14:27:41 +01:00
|
|
|
{{ get_config('log_level_logfile', '') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# datetime format for console and logfile
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('log_datefmt', "'%H:%M:%S'") }}
|
|
|
|
{{ get_config('log_datefmt_logfile', "'%Y-%m-%d %H:%M:%S'") }}
|
2014-12-27 00:00:48 +01:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# log format for console and logfiles
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('log_fmt_console', "'[%(levelname)-8s] %(message)s'") }}
|
|
|
|
{{ get_config('log_fmt_logfile', "'%(asctime)s,%(msecs)03.0f [%(name)-17s][%(levelname)-8s] %(message)s'") }}
|
2014-12-27 00:00:48 +01:00
|
|
|
|
2015-05-08 22:33:43 +02:00
|
|
|
# log particular modules
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('log_granular_levels', '{}') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2014-12-27 00:00:48 +01:00
|
|
|
|
2013-07-15 13:25:42 +02:00
|
|
|
###### Module configuration #####
|
|
|
|
###########################################
|
2015-05-08 22:33:43 +02:00
|
|
|
# module parameters
|
2014-12-24 16:12:40 +01:00
|
|
|
{%- if 'module_config' in cfg_minion %}
|
|
|
|
{%- for modkey, modval in cfg_minion.module_config.items() %}
|
2013-09-03 16:45:24 +02:00
|
|
|
{{ modkey }}: {{ modval }}
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
2014-01-08 14:27:41 +01:00
|
|
|
|
2013-07-15 13:25:42 +02:00
|
|
|
###### Update settings ######
|
|
|
|
###########################################
|
2015-05-08 22:33:43 +02:00
|
|
|
# update url
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('update_url', 'False') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# services to restart after update
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('update_restart_services', '[]') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
###### Keepalive settings ######
|
|
|
|
############################################
|
2015-05-08 22:33:43 +02:00
|
|
|
# use tcp keepalive
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('tcp_keepalive', 'True') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# first keepalive from idle
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('tcp_keepalive_idle', '300') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# keepalive number for connection lost
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('tcp_keepalive_cnt', '-1') }}
|
2015-05-08 22:33:43 +02:00
|
|
|
# keepalive interval
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('tcp_keepalive_intvl', '-1') }}
|
2013-07-15 13:25:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
###### Windows Software settings ######
|
|
|
|
############################################
|
2015-05-08 22:33:43 +02:00
|
|
|
# windows repo cache
|
2013-08-14 16:43:46 +02:00
|
|
|
{{ get_config('win_repo_cachefile', 'salt://win/repo/winrepo.p') }}
|