Merge pull request #241 from pcdummy/mongodb
add support for mongodb settings
This commit is contained in:
commit
55864f7cdf
@ -1380,3 +1380,17 @@ consul_config:
|
|||||||
{{ name }}: {{ value }}
|
{{ name }}: {{ value }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
{% if 'mongo' in cfg_master -%}
|
||||||
|
##### mongodb connection settings #####
|
||||||
|
##########################################
|
||||||
|
{%- for name, value in cfg_master['mongo'].items() %}
|
||||||
|
mongo.{{ name }}: {{ value }}
|
||||||
|
{%- endfor %}
|
||||||
|
|
||||||
|
{% if 'alternative.mongo' in cfg_master -%}
|
||||||
|
{%- for name, value in cfg_master['alternative.mongo'].items() %}
|
||||||
|
alternative.mongo.{{ name }}: {{ value }}
|
||||||
|
{%- endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{%- endif %}
|
@ -991,3 +991,17 @@ ext_pillar:
|
|||||||
# Default match type for filtering events tags: startswith, endswith, find, regex, fnmatch
|
# Default match type for filtering events tags: startswith, endswith, find, regex, fnmatch
|
||||||
#event_match_type: startswith
|
#event_match_type: startswith
|
||||||
{{ get_config('event_match_type', 'startswith') }}
|
{{ get_config('event_match_type', 'startswith') }}
|
||||||
|
|
||||||
|
{% if 'mongo' in cfg_minion -%}
|
||||||
|
##### mongodb connection settings #####
|
||||||
|
##########################################
|
||||||
|
{%- for name, value in cfg_minion['mongo'].items() %}
|
||||||
|
mongo.{{ name }}: {{ value }}
|
||||||
|
{%- endfor %}
|
||||||
|
|
||||||
|
{% if 'alternative.mongo' in cfg_minion -%}
|
||||||
|
{%- for name, value in cfg_minion['alternative.mongo'].items() %}
|
||||||
|
alternative.mongo.{{ name }}: {{ value }}
|
||||||
|
{%- endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{%- endif %}
|
Loading…
x
Reference in New Issue
Block a user