diff --git a/salt/soc/init.sls b/salt/soc/init.sls index a4f99d92d..012dae330 100644 --- a/salt/soc/init.sls +++ b/salt/soc/init.sls @@ -56,8 +56,8 @@ so-soc: - /opt/so/conf/soc/soc.json:/opt/sensoroni/sensoroni.json:ro - /opt/so/conf/soc/changes.json:/opt/sensoroni/html/changes.json:ro - /opt/so/log/soc/:/opt/sensoroni/logs/:rw - - extra_hosts: {%- if salt['pillar.get']('nodestab', {}) %} + - extra_hosts: {%- for SN, SNDATA in salt['pillar.get']('nodestab', {}).items() %} - {{ SN.split('_')|first }}:{{ SNDATA.ip }} {%- endfor %} @@ -125,4 +125,4 @@ soc_state_not_allowed: test.fail_without_changes: - name: soc_state_not_allowed -{% endif %} \ No newline at end of file +{% endif %}