Browse Source

Merge "Allow setting more master and minion options"

pull/56/head
Filip Pytloun 7 years ago
parent
commit
b11fe78bd9
2 changed files with 18 additions and 2 deletions
  1. +8
    -0
      salt/files/master.conf
  2. +10
    -2
      salt/files/minion.conf

+ 8
- 0
salt/files/master.conf View File

worker_threads: {{ master.worker_threads }} worker_threads: {{ master.worker_threads }}
timeout: {{ master.command_timeout }} timeout: {{ master.command_timeout }}


{%- if master.get('max_open_files') %}
max_open_files: {{ master.max_open_files }}
{%- endif %}

state_output: {{ master.get('state_output', 'changes') }} state_output: {{ master.get('state_output', 'changes') }}


{%- if master.system is defined %} {%- if master.system is defined %}
{%- if master.get('order_masters', False) %} {%- if master.get('order_masters', False) %}
order_masters: True order_masters: True
{%- endif %} {%- endif %}

{#-
vim: syntax=jinja
-#}

+ 10
- 2
salt/files/minion.conf View File



id: {{ system.name }}.{{ system.domain }} id: {{ system.name }}.{{ system.domain }}


{% if minion.get('max_event_size') %}
max_event_size: {{ minion.max_event_size }}
{%- for opt in ['max_event_size', 'acceptance_wait_time_max',
'acceptance_wait_time', 'random_reauth_delay', 'recon_default', 'recon_max',
'recon_randomize', 'auth_timeout'] %}
{% if minion.get(opt) %}
{{ opt }}: {{ minion.get(opt) }}
{%- endif %} {%- endif %}
{%- endfor %}


{%- set excluded_keys = ('master', 'system', 'public_keys', 'private_keys', 'known_hosts', '__reclass__', '_secret', '_param') %} {%- set excluded_keys = ('master', 'system', 'public_keys', 'private_keys', 'known_hosts', '__reclass__', '_secret', '_param') %}


{%- endif %} {%- endif %}


{%- endfor %} {%- endfor %}

{#-
vim: syntax=jinja
-#}

Loading…
Cancel
Save