This commit is contained in:
vcerenu
2022-05-27 13:36:35 -03:00
parent e0c7194444
commit 54756054bc
+8 -2
View File
@@ -41,7 +41,7 @@ jobs:
- name: Check Wazuh indexer nodes
run: |
nodes="`curl -XGET "https://0.0.0.0:9200/_cat/nodes" -u admin:SecretPassword -k | grep -E "indexer" | wc -l`"
if [[ $nodes -eq 2 ]]; then
if [[ $nodes -eq 1 ]]; then
echo "Cantidad de nodos: ${nodes}"
else
echo "Cantidad de nodos: ${nodes}"
@@ -73,7 +73,13 @@ jobs:
- name: Check Wazuh indexer nodes
run: |
curl -XGET "https://0.0.0.0:9200/_cat/nodes" -u admin:SecretPassword -k | wc -l
nodes="`curl -XGET "https://0.0.0.0:9200/_cat/nodes" -u admin:SecretPassword -k | grep -E "indexer" | wc -l`"
if [[ $nodes -eq 1 ]]; then
echo "Cantidad de nodos: ${nodes}"
else
echo "Cantidad de nodos: ${nodes}"
exit 1
fi
- name: Check Wazuh manager start
run: |