Make capability_scope configurable in devstack

This allows us to tune the capability_scope of kuryr between 'local'
and 'global'.

Change-Id: I78e283cd4207f90e1a2164a0831712d574fb922c
This commit is contained in:
Hongbin Lu 2017-08-31 18:05:33 -04:00
parent 2490c368e3
commit c5684a803e
2 changed files with 3 additions and 1 deletions

View File

@ -55,10 +55,10 @@ function configure_kuryr {
create_kuryr_cache_dir
# Neutron API server & Neutron plugin
if is_service_enabled kuryr-libnetwork; then
configure_auth_token_middleware "$KURYR_CONFIG" kuryr \
"$KURYR_AUTH_CACHE_DIR" neutron
iniset $KURYR_CONFIG DEFAULT capability_scope $KURYR_CAPABILITY_SCOPE
fi
if [[ "$ENABLE_PLUGINV2" == "True" ]]; then

View File

@ -19,6 +19,8 @@ KURYR_BIN_DIR=$(get_python_exec_prefix)
KURYR_POOL_PREFIX=${KURYR_POOL_PREFIX:-10.10.0.0/16}
KURYR_POOL_PREFIX_LEN=${KURYR_POOL_PREFIX_LEN:-24}
KURYR_CAPABILITY_SCOPE=${KURYR_CAPABILITY_SCOPE:-local}
KURYR_DOCKER_ENGINE_PORT=${KURYR_DOCKER_ENGINE_PORT:-2375}
DOCKER_CLUSTER_STORE=${DOCKER_CLUSTER_STORE:-etcd://$SERVICE_HOST:$ETCD_PORT}