浏览代码

Allow setting more master and minion options

Change-Id: Ia4ba14bac02ddbceb986f725cf25664eca77bfe0
pull/56/head
Filip Pytloun 7 年前
父节点
当前提交
6b4134bd2d
共有 2 个文件被更改,包括 18 次插入2 次删除
  1. +8
    -0
      salt/files/master.conf
  2. +10
    -2
      salt/files/minion.conf

+ 8
- 0
salt/files/master.conf 查看文件

@@ -4,6 +4,10 @@
worker_threads: {{ master.worker_threads }}
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') }}

{%- if master.system is defined %}
@@ -90,3 +94,7 @@ logstash_zmq_handler:
{%- if master.get('order_masters', False) %}
order_masters: True
{%- endif %}

{#-
vim: syntax=jinja
-#}

+ 10
- 2
salt/files/minion.conf 查看文件

@@ -23,9 +23,13 @@ master: {{ minion.master.host }}

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 %}
{%- endfor %}

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

@@ -163,3 +167,7 @@ logstash_zmq_handler:
{%- endif %}

{%- endfor %}

{#-
vim: syntax=jinja
-#}

正在加载...
取消
保存