update the dict

This commit is contained in:
m0duspwnens
2021-09-15 15:24:40 -04:00
parent 1614b70853
commit c213834316

View File

@@ -13,7 +13,7 @@
{% do ESCONFIG.elasticsearch.cluster_settings.cluster.update({'name': salt['pillar.get']('elasticsearch:true_cluster_name')}) %} {# this is temporary #}
{% if grains.id.split('_') | last in ['manager','managersearch'] %}
{% if salt['pillar.get']('nodestab', {}) %}
{% do ESCONFIG.elasticsearch.cluster_settings.node.roles.extend(['master', 'data', 'remote_cluster_client']) %}
{% do ESCONFIG.elasticsearch.cluster_settings.node.update('roles': ['master', 'data', 'remote_cluster_client']) %}
{% do ESCONFIG.elasticsearch.cluster_settings.discovery.seed_hosts.append(grains.master) %}
{% for SN, SNDATA in salt['pillar.get']('nodestab', {}).items() %}
{% do ESCONFIG.elasticsearch.cluster_settings.discovery.seed_hosts.append(SN.split('_')|first) %}
@@ -23,7 +23,7 @@
{% do ESCONFIG.elasticsearch.cluster_settings.node.attr.update({'box_type': 'hot'}) %}
{% endif %}
{% else %}
{% do ESCONFIG.elasticsearch.cluster_settings.node.roles.extend(['data', 'ingest']) %}
{% do ESCONFIG.elasticsearch.cluster_settings.node.update('roles': ['data', 'ingest']) %}
{% do ESCONFIG.elasticsearch.cluster_settings.node.attr.update({'box_type': 'hot'}) %}
{% do ESCONFIG.elasticsearch.cluster_settings.discovery.seed_hosts.append(grains.master) %}
{% endif %}