have standalone and managersearch pull from redis nodes

This commit is contained in:
m0duspwnens
2021-12-15 15:27:23 -05:00
parent 6ab2bdef0c
commit cf2f4bad09

View File

@@ -2,7 +2,7 @@
{% set REDIS_NODES = [] %}
{% set mainint = salt['pillar.get']('host:mainint') %}
{% set localhostip = salt['grains.get']('ip_interfaces').get(mainint)[0] %}
{% if role in ['so-node'] %}
{% if role in ['so-node', 'so-standalone', 'so-managersearch'] %}
{% set node_data = salt['pillar.get']('logstash:nodes') %}
{% for node_type, node_details in node_data.items() | sort %}
{% if node_type in ['manager', 'managersearch', 'standalone', 'receiver' ] %}