diff --git a/healthcheck/barbican-api b/healthcheck/barbican-api new file mode 100755 index 000000000..d89d2069b --- /dev/null +++ b/healthcheck/barbican-api @@ -0,0 +1,6 @@ +#!/bin/sh + +. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh + +check_url=$(get_url_from_vhost /etc/httpd/conf.d/10-barbican_wsgi_main.conf) +healthcheck_curl ${check_url} diff --git a/healthcheck/barbican-keystone-listener b/healthcheck/barbican-keystone-listener new file mode 100755 index 000000000..bbb6553a7 --- /dev/null +++ b/healthcheck/barbican-keystone-listener @@ -0,0 +1,14 @@ +#!/bin/bash + +. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh + +process='barbican-keystone-listener' +args="${@:-5671 5672}" + +if healthcheck_port $process $args; then + exit 0 +else + ports=${args// /,} + echo "There is no $process process with opened RabbitMQ ports ($ports) running in the container" + exit 1 +fi diff --git a/healthcheck/barbican-worker b/healthcheck/barbican-worker new file mode 100755 index 000000000..62e9e4dee --- /dev/null +++ b/healthcheck/barbican-worker @@ -0,0 +1,14 @@ +#!/bin/bash + +. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh + +process='barbican-worker' +args="${@:-5671 5672}" + +if healthcheck_port $process $args; then + exit 0 +else + ports=${args// /,} + echo "There is no $process process with opened RabbitMQ ports ($ports) running in the container" + exit 1 +fi