diff --git a/salt/soc/files/soc/soc.json b/salt/soc/files/soc/soc.json index 2c574616a..1e25c47fa 100644 --- a/salt/soc/files/soc/soc.json +++ b/salt/soc/files/soc/soc.json @@ -24,6 +24,13 @@ }, "elastic": { "hostUrl": "http://{{ MANAGERIP }}:9200", + {%- if salt['pillar.get']('nodestab', {}) %} + "remoteHostUrls": [ + {%- for SN, SNDATA in salt['pillar.get']('nodestab', {}).items() %} + {{ SN.split('_')|first }}{{ "," if not loop.last }} + {%- endfor %} + ], + {%- endif %} "username": "", "password": "", "verifyCert": false