Merge "Add ironic-api healthcheck"

This commit is contained in:
Jenkins 2017-08-23 14:12:16 +00:00 committed by Gerrit Code Review
commit 75a2e3bde5

7
healthcheck/ironic-api Normal file
View File

@ -0,0 +1,7 @@
#!/bin/sh
. ${HEALTHCHECK_SCRIPTS:-/usr/share/tripleo-common/healthcheck}/common.sh
bind_host=$(get_config_val /etc/ironic/ironic.conf api host_ip 127.0.0.1)
bind_port=$(get_config_val /etc/ironic/ironic.conf api port 6385)
healthcheck_curl http://${bind_host}:${bind_port}/