mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-11 03:32:53 +01:00
Only load templates on change
This commit is contained in:
@@ -202,7 +202,9 @@ escomponenttemplates:
|
|||||||
- source: salt://elasticsearch/templates/component
|
- source: salt://elasticsearch/templates/component
|
||||||
- user: 930
|
- user: 930
|
||||||
- group: 939
|
- group: 939
|
||||||
|
- onchanges_in:
|
||||||
|
- cmd: so-elasticsearch-templates
|
||||||
|
|
||||||
# Auto-generate templates from defaults file
|
# Auto-generate templates from defaults file
|
||||||
{% for index, settings in ES_INDEX_SETTINGS.items() %}
|
{% for index, settings in ES_INDEX_SETTINGS.items() %}
|
||||||
es_index_template_{{index}}:
|
es_index_template_{{index}}:
|
||||||
@@ -212,6 +214,8 @@ es_index_template_{{index}}:
|
|||||||
- defaults:
|
- defaults:
|
||||||
TEMPLATE_CONFIG: {{ settings.index_template }}
|
TEMPLATE_CONFIG: {{ settings.index_template }}
|
||||||
- template: jinja
|
- template: jinja
|
||||||
|
- onchanges_in:
|
||||||
|
- cmd: so-elasticsearch-templates
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if TEMPLATES %}
|
{% if TEMPLATES %}
|
||||||
@@ -228,6 +232,8 @@ es_template_{{TEMPLATE.split('.')[0] | replace("/","_") }}:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
- user: 930
|
- user: 930
|
||||||
- group: 939
|
- group: 939
|
||||||
|
- onchanges_in:
|
||||||
|
- cmd: so-elasticsearch-templates
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user