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