We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7d9e75f + 2188f66 commit 737dadbCopy full SHA for 737dadb
templates/uitpas/api/deployment/service_healthcheck.erb
@@ -2,6 +2,8 @@
2
3
HEALTH_URL="http://localhost:<%= @http_port_base %>/uitid/rest/uitpas/health"
4
CARDSYSTEM_HEALTH_URL="http://localhost:<%= @http_port_base %>/uitid/rest/cardsystem/login"
5
+# If Puppet is running, and possibily a deploy, we skip the health check to avoid false negatives
6
+[ -f /opt/puppetlabs/puppet/cache/state/agent_catalog_run.lock ] && return 0
7
/usr/bin/test $(/usr/bin/curl -s -o /dev/null $HEALTH_URL -w "%{http_code}") -eq 200 || return 1
8
/usr/bin/test $(/usr/bin/curl -s -o /dev/null $CARDSYSTEM_HEALTH_URL -w "%{http_code}") -eq 200
9
0 commit comments