mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-15 21:52:47 +01:00
19 lines
887 B
Django/Jinja
19 lines
887 B
Django/Jinja
{% set CURATOROPTIONS = {} %}
|
|
{% set ENABLED = salt['pillar.get']('curator:enabled', True) %}
|
|
{% do CURATOROPTIONS.update({'manage_sostatus': True}) %}
|
|
|
|
# don't start the docker container if curator is disabled via pillar
|
|
{% if not ENABLED %}
|
|
{% do CURATOROPTIONS.update({'start': False}) %}
|
|
{% do CURATOROPTIONS.update({'status': 'absent'}) %}
|
|
{% if (TRUECLUSTER and grains.id.split('_')|last == 'searchnode') or (not TRUECLUSTER and grains.id.split('_')|last == 'manager') %}
|
|
{% do CURATOROPTIONS.update({'manage_sostatus': False}) %}
|
|
{% endif %}
|
|
{% else %}
|
|
{% do CURATOROPTIONS.update({'start': True}) %}
|
|
{% do CURATOROPTIONS.update({'status': 'running'}) %}
|
|
{% endif %}
|
|
|
|
{% import_yaml 'curator/defaults.yaml' as CURATORDEFAULTS %}
|
|
{% set CURATORMERGED = salt['pillar.get']('elasticsearch:index_settings', CURATORDEFAULTS.elasticsearch.index_settings, merge=true) %}
|