Updated multi node deployment

This commit is contained in:
Carlos Bordon
2025-12-09 18:08:41 -03:00
parent a5e5b82c28
commit d58fc84a2b
5 changed files with 69 additions and 37 deletions
@@ -188,7 +188,8 @@ if [[ -n "$WAZUH_INDEXER_HOSTS" ]]; then
TMP_HOSTS=$(mktemp)
{
echo " <hosts>"
for NODE in $WAZUH_INDEXER_HOSTS; do
IFS=',' read -ra NODES <<< "$WAZUH_INDEXER_HOSTS"
for NODE in "${NODES[@]}"; do
IP="${NODE%:*}"
PORT="${NODE#*:}"
echo " <host>https://$IP:$PORT</host>"