diff --git a/.woodpecker.yml b/.woodpecker.yml index 23f4061..b977b82 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -94,7 +94,7 @@ steps: ANSIBLE_CONFIG: ansible.cfg SSH_PRIVATE_KEY: from_secret: SSH_PRIVATE_KEY - GITOPS_STATUS_SERVER_URL: http://gitops-status-server.observability-stack.svc.cluster.local:80 + GITOPS_STATUS_SERVER_URL: http://gitops-status-server.observability-stack.svc.cluster.local:5000 REPO_NAME: rsyslog SERVER_NAME: rsyslog-lab # Optimize Ansible for container environment diff --git a/update-gitops-status.sh b/update-gitops-status.sh index 013c632..961e111 100644 --- a/update-gitops-status.sh +++ b/update-gitops-status.sh @@ -303,12 +303,12 @@ if [ "$HTTP_CODE" -ge 200 ] && [ "$HTTP_CODE" -lt 300 ]; then echo " Verifying JSON storage on gitops-status-server..." sleep 1 # Brief delay to ensure server processed the POST - VERIFY_JSON=$(curl -s "$GITOPS_STATUS_SERVER_URL/status.json" 2>&1 || true) + VERIFY_JSON=$(curl -s "$GITOPS_STATUS_SERVER_URL/api/status" 2>&1 || true) if echo "$VERIFY_JSON" | grep -q "\"repo\".*\"$REPO_NAME\""; then echo " ✓ Verified: Latest JSON stored correctly on server" echo "" echo " Grafana Infinity datasource will now read the updated JSON from:" - echo " $GITOPS_STATUS_SERVER_URL/status.json" + echo " $GITOPS_STATUS_SERVER_URL/api/status" else echo " ⚠ Warning: Could not verify JSON storage" echo " Response from /status.json:"