Update certificate configuration to use separate IP and DNS fields for proper certificate generation

This commit is contained in:
Jesus Garcia
2026-03-17 09:04:47 -05:00
parent d63219473c
commit dc0ea4d8f9
4 changed files with 23 additions and 22 deletions
+11 -11
View File
@@ -133,18 +133,18 @@ jobs:
# Wazuh indexer server nodes
indexer:
- name: wazuh.indexer
ip: wazuh.indexer
dns: "wazuh.indexer"
# Wazuh manager nodes
# Use node_type only with more than one Wazuh manager
manager:
- name: wazuh.manager
ip: wazuh.manager
dns: "wazuh.manager"
# Wazuh dashboard node
dashboard:
- name: wazuh.dashboard
ip: wazuh.dashboard
dns: "wazuh.dashboard"
EOF
cat config.yml
bash ./wazuh-certs-tool.sh -A
@@ -253,7 +253,7 @@ jobs:
run: |
for i in {1..20}; do
echo "Checking Wazuh dashboard (Attempt $i/20)"
STATUS=$(curl -k -s -o /dev/null -w "%{http_code}" -u ${{ env.INDEXER_USERNAME }}:${{ env.INDEXER_PASSWORD }} "https://127.0.0.1:443/app/status")
STATUS=$(curl -k -s -o /dev/null -w "%{http_code}" -u ${{ env.INDEXER_USERNAME }}:${{ env.INDEXER_PASSWORD }} "https://127.0.0.1:443/app/status" || true)
echo "Current status: $STATUS"
if [[ "$STATUS" == "200" ]]; then
echo "Wazuh dashboard is UP"
@@ -406,26 +406,26 @@ jobs:
# Wazuh indexer server nodes
indexer:
- name: wazuh1.indexer
ip: wazuh1.indexer
dns: "wazuh1.indexer"
- name: wazuh2.indexer
ip: wazuh2.indexer
dns: "wazuh2.indexer"
- name: wazuh3.indexer
ip: wazuh3.indexer
dns: "wazuh3.indexer"
# Wazuh manager nodes
# Use node_type only with more than one Wazuh manager
manager:
- name: wazuh.master
ip: wazuh.master
dns: "wazuh.master"
node_type: master
- name: wazuh.worker
ip: wazuh.worker
dns: "wazuh.worker"
node_type: worker
# Wazuh dashboard node
dashboard:
- name: wazuh.dashboard
ip: wazuh.dashboard
dns: "wazuh.dashboard"
EOF
cat config.yml
bash ./wazuh-certs-tool.sh -A
@@ -542,7 +542,7 @@ jobs:
run: |
for i in {1..20}; do
echo "Checking Wazuh dashboard (Attempt $i/20)"
STATUS=$(curl -k -s -o /dev/null -w "%{http_code}" -u ${{ env.INDEXER_USERNAME }}:${{ env.INDEXER_PASSWORD }} "https://127.0.0.1:443/app/status")
STATUS=$(curl -k -s -o /dev/null -w "%{http_code}" -u ${{ env.INDEXER_USERNAME }}:${{ env.INDEXER_PASSWORD }} "https://127.0.0.1:443/app/status" || true)
echo "Current status: $STATUS"
if [[ "$STATUS" == "200" ]]; then
echo "Wazuh dashboard is UP"