Skip to content

Commit e86b91b

Browse files
author
Brant Knudson
committed
Reference keystone URIs rather than building URI
lib/keystone sets KEYSTONE_AUTH_URI and KEYSTONE_SERVICE_URI that other projects should use rather than building the URL themselves. This will allow us to more easily drop the port altogether. Change-Id: I7467aae680215f3045d32a088af2187e1eba8169
1 parent 841fdaf commit e86b91b

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

lib/horizon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function configure_horizon {
9696
_horizon_config_set $local_settings "" OPENSTACK_HOST \"${KEYSTONE_SERVICE_HOST}\"
9797

9898
_horizon_config_set $local_settings "" OPENSTACK_API_VERSIONS {\"identity\":3}
99-
_horizon_config_set $local_settings "" OPENSTACK_KEYSTONE_URL "\"${KEYSTONE_SERVICE_PROTOCOL}://${KEYSTONE_SERVICE_HOST}:${KEYSTONE_SERVICE_PORT}/v3\""
99+
_horizon_config_set $local_settings "" OPENSTACK_KEYSTONE_URL "\"${KEYSTONE_SERVICE_URI}/v3\""
100100

101101
if [ -f $SSL_BUNDLE_FILE ]; then
102102
_horizon_config_set $local_settings "" OPENSTACK_SSL_CACERT \"${SSL_BUNDLE_FILE}\"

lib/neutron-legacy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ function configure_neutron {
456456
function create_nova_conf_neutron {
457457
iniset $NOVA_CONF DEFAULT use_neutron True
458458
iniset $NOVA_CONF neutron auth_type "password"
459-
iniset $NOVA_CONF neutron auth_url "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_AUTH_PORT/v3"
459+
iniset $NOVA_CONF neutron auth_url "$KEYSTONE_AUTH_URI/v3"
460460
iniset $NOVA_CONF neutron username "$Q_ADMIN_USERNAME"
461461
iniset $NOVA_CONF neutron password "$SERVICE_PASSWORD"
462462
iniset $NOVA_CONF neutron user_domain_name "$SERVICE_DOMAIN_NAME"

lib/swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,7 @@ function configure_swift {
457457
cat <<EOF >>${SWIFT_CONFIG_PROXY_SERVER}
458458
[filter:s3token]
459459
paste.filter_factory = keystonemiddleware.s3_token:filter_factory
460-
auth_port = ${KEYSTONE_AUTH_PORT}
461-
auth_host = ${KEYSTONE_AUTH_HOST}
462-
auth_protocol = ${KEYSTONE_AUTH_PROTOCOL}
460+
auth_uri = ${KEYSTONE_AUTH_URI}
463461
cafile = ${SSL_BUNDLE_FILE}
464462
admin_user = swift
465463
admin_tenant_name = ${SERVICE_PROJECT_NAME}

0 commit comments

Comments
 (0)