no box type more manager in true cluster

This commit is contained in:
m0duspwnens
2021-09-16 09:15:24 -04:00
parent 782b01e76f
commit 889d235c45

View File

@@ -19,8 +19,8 @@
{% do ESCONFIG.elasticsearch.cluster_settings.discovery.seed_hosts.append(SN.split('_')|first) %}
{% endfor %}
{% endif %}
{% if grains.id.split('_') | last == 'managersearch' %}
{% do ESCONFIG.elasticsearch.cluster_settings.node.attr.update({'box_type': 'hot'}) %}
{% if grains.id.split('_') | last == 'manager' %}
{% do ESCONFIG.elasticsearch.cluster_settings.node.attr.update({'box_type': ''}) %}
{% endif %}
{% else %}
{% do ESCONFIG.elasticsearch.cluster_settings.node.update({'roles': ['data', 'ingest']}) %}