From 31e0b5c81cc6fc980396d75cf94a68029217459e Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Sun, 11 Oct 2020 11:28:49 -0400 Subject: [PATCH] Add nodes to soc.json --- salt/soc/files/soc/soc.json | 7 +++++++ 1 file changed, 7 insertions(+) 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