|
-
-
- {% set salt = pillar.get('salt', {}) -%}
- {% set master = salt.get('master', {}) -%}
- {%- macro get_config(configname, default_value) -%}
- {%- if configname in master -%}
- {{ configname }}: {{ master[configname] }}
- {%- elif configname in salt -%}
- {{ configname }}: {{ salt[configname] }}
- {%- else -%}
-
- {%- endif -%}
- {%- endmacro -%}
-
-
-
-
-
-
-
-
-
-
- {{ get_config('default_include', 'master.d/*.conf') }}
-
-
- {{ get_config('interface', '0.0.0.0') }}
-
-
-
- {{ get_config('ipv6', 'False') }}
-
-
- {{ get_config('publish_port', '4505') }}
-
-
-
-
- {{ get_config('user', 'root') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ get_config('max_open_files', '100000') }}
-
-
-
-
- {{ get_config('worker_threads', '5') }}
-
-
-
- {{ get_config('ret_port', '4506') }}
-
-
- {{ get_config('pidfile', '/var/run/salt-master.pid') }}
-
-
-
-
- {{ get_config('root_dir', '/') }}
-
-
- {{ get_config('pki_dir', '/etc/salt/pki/master') }}
-
-
- {{ get_config('cachedir', '/var/cache/salt/master') }}
-
-
- {{ get_config('verify_env', 'True') }}
-
-
- {{ get_config('keep_jobs', '24') }}
-
-
-
- {{ get_config('timeout', '5') }}
-
-
-
-
- {{ get_config('loop_interval', '60') }}
-
-
- {{ get_config('output', 'nested') }}
-
-
-
- {{ get_config('color', 'True') }}
-
-
- {{ get_config('sock_dir', '/var/run/salt/master') }}
-
-
-
-
-
- {{ get_config('enable_gpu_grains', 'False') }}
-
-
-
-
-
-
- {{ get_config('job_cache', 'True') }}
-
-
- {{ get_config('minion_data_cache', 'True') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ get_config('include', '[]') }}
-
-
-
-
-
-
-
-
- {{ get_config('open_mode', 'False') }}
-
-
-
- {{ get_config('auto_accept', 'False') }}
-
-
-
-
- {{ get_config('autosign_file', '/etc/salt/autosign.conf') }}
-
-
-
-
- {{ get_config('autoreject_file', '/etc/salt/autosign.conf') }}
-
-
-
-
-
-
-
- {{ get_config('permissive_pki_access', 'False') }}
-
-
-
-
-
-
-
-
-
-
-
- {{ get_config('client_acl', '{}') }}
-
-
-
-
-
-
-
-
- {% if 'client_acl_blacklist' in master -%}
- client_acl_blacklist:
- users:
- {% for user in master['client_acl_blacklist'].get('users', []) -%}
- - {{ user }}
- {% endfor -%}
- modules:
- {% for mod in master['client_acl_blacklist'].get('modules', []) -%}
- - {{ mod }}
- {% endfor -%}
- {% elif 'client_acl_blacklist' in salt -%}
- client_acl_blacklist:
- users:
- {% for user in salt['client_acl_blacklist'].get('users', []) -%}
- - {{ user }}
- {% endfor -%}
- modules:
- {% for mod in salt['client_acl_blacklist'].get('modules', []) -%}
- - {{ mod }}
- {% endfor -%}
- {% else -%}
-
-
-
-
-
-
- {%- endif %}
-
-
-
-
-
-
-
-
-
- {{ get_config('external_auth', '{}') }}
-
-
- {{ get_config('token_expire', '43200') }}
-
-
-
- {{ get_config('file_recv', 'False') }}
-
-
-
-
- {{ get_config('file_recv_max_size', '100') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ get_config('sign_pub_message', 'False') }}
-
-
-
-
-
-
- {{ get_config('runner_dirs', '[]') }}
-
-
- {{ get_config('cython_enable', 'False') }}
-
-
-
-
-
-
-
- {{ get_config('state_top', 'top.sls') }}
-
-
-
-
-
-
-
-
-
- {{ get_config('master_tops', '{}') }}
-
-
-
-
-
- {{ get_config('external_nodes', 'None') }}
-
-
- {{ get_config('renderer', 'yaml_jinja') }}
-
-
-
-
-
-
-
- {{ get_config('jinja_trim_blocks', 'False') }}
-
-
-
-
- {{ get_config('jinja_lstrip_blocks', 'False') }}
-
-
-
- {{ get_config('failhard', 'False') }}
-
-
-
-
-
- {{ get_config('state_verbose', 'True') }}
-
-
-
-
-
- {{ get_config('state_output', 'full') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {% if 'file_roots' in master -%}
- file_roots:
- {%- for name, roots in master['file_roots']|dictsort %}
- {{ name }}:
- {%- for dir in roots %}
- - {{ dir }}
- {%- endfor -%}
- {%- endfor -%}
- {% elif 'file_roots' in salt -%}
- file_roots:
- {%- for name, roots in salt['file_roots']|dictsort %}
- {{ name }}:
- {%- for dir in roots %}
- - {{ dir }}
- {%- endfor -%}
- {%- endfor -%}
- {% else -%}
-
-
-
- {%- endif %}
-
-
-
-
- {{ get_config('hash_type', 'md5') }}
-
-
- {{ get_config('file_buffer_size', '1048576') }}
-
-
-
-
-
-
-
- {% if 'file_ignore_regex' in master -%}
- file_ignore_regex:
- {% for regex in master['file_ignore_regex'] -%}
- - {{ regex }}
- {% endfor -%}
- {% elif 'file_ignore_regex' in salt -%}
- file_ignore_regex:
- {% for regex in salt['file_ignore_regex'] -%}
- - {{ regex }}
- {% endfor -%}
- {% else -%}
-
-
-
- {%- endif %}
-
-
-
-
-
- {% if 'file_ignore_glob' in master -%}
- file_ignore_glob:
- {% for glob in master['file_ignore_glob'] -%}
- - {{ glob }}
- {% endfor -%}
- {% elif 'file_ignore_glob' in salt -%}
- file_ignore_glob:
- {% for glob in salt['file_ignore_glob'] -%}
- - {{ glob }}
- {% endfor -%}
- {% else -%}
-
-
-
-
- {%- endif %}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {% if 'fileserver_backend' in master -%}
- fileserver_backend:
- {%- for backend in master['fileserver_backend'] %}
- - {{ backend }}
- {% endfor -%}
- {% endif %}
-
-
-
-
-
-
- {{ get_config('fileserver_followsymlinks', 'False') }}
-
-
-
-
-
-
- {{ get_config('fileserver_ignoresymlinks', 'True') }}
-
-
-
-
-
-
-
-
- {{ get_config('fileserver_limit_traversal', 'False') }}
-
-
-
-
- {{ get_config('fileserver_events', 'False') }}
-
-
-
-
-
- {{ get_config('gitfs_provider', 'gitpython') }}
-
-
-
-
-
-
-
-
-
-
- {% if 'gitfs_remotes' in master -%}
- gitfs_remotes:
- {%- for remote in master['gitfs_remotes'] %}
- - {{ remote }}{% endfor -%}
- {%- endif %}
-
-
-
-
-
-
-
-
-
-
- {{ get_config('gitfs_ssl_verify', 'True') }}
-
-
-
-
-
- {{ get_config('gitfs_root', 'somefolder/otherfolder') }}
-
-
-
-
-
-
-
-
-
- {% if 'pillar_roots' in master -%}
- pillar_roots:
- {%- for name, roots in master['pillar_roots']|dictsort %}
- {{ name }}:
- {%- for dir in roots %}
- - {{ dir }}
- {%- endfor -%}
- {%- endfor -%}
- {% elif 'pillar_roots' in salt -%}
- pillar_roots:
- {%- for name, roots in salt['pillar_roots'].items() -%}
- {{ name }}:
- {%- for dir in roots -%}
- - {{ dir }}
- {%- endfor -%}
- {%- endfor -%}
- {% else %}
-
-
-
- {%- endif %}
-
- {% if 'ext_pillar' in master -%}
- ext_pillar:
- {% for pillar in master['ext_pillar'] %}
- - {{ pillar.items()[0][0] }}: {{ pillar.items()[0][1] }}
- {% endfor -%}
- {% elif 'ext_pillar' in salt -%}
- ext_pillar:
- {% for pillar in salt['ext_pillar'] %}
- - {{ pillar.items()[0][0] }}: {{ pillar.items()[0][1] }}
- {% endfor -%}
- {% else %}
-
-
-
- {%- endif %}
-
-
-
-
-
-
- {{ get_config('pillar_gitfs_ssl_verify', 'True') }}
-
-
-
-
- {{ get_config('pillar_opts', 'True') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ get_config('order_masters', 'False') }}
-
-
-
- {{ get_config('syndic_master', 'masterofmaster') }}
-
-
- {{ get_config('syndic_master_port', '4506') }}
-
-
- {{ get_config('syndic_pidfile', '/var/run/salt-syndic.pid') }}
-
-
- {{ get_config('syndic_log_file', 'syndic.log') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {% if 'peer' in master -%}
- peer:
- {% for name, roots in master['peer'].items() -%}
- {{ name }}:
- {% for mod in roots -%}
- - {{ mod }}
- {% endfor -%}
- {% endfor -%}
- {% elif 'peer' in salt -%}
- peer:
- {% for name, roots in salt['peer'].items() -%}
- {{ name }}:
- {% for mod in roots -%}
- - {{ mod }}
- {% endfor -%}
- {% endfor -%}
- {% endif -%}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {% if 'peer_run' in master -%}
- peer_run:
- {% for name, roots in master['peer_run'].items() -%}
- {{ name }}:
- {% for mod in roots -%}
- - {{ mod }}
- {% endfor -%}
- {% endfor -%}
- {% elif 'peer_run' in salt -%}
- peer_run:
- {% for name, roots in salt['peer_run'].items() -%}
- {{ name }}:
- {% for mod in roots -%}
- - {{ mod }}
- {% endfor -%}
- {% endfor -%}
- {% endif -%}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ get_config('log_file', '/var/log/salt/master') }}
- {{ get_config('key_logfile', '/var/log/salt/key') }}
-
-
-
- {{ get_config('log_level', 'warning') }}
-
-
-
- {{ get_config('log_level_logfile', 'warning') }}
-
-
-
- {{ get_config('log_datefmt', "'%H:%M:%S'") }}
- {{ get_config('log_datefmt_logfile', "'%Y-%m-%d %H:%M:%S'") }}
-
-
-
- {{ 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'") }}
-
-
-
-
-
-
-
-
- {% if 'log_granular_levels' in master %}
- log_granular_levels:
- {% for name, lvl in master['log_granular_levels'] %}
- {{ name }}: {{ lvl }}
- {% endfor -%}
- {% elif 'log_granular_levels' in salt %}
- log_granular_levels:
- {% for name, lvl in salt['log_granular_levels'] %}
- {{ name }}: {{ lvl }}
- {% endfor -%}
- {% else %}
-
- {% endif %}
-
-
-
-
-
-
-
-
-
-
- {% if 'nodegroups' in master %}
- nodegroups:
- {% for name, lvl in master['nodegroups'] %}
- {{ name }}: {{ lvl }}
- {% endfor -%}
- {% elif 'nodegroups' in salt %}
- nodegroups:
- {% for name, lvl in salt['nodegroups'] %}
- {{ name }}: {{ lvl }}
- {% endfor -%}
- {% endif %}
-
-
-
-
-
-
-
- {{ get_config('range_server', 'range:80') }}
-
-
-
-
-
- halite:
- {%- for name, value in master['halite'].iteritems() %}
- {{ name }}: {{ value }}
- {%- endfor %}
- {%- endif %}
|