mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +01:00
Only enable curator on Manager in true cluster
This commit is contained in:
@@ -4,10 +4,10 @@
|
|||||||
{% do CURATOROPTIONS.update({'manage_sostatus': True}) %}
|
{% do CURATOROPTIONS.update({'manage_sostatus': True}) %}
|
||||||
|
|
||||||
# don't start the docker container if curator is disabled via pillar
|
# don't start the docker container if curator is disabled via pillar
|
||||||
{% if not ENABLED or grains.id.split('_')|last == '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({'start': False}) %}
|
||||||
{% do CURATOROPTIONS.update({'status': 'absent'}) %}
|
{% do CURATOROPTIONS.update({'status': 'absent'}) %}
|
||||||
{% if grains.id.split('_')|last == 'manager' %}
|
{% if (TRUECLUSTER and grains.id.split('_')|last == 'searchnode') or (not TRUECLUSTER and grains.id.split('_')|last == 'manager') %}
|
||||||
{% do CURATOROPTIONS.update({'manage_sostatus': False}) %}
|
{% do CURATOROPTIONS.update({'manage_sostatus': False}) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
@@ -189,6 +189,7 @@ base:
|
|||||||
{%- if KIBANA %}
|
{%- if KIBANA %}
|
||||||
- kibana
|
- kibana
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
- curator
|
||||||
{%- if ELASTALERT %}
|
{%- if ELASTALERT %}
|
||||||
- elastalert
|
- elastalert
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user