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