Merge "support memcache for keystone token backend"
This commit is contained in:
commit
298f7d4843
13
lib/keystone
13
lib/keystone
@ -189,6 +189,8 @@ function configure_keystone() {
|
|||||||
|
|
||||||
if [[ "$KEYSTONE_TOKEN_BACKEND" = "sql" ]]; then
|
if [[ "$KEYSTONE_TOKEN_BACKEND" = "sql" ]]; then
|
||||||
iniset $KEYSTONE_CONF token driver keystone.token.backends.sql.Token
|
iniset $KEYSTONE_CONF token driver keystone.token.backends.sql.Token
|
||||||
|
elif [[ "$KEYSTONE_TOKEN_BACKEND" = "memcache" ]]; then
|
||||||
|
iniset $KEYSTONE_CONF token driver keystone.token.backends.memcache.Token
|
||||||
else
|
else
|
||||||
iniset $KEYSTONE_CONF token driver keystone.token.backends.kvs.Token
|
iniset $KEYSTONE_CONF token driver keystone.token.backends.kvs.Token
|
||||||
fi
|
fi
|
||||||
@ -349,6 +351,17 @@ function install_keystone() {
|
|||||||
if is_service_enabled ldap; then
|
if is_service_enabled ldap; then
|
||||||
install_ldap
|
install_ldap
|
||||||
fi
|
fi
|
||||||
|
if [[ "$KEYSTONE_TOKEN_BACKEND" = "memcache" ]]; then
|
||||||
|
# Install memcached and the memcache Python library that keystone uses.
|
||||||
|
# Unfortunately the Python library goes by different names in the .deb
|
||||||
|
# and .rpm circles.
|
||||||
|
install_package memcached
|
||||||
|
if is_ubuntu; then
|
||||||
|
install_package python-memcache
|
||||||
|
else
|
||||||
|
install_package python-memcached
|
||||||
|
fi
|
||||||
|
fi
|
||||||
git_clone $KEYSTONE_REPO $KEYSTONE_DIR $KEYSTONE_BRANCH
|
git_clone $KEYSTONE_REPO $KEYSTONE_DIR $KEYSTONE_BRANCH
|
||||||
setup_develop $KEYSTONE_DIR
|
setup_develop $KEYSTONE_DIR
|
||||||
if is_apache_enabled_service key; then
|
if is_apache_enabled_service key; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user