From 34c5df1ef974f1b25923ef3f21fb6db7e3d8c64e Mon Sep 17 00:00:00 2001 From: Derek Higgins Date: Fri, 4 Aug 2017 12:37:13 +0100 Subject: [PATCH] Add ironic-api healthcheck Change-Id: Icbd69fd0f74397917bad3da097622e157d8e55b5 --- healthcheck/ironic-api | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 healthcheck/ironic-api diff --git a/healthcheck/ironic-api b/healthcheck/ironic-api new file mode 100644 index 000000000..4d4afadfc --- /dev/null +++ b/healthcheck/ironic-api @@ -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}/