From 245a431374183639962f1245002b4d19ccc54ec0 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Fri, 28 Jun 2013 09:16:08 -0500 Subject: [PATCH] Set the correct URLs in the version return data The URLs advertised in the data returned by keystone's '/' route default to localhost and is not usable from off-host. Not that anything in DevStack uses it (yet). Change-Id: I049789f568eff48c1abb0678c3ac0ae8a8960c64 --- lib/keystone | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/keystone b/lib/keystone index 2edd137dbb..d07b34f797 100644 --- a/lib/keystone +++ b/lib/keystone @@ -119,6 +119,10 @@ function configure_keystone() { iniset $KEYSTONE_CONF identity driver "keystone.identity.backends.ldap.Identity" fi + # Set the URL advertised in the ``versions`` structure returned by the '/' route + iniset $KEYSTONE_CONF DEFAULT public_endpoint "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:%(public_port)s/" + iniset $KEYSTONE_CONF DEFAULT admin_endpoint "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:%(admin_port)s/" + if is_service_enabled tls-proxy; then # Set the service ports for a proxy to take the originals iniset $KEYSTONE_CONF DEFAULT public_port $KEYSTONE_SERVICE_PORT_INT