Fix first attempts of cluster initialization

This commit is contained in:
Victor Carlos Erenu
2025-12-24 00:20:02 +07:00
parent 9762d6a82a
commit 73c8b33bcd
+2 -2
View File
@@ -149,7 +149,7 @@ jobs:
run: |
for i in {1..10}; do
echo "Checking Wazuh indexer health (Attempt $i/10)"
RESPONSE=$(curl -XGET "https://0.0.0.0:9200/_cluster/health?pretty" -u admin:admin -k -s)
RESPONSE=$(curl -XGET "https://0.0.0.0:9200/_cluster/health?pretty" -u admin:admin -k -s --retry 2 || true)
if echo "$RESPONSE" | grep -qE "green|yellow"; then
echo "Cluster Online"
@@ -351,7 +351,7 @@ jobs:
run: |
for i in {1..10}; do
echo "Checking Wazuh indexer health (Attempt $i/10)"
RESPONSE=$(curl -XGET "https://0.0.0.0:9200/_cluster/health?pretty" -u admin:admin -k -s)
RESPONSE=$(curl -XGET "https://0.0.0.0:9200/_cluster/health?pretty" -u admin:admin -k -s --retry 2 || true)
if echo "$RESPONSE" | grep -qE "green|yellow"; then
echo "Cluster Online"