mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
just dont run curator on manager
This commit is contained in:
@@ -3,13 +3,10 @@
|
|||||||
{% set TRUECLUSTER = salt['pillar.get']('elasticsearch:true_cluster', False) %}
|
{% set TRUECLUSTER = salt['pillar.get']('elasticsearch:true_cluster', False) %}
|
||||||
{% do CURATOROPTIONS.update({'manage_sostatus': True}) %}
|
{% do CURATOROPTIONS.update({'manage_sostatus': True}) %}
|
||||||
|
|
||||||
# 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
|
# don't start the docker container if curator is disabled via pillar
|
||||||
{% if not ENABLED or (TRUECLUSTER and grains.id.split('_')|last == 'searchnode') or (not TRUECLUSTER and grains.id.split('_')|last == 'manager') %}
|
{% if not ENABLED %}
|
||||||
{% do CURATOROPTIONS.update({'start': False}) %}
|
{% do CURATOROPTIONS.update({'start': False}) %}
|
||||||
{% do CURATOROPTIONS.update({'status': 'absent'}) %}
|
{% 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 %}
|
{% else %}
|
||||||
{% do CURATOROPTIONS.update({'start': True}) %}
|
{% do CURATOROPTIONS.update({'start': True}) %}
|
||||||
{% do CURATOROPTIONS.update({'status': 'running'}) %}
|
{% do CURATOROPTIONS.update({'status': 'running'}) %}
|
||||||
|
|||||||
@@ -189,7 +189,6 @@ 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