瀏覽代碼

Update f_defaults.conf to support elasticsearch returner (#335)

Proposed pull request for elasticsearch returner in the minion.d/f_defaults.conf file
tags/v0.57.0
Andrew Ernst 7 年之前
父節點
當前提交
9ef5335f7b
共有 1 個文件被更改,包括 18 次插入0 次删除
  1. +18
    -0
      salt/files/minion.d/f_defaults.conf

+ 18
- 0
salt/files/minion.d/f_defaults.conf 查看文件

@@ -1212,6 +1212,24 @@ return:
#event_match_type: startswith
{{ get_config('event_match_type', 'startswith') }}

{% if 'elasticsearch' in cfg_minion -%}
{%- do default_keys.append('elasticsearch') %}
{%- do default_keys.append('return') %}
##### elasticsearch connection settings #####
##########################################
{%- for name, value in cfg_minion['elasticsearch'].items() %}
{%- if value is list %}
elasticsearch.{{ name }}:
{%- for objvalue in value %}
- {{ objvalue }}
{%- endfor %}
{%- else %}
elasticsearch.{{ name }}: {{ value }}
{%- endif %}
{%- endfor %}
{%- endif %}


{% if 'mongo' in cfg_minion -%}
{%- do default_keys.append('mongo') %}
##### mongodb connection settings #####

Loading…
取消
儲存