# Set up default directories
#---------------------------

ZAQAR_DIR=$DEST/zaqar
ZAQAR_CONF_DIR=/etc/zaqar
ZAQAR_CONF=$ZAQAR_CONF_DIR/zaqar.conf
ZAQAR_UWSGI_CONF=$ZAQAR_CONF_DIR/uwsgi.conf
ZAQAR_UWSGI=zaqar.transport.wsgi.app:application
ZAQAR_API_LOG_DIR=/var/log/zaqar

# Support potential entry-points console scripts
ZAQAR_BIN_DIR=$(get_python_exec_prefix)

# Set up database backend
ZAQAR_BACKEND=${ZAQAR_BACKEND:-mongodb}

# Set Zaqar repository
ZAQAR_REPO=${ZAQAR_REPO:-${GIT_BASE}/openstack/zaqar.git}
ZAQAR_BRANCH=${ZAQAR_BRANCH:-master}

# Set client library repository
GITREPO["python-zaqarclient"]=${ZAQARCLIENT_REPO:-${GIT_BASE}/openstack/python-zaqarclient.git}
GITBRANCH["python-zaqarclient"]=${ZAQARCLIENT_BRANCH:-master}
GITDIR["python-zaqarclient"]=$DEST/python-zaqarclient

GITREPO["zaqar-tempest-plugin"]=${ZAQARTEMPEST_REPO:-${GIT_BASE}/openstack/zaqar-tempest-plugin.git}
GITBRANCH["zaqar-tempest-plugin"]=${ZAQARTEMPEST_BRANCH:-master}
GITDIR["zaqar-tempest-plugin"]=$DEST/zaqar-tempest-plugin

GITREPO["zaqar-ui"]=${ZAQARUI_REPO:-${GIT_BASE}/openstack/zaqar-ui.git}
GITBRANCH["zaqar-ui"]=${ZAQARUI_BRANCH:-master}
GITDIR["zaqar-ui"]=$DEST/zaqar-ui

# Set Zaqar Connection Info
ZAQAR_SERVICE_HOST=${ZAQAR_SERVICE_HOST:-$SERVICE_HOST}
ZAQAR_WEBSOCKET_PORT=${ZAQAR_WEBSOCKET_PORT:-9000}
ZAQAR_SERVICE_PROTOCOL=${ZAQAR_SERVICE_PROTOCOL:-$SERVICE_PROTOCOL}

# Set Zaqar trust configuration
ZAQAR_TRUSTEE_USER=${ZAQAR_TRUSTEE_USER:-zaqar}
ZAQAR_TRUSTEE_PASSWORD=${ZAQAR_TRUSTEE_PASSWORD:-$SERVICE_PASSWORD}
ZAQAR_TRUSTEE_DOMAIN=${ZAQAR_TRUSTEE_DOMAIN:-default}

enable_service zaqar-websocket zaqar-wsgi
