@@ -83,14 +83,10 @@ KEYSTONE_TOKEN_FORMAT=$(echo ${KEYSTONE_TOKEN_FORMAT} | tr '[:upper:]' '[:lower:
8383
8484# Set Keystone interface configuration
8585KEYSTONE_AUTH_HOST=${KEYSTONE_AUTH_HOST:- $SERVICE_HOST }
86- KEYSTONE_AUTH_PORT=${KEYSTONE_AUTH_PORT:- 35357}
87- KEYSTONE_AUTH_PORT_INT=${KEYSTONE_AUTH_PORT_INT:- 35358}
8886KEYSTONE_AUTH_PROTOCOL=${KEYSTONE_AUTH_PROTOCOL:- $SERVICE_PROTOCOL }
8987
9088# Public facing bits
9189KEYSTONE_SERVICE_HOST=${KEYSTONE_SERVICE_HOST:- $SERVICE_HOST }
92- KEYSTONE_SERVICE_PORT=${KEYSTONE_SERVICE_PORT:- 5000}
93- KEYSTONE_SERVICE_PORT_INT=${KEYSTONE_SERVICE_PORT_INT:- 5001}
9490KEYSTONE_SERVICE_PROTOCOL=${KEYSTONE_SERVICE_PROTOCOL:- $SERVICE_PROTOCOL }
9591
9692# Bind hosts
@@ -170,22 +166,14 @@ function _config_keystone_apache_wsgi {
170166 local keystone_ssl=" "
171167 local keystone_certfile=" "
172168 local keystone_keyfile=" "
173- local keystone_service_port=$KEYSTONE_SERVICE_PORT
174- local keystone_auth_port=$KEYSTONE_AUTH_PORT
175169 local venv_path=" "
176170
177- if is_service_enabled tls-proxy; then
178- keystone_service_port=$KEYSTONE_SERVICE_PORT_INT
179- keystone_auth_port=$KEYSTONE_AUTH_PORT_INT
180- fi
181171 if [[ ${USE_VENV} = True ]]; then
182172 venv_path=" python-path=${PROJECT_VENV["keystone"]} /lib/$( python_version) /site-packages"
183173 fi
184174
185175 sudo cp $FILES /apache-keystone.template $keystone_apache_conf
186176 sudo sed -e "
187- s|%PUBLICPORT%|$keystone_service_port |g;
188- s|%ADMINPORT%|$keystone_auth_port |g;
189177 s|%APACHE_NAME%|$APACHE_NAME |g;
190178 s|%SSLLISTEN%|$keystone_ssl_listen |g;
191179 s|%SSLENGINE%|$keystone_ssl |g;
@@ -222,21 +210,8 @@ function configure_keystone {
222210
223211 iniset_rpc_backend keystone $KEYSTONE_CONF oslo_messaging_notifications
224212
225- local service_port=$KEYSTONE_SERVICE_PORT
226- local auth_port=$KEYSTONE_AUTH_PORT
227-
228- if is_service_enabled tls-proxy; then
229- # Set the service ports for a proxy to take the originals
230- service_port=$KEYSTONE_SERVICE_PORT_INT
231- auth_port=$KEYSTONE_AUTH_PORT_INT
232- fi
233-
234213 # Override the endpoints advertised by keystone (the public_endpoint and
235- # admin_endpoint) so that clients use the correct endpoint. By default, the
236- # keystone server uses the public_port and admin_port which isn't going to
237- # work when you want to use a different port (in the case of proxy), or you
238- # don't want the port (in the case of putting keystone on a path in
239- # apache).
214+ # admin_endpoint) so that clients use the correct endpoint.
240215 iniset $KEYSTONE_CONF DEFAULT public_endpoint $KEYSTONE_SERVICE_URI
241216 iniset $KEYSTONE_CONF DEFAULT admin_endpoint $KEYSTONE_AUTH_URI
242217
@@ -270,12 +245,6 @@ function configure_keystone {
270245
271246 iniset $KEYSTONE_CONF credential key_repository " $KEYSTONE_CONF_DIR /credential-keys/"
272247
273- # Configure the project created by the 'keystone-manage bootstrap' as the cloud-admin project.
274- # The users from this project are globally admin as before, but it also
275- # allows policy changes in order to clarify the adminess scope.
276- # iniset $KEYSTONE_CONF resource admin_project_domain_name Default
277- # iniset $KEYSTONE_CONF resource admin_project_name admin
278-
279248 if [[ " $KEYSTONE_SECURITY_COMPLIANCE_ENABLED " = True ]]; then
280249 iniset $KEYSTONE_CONF security_compliance lockout_failure_attempts $KEYSTONE_LOCKOUT_FAILURE_ATTEMPTS
281250 iniset $KEYSTONE_CONF security_compliance lockout_duration $KEYSTONE_LOCKOUT_DURATION
@@ -510,14 +479,6 @@ function install_keystone {
510479
511480# start_keystone() - Start running processes
512481function start_keystone {
513- # Get right service port for testing
514- local service_port=$KEYSTONE_SERVICE_PORT
515- local auth_protocol=$KEYSTONE_AUTH_PROTOCOL
516- if is_service_enabled tls-proxy; then
517- service_port=$KEYSTONE_SERVICE_PORT_INT
518- auth_protocol=" http"
519- fi
520-
521482 if [ " $KEYSTONE_DEPLOY " == " mod_wsgi" ]; then
522483 enable_apache_site keystone
523484 restart_apache_server
@@ -526,23 +487,13 @@ function start_keystone {
526487 fi
527488
528489 echo " Waiting for keystone to start..."
529- # Check that the keystone service is running. Even if the tls tunnel
530- # should be enabled, make sure the internal port is checked using
531- # unencryted traffic at this point.
532- # If running in Apache, use the path rather than port.
533-
490+ # Check that the keystone service is running.
534491 local service_uri=$auth_protocol ://$KEYSTONE_SERVICE_HOST /identity/v$IDENTITY_API_VERSION /
535492
536493 if ! wait_for_service $SERVICE_TIMEOUT $service_uri ; then
537494 die $LINENO " keystone did not start"
538495 fi
539496
540- # Start proxies if enabled
541- if is_service_enabled tls-proxy; then
542- start_tls_proxy keystone-service ' *' $KEYSTONE_SERVICE_PORT $KEYSTONE_SERVICE_HOST $KEYSTONE_SERVICE_PORT_INT
543- start_tls_proxy keystone-auth ' *' $KEYSTONE_AUTH_PORT $KEYSTONE_AUTH_HOST $KEYSTONE_AUTH_PORT_INT
544- fi
545-
546497 # (re)start memcached to make sure we have a clean memcache.
547498 restart_service memcached
548499}
@@ -561,11 +512,9 @@ function stop_keystone {
561512# This function uses the following GLOBAL variables:
562513# - ``KEYSTONE_BIN_DIR``
563514# - ``ADMIN_PASSWORD``
564- # - ``IDENTITY_API_VERSION ``
515+ # - ``KEYSTONE_AUTH_URI ``
565516# - ``REGION_NAME``
566- # - ``KEYSTONE_SERVICE_PROTOCOL``
567- # - ``KEYSTONE_SERVICE_HOST``
568- # - ``KEYSTONE_SERVICE_PORT``
517+ # - ``KEYSTONE_SERVICE_URI``
569518function bootstrap_keystone {
570519 $KEYSTONE_BIN_DIR /keystone-manage bootstrap \
571520 --bootstrap-username admin \
0 commit comments