Browse code

Merge "Specify HTTPS URLs to fix tls-proxy mode"

Jenkins authored on 2016/01/02 22:23:13
Showing 3 changed files
... ...
@@ -305,6 +305,8 @@ function configure_cinder {
305 305
     if is_service_enabled tls-proxy; then
306 306
         # Set the service port for a proxy to take the original
307 307
         iniset $CINDER_CONF DEFAULT osapi_volume_listen_port $CINDER_SERVICE_PORT_INT
308
+
309
+        iniset $CINDER_CONF DEFAULT public_endpoint $CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST:$CINDER_SERVICE_PORT
308 310
     fi
309 311
 
310 312
     if [ "$SYSLOG" != "False" ]; then
... ...
@@ -169,6 +169,9 @@ function configure_glance {
169 169
         iniset $GLANCE_API_CONF DEFAULT bind_port $GLANCE_SERVICE_PORT_INT
170 170
         iniset $GLANCE_API_CONF DEFAULT public_endpoint $GLANCE_SERVICE_PROTOCOL://$GLANCE_HOSTPORT
171 171
         iniset $GLANCE_REGISTRY_CONF DEFAULT bind_port $GLANCE_REGISTRY_PORT_INT
172
+
173
+        iniset $GLANCE_API_CONF keystone_authtoken identity_uri $KEYSTONE_AUTH_URI
174
+        iniset $GLANCE_REGISTRY_CONF keystone_authtoken identity_uri $KEYSTONE_AUTH_URI
172 175
     fi
173 176
 
174 177
     # Register SSL certificates if provided
... ...
@@ -225,6 +225,9 @@ function configure_keystone {
225 225
         # Set the service ports for a proxy to take the originals
226 226
         iniset $KEYSTONE_CONF eventlet_server public_port $KEYSTONE_SERVICE_PORT_INT
227 227
         iniset $KEYSTONE_CONF eventlet_server admin_port $KEYSTONE_AUTH_PORT_INT
228
+
229
+        iniset $KEYSTONE_CONF DEFAULT public_endpoint $KEYSTONE_SERVICE_URI
230
+        iniset $KEYSTONE_CONF DEFAULT admin_endpoint $KEYSTONE_AUTH_URI
228 231
     fi
229 232
 
230 233
     iniset $KEYSTONE_CONF DEFAULT admin_token "$SERVICE_TOKEN"