
Fix tabs<->spaces and other bashate complains Change mode to +x to scripts missing it Force shell to be /bin/bash for compatibility Change-Id: Ied5979f2d886c15b273956a9828d9e0484368bab Signed-off-by: Pablo Iranzo Gómez <Pablo.Iranzo@gmail.com>
15 lines
482 B
Bash
Executable File
15 lines
482 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
|
|
|
|
|
if ps -e | grep --quiet nova-api-metada; then
|
|
bind_host=$(get_config_val /etc/nova/nova.conf DEFAULT metadata_listen 127.0.0.1)
|
|
bind_port=$(get_config_val /etc/nova/nova.conf DEFAULT metadata_listen_port 8775)
|
|
check_url="http://${bind_host}:${bind_port}/"
|
|
else
|
|
check_url=$(get_url_from_vhost /etc/httpd/conf.d/10-nova_api_wsgi.conf)
|
|
fi
|
|
|
|
healthcheck_curl ${check_url}
|