#!/bin/sh set -e #PKGOS-INCLUDE# if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then . /usr/share/debconf/confmodule . /usr/share/dbconfig-common/dpkg/postinst db_get octavia/configure_api-endpoint if [ "${RET}" = "true" ] ; then pkgos_register_endpoint_postinst octavia octavia load-balancer "Octavia Load Balancing Service" 9876 "" db_get octavia/api-endpoint-address BIND_HOST=${RET} pkgos_inifile set /etc/octavia/octavia.conf api_settings bind_host ${BIND_HOST} else echo "Will not register octavia endpoint this time (no user request for it)." fi # For security reasons, we don't keep the auth-token in the debconf # memory, so we purge it with db_unregister. db_unregister octavia/api-keystone-admin-password || true db_stop fi #DEBHELPER# exit 0