Add service type to keystone authtoken middleware
Configuring devstack's configure_keystone_authtoken_middleware to set service_type as an additional option. Needed-By: https://review.opendev.org/c/openstack/barbican/+/958845 Needed-By: https://review.opendev.org/c/openstack/manila/+/955393 Change-Id: I140c8392465965d68f52489b5e5bf3e47ae979be Signed-off-by: Saikumar Pulluri <saikumar1016@gmail.com>
This commit is contained in:
@@ -432,6 +432,7 @@ function configure_keystone_authtoken_middleware {
|
|||||||
local conf_file=$1
|
local conf_file=$1
|
||||||
local admin_user=$2
|
local admin_user=$2
|
||||||
local section=${3:-keystone_authtoken}
|
local section=${3:-keystone_authtoken}
|
||||||
|
local service_type=$4
|
||||||
|
|
||||||
iniset $conf_file $section auth_type password
|
iniset $conf_file $section auth_type password
|
||||||
iniset $conf_file $section interface public
|
iniset $conf_file $section interface public
|
||||||
@@ -444,6 +445,9 @@ function configure_keystone_authtoken_middleware {
|
|||||||
|
|
||||||
iniset $conf_file $section cafile $SSL_BUNDLE_FILE
|
iniset $conf_file $section cafile $SSL_BUNDLE_FILE
|
||||||
iniset $conf_file $section memcached_servers $MEMCACHE_SERVERS
|
iniset $conf_file $section memcached_servers $MEMCACHE_SERVERS
|
||||||
|
if [[ -n "$service_type" ]]; then
|
||||||
|
iniset $conf_file $section service_type $service_type
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# configure_auth_token_middleware conf_file admin_user IGNORED [section]
|
# configure_auth_token_middleware conf_file admin_user IGNORED [section]
|
||||||
|
|||||||
Reference in New Issue
Block a user