karbor/devstack/settings
zengchen cc5931e7e4 Authentication fails by keystonemiddleware
In order to make the access to Smaug by APIs pass througth the
authentication of keystonemiddleware, I add a function named
"create_smaug_accounts" in the plugin.sh, which will create an
account in Keystone.

There are 4 steps in "create_smaug_accounts":
1. create a user "smaug".
2. bind the user with the project "service" and grant the role
   "service" to the user.
3. create a service "smaug".
4. create an endpoint of service.

Closes-Bug: #1526638
Change-Id:  I7644e568a8912f48e54b15cf897afe67a81c2e4a
2015-12-21 16:31:59 +08:00

21 lines
630 B
Plaintext

# Git information
SMAUG_REPO=${SMAUG_REPO:-https://git.openstack.org/cgit/openstack/smaug/}
SMAUG_DIR=$DEST/smaug
SMAUG_BRANCH=${SMAUG_BRANCH:-master}
# common variables
SMAUG_CONF_DIR=${SMAUG_CONF_DIR:-/etc/smaug}
# smaug rest api
SMAUG_API=$SMAUG_DIR/smaug/cmd/api.py
SMAUG_API_CONF=$SMAUG_CONF_DIR/smaug.conf
SMAUG_API_LISTEN_ADDRESS=${SMAUG_API_LISTEN_ADDRESS:-0.0.0.0}
SMAUG_API_HOST=${SMAUG_API_HOST:-$SERVICE_HOST}
SMAUG_API_PORT=${SMAUG_API_PORT:-8799}
SMAUG_API_PROTOCOL=${SMAUG_API_PROTOCOL:-$SERVICE_PROTOCOL}
SMAUG_AUTH_CACHE_DIR=${SMAUG_AUTH_CACHE_DIR:-/var/cache/smaug}
export PYTHONPATH=$PYTHONPATH:$SMAUG_DIR