Browse code

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

Dean Troyer authored on 2013/06/28 23:16:08
Showing 1 changed files
... ...
@@ -119,6 +119,10 @@ function configure_keystone() {
119 119
         iniset $KEYSTONE_CONF identity driver "keystone.identity.backends.ldap.Identity"
120 120
     fi
121 121
 
122
+    # Set the URL advertised in the ``versions`` structure returned by the '/' route
123
+    iniset $KEYSTONE_CONF DEFAULT public_endpoint "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:%(public_port)s/"
124
+    iniset $KEYSTONE_CONF DEFAULT admin_endpoint "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:%(admin_port)s/"
125
+
122 126
     if is_service_enabled tls-proxy; then
123 127
         # Set the service ports for a proxy to take the originals
124 128
         iniset $KEYSTONE_CONF DEFAULT public_port $KEYSTONE_SERVICE_PORT_INT