Fix elastic if statement

This commit is contained in:
TOoSmOotH
2020-12-09 11:31:22 -05:00
parent 6ceecbd524
commit e983322a18

View File

@@ -189,6 +189,7 @@ so-elasticsearch:
- user: elasticsearch
- extra_hosts:
- "{{ grains.host }}:{{ NODEIP }}"
{% if salt['pillar.get']('nodestab', {}) %}
{% for SN, SNDATA in salt['pillar.get']('nodestab', {}).items() %}
- "{{ SN.split('_')|first }}:{{ SNDATA.ip }}"
{% endfor %}