create ES_LOGSTASH_NODES which removes heavynodes

This commit is contained in:
m0duspwnens
2023-06-22 09:46:42 -04:00
parent c0a2ea3138
commit 36272efda7
3 changed files with 17 additions and 5 deletions
+1
View File
@@ -8,6 +8,7 @@
{% set LOGSTASH_MERGED = salt['pillar.get']('logstash', LOGSTASH_DEFAULTS.logstash, merge=True) %}
{% set REDIS_NODES = [] %}
{# LOGSTASH_NODES is the same as ES_LOGSTASH_NODES from elasticsearch/config.map.jinja but heavynodes are present #}
{% set LOGSTASH_NODES = [] %}
{% set node_data = salt['pillar.get']('logstash:nodes', {GLOBALS.role.split('-')[1]: {GLOBALS.hostname: {'ip': GLOBALS.node_ip}}}) %}