Changes in python packaging tooling mean that the wsgi_scripts functionality via PBR may not longer function. This patch switches blazar from using the PBR wsgi_scripts method to using a new wsgi module that provides the same behavior as the generated wsgi scripts provided. A related devstack patch enables devstack to setup uWSGI to use the new module path instead of the generated wsgi scripts. For more details see the proposed OpenStack goal [1]. [1] https://review.opendev.org/c/openstack/governance/+/902807 Change-Id: Ib16d5d1ea5d7416d7b1f026f771d6c2b77657970
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
# Defaults
|
|
# --------
|
|
|
|
#enable manager service
|
|
enable_service blazar-m
|
|
|
|
#enable api service
|
|
enable_service blazar-a
|
|
|
|
BLAZAR_DEBUG=${BLAZAR_DEBUG:-True}
|
|
BLAZAR_USER_NAME=${BLAZAR_USER_NAME:-blazar}
|
|
|
|
# Set up default repos
|
|
BLAZAR_REPO=${BLAZAR_REPO:-${GIT_BASE}/openstack/blazar.git}
|
|
BLAZAR_BRANCH=${BLAZAR_BRANCH:-master}
|
|
BLAZARCLIENT_REPO=${BLAZARCLIENT_REPO:-${GIT_BASE}/openstack/python-blazarclient.git}
|
|
BLAZARCLIENT_BRANCH=${BLAZARCLIENT_BRANCH:-master}
|
|
BLAZARNOVA_REPO=${BLAZARNOVA_REPO:-${GIT_BASE}/openstack/blazar-nova.git}
|
|
BLAZARNOVA_BRANCH=${BLAZARNOVA_BRANCH:-master}
|
|
BLAZAR_DASHBOARD_REPO=${BLAZAR_DASHBOARD_REPO:-${GIT_BASE}/openstack/blazar-dashboard.git}
|
|
BLAZAR_DASHBOARD_BRANCH=${BLAZAR_DASHBOARD_BRANCH:-master}
|
|
|
|
# Set up default directories
|
|
BLAZAR_DIR=$DEST/blazar
|
|
BLAZAR_CONF_DIR=${BLAZAR_CONF_DIR:-/etc/blazar}
|
|
BLAZAR_CONF_FILE=$BLAZAR_CONF_DIR/blazar.conf
|
|
BLAZARCLIENT_DIR=$DEST/python-blazarclient
|
|
BLAZARNOVA_DIR=$DEST/blazar-nova
|
|
BLAZAR_DASHBOARD_DIR=$DEST/blazar-dashboard
|
|
|
|
# wsgi deployment
|
|
BLAZAR_USE_MOD_WSGI=${BLAZAR_USE_MOD_WSGI:-True}
|
|
BLAZAR_BIN_DIR=$(get_python_exec_prefix)
|
|
BLAZAR_UWSGI=blazar.wsgi.api:application
|
|
BLAZAR_UWSGI_CONF=$BLAZAR_CONF_DIR/blazar-api-uwsgi.ini
|
|
|
|
BLAZAR_SERVICE_HOST=${BLAZAR_SERVICE_HOST:-$SERVICE_HOST}
|
|
BLAZAR_SERVICE_PORT=${BLAZAR_SERVICE_PORT:-1234}
|
|
BLAZAR_SERVICE_PROTOCOL=${BLAZAR_SERVICE_PROTOCOL:-$SERVICE_PROTOCOL}
|
|
|
|
# Blazar specific configurations
|
|
BLAZAR_IDENTITY_SERVICE_NAME=${BLAZAR_IDENTITY_SERVICE_NAME:-"identity"}
|
|
BLAZAR_FREEPOOL_NAME=${BLAZAR_FREEPOOL_NAME:-freepool}
|