Only enable curator on Manager in true cluster

This commit is contained in:
Mike Reeves committed 2021-08-31 15:51:34 -04:00
1 parent dc25ed2594
commit c12f380bc3
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -4,10 +4,10 @@
{% do CURATOROPTIONS.update({'manage_sostatus': True}) %}
# 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({'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}) %}
{% endif %}
{% else %}
+1
View File
@@ -189,6 +189,7 @@ base:
{%- if KIBANA %}
- kibana
{%- endif %}
- curator
{%- if ELASTALERT %}
- elastalert
{%- endif %}