mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 01:02:46 +01:00
10 lines
565 B
Django/Jinja
10 lines
565 B
Django/Jinja
{% import_yaml 'elasticsearch/defaults.yaml' as ESCONFIG with context %}
|
|
{%- set ES_INDEX_SETTINGS = salt['pillar.get']('elasticsearch:index_settings', default=ESCONFIG.elasticsearch.index_settings, merge=True) %}
|
|
{% for index, settings in ES_INDEX_SETTINGS.items() %}
|
|
{% if settings.index_template is defined %}
|
|
{% if not settings.get('index_sorting', False) | to_bool and settings.index_template.template.settings.index.sort is defined %}
|
|
{% do settings.index_template.template.settings.index.pop('sort') %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|