mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
Fix elastic if statement
This commit is contained in:
@@ -189,6 +189,7 @@ so-elasticsearch:
|
|||||||
- user: elasticsearch
|
- user: elasticsearch
|
||||||
- extra_hosts:
|
- extra_hosts:
|
||||||
- "{{ grains.host }}:{{ NODEIP }}"
|
- "{{ grains.host }}:{{ NODEIP }}"
|
||||||
|
{% if salt['pillar.get']('nodestab', {}) %}
|
||||||
{% for SN, SNDATA in salt['pillar.get']('nodestab', {}).items() %}
|
{% for SN, SNDATA in salt['pillar.get']('nodestab', {}).items() %}
|
||||||
- "{{ SN.split('_')|first }}:{{ SNDATA.ip }}"
|
- "{{ SN.split('_')|first }}:{{ SNDATA.ip }}"
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user