mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
13 lines
709 B
Django/Jinja
13 lines
709 B
Django/Jinja
{% set CURATOROPTIONS = {} %}
|
|
{% set ENABLED = salt['pillar.get']('curator:enabled', True) %}
|
|
{% set TRUECLUSTER = salt['pillar.get']('elasticsearch:true_cluster', False) %}
|
|
|
|
# don't start the docker container if searchnode and true clustering is enabled or curator disabled via pillar or true cluster not enabled and manager
|
|
{% if not ENABLED or (TRUECLUSTER and grains.id.split('_')|last == 'searchnode') or (not TRUECLUSTER and grains.id.split('_')|last == 'manager') %}
|
|
{% do CURATOROPTIONS.update({'start': False}) %}
|
|
{% do CURATOROPTIONS.update({'status': 'absent'}) %}
|
|
{% else %}
|
|
{% do CURATOROPTIONS.update({'start': True}) %}
|
|
{% do CURATOROPTIONS.update({'status': 'running'}) %}
|
|
{% endif %}
|