From a5d965a3d7c558239d770428e1dd815943a8d887 Mon Sep 17 00:00:00 2001 From: Patrick East Date: Wed, 3 Aug 2016 14:44:53 -0700 Subject: [PATCH] Use userrc_early for all nodes Instead of only using the userrc_early when keystone is an enabled service we will do it on all runs of stack.sh. This way services can be split up more across devstack nodes, and you can do configuration requiring credentials on nodes that don't install keystone. Change-Id: I74574ae9f45a74bcbcc8e3149228ecb795ab4fb7 --- stack.sh | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/stack.sh b/stack.sh index 6a5a2a318f..8f548997d4 100755 --- a/stack.sh +++ b/stack.sh @@ -1021,21 +1021,12 @@ start_dstat # Keystone # -------- -if is_service_enabled keystone; then - echo_summary "Starting Keystone" - - if [ "$KEYSTONE_AUTH_HOST" == "$SERVICE_HOST" ]; then - init_keystone - start_keystone - bootstrap_keystone - fi - - # Rather than just export these, we write them out to a - # intermediate userrc file that can also be used to debug if - # something goes wrong between here and running - # tools/create_userrc.sh (this script relies on services other - # than keystone being available, so we can't call it right now) - cat > $TOP_DIR/userrc_early < $TOP_DIR/userrc_early <> $TOP_DIR/userrc_early - start_tls_proxy http-services '*' 443 $SERVICE_HOST 80 - fi +if is_service_enabled tls-proxy; then + echo "export OS_CACERT=$INT_CA_DIR/ca-chain.pem" >> $TOP_DIR/userrc_early + start_tls_proxy http-services '*' 443 $SERVICE_HOST 80 +fi - source $TOP_DIR/userrc_early +source $TOP_DIR/userrc_early + +if is_service_enabled keystone; then + echo_summary "Starting Keystone" + + if [ "$KEYSTONE_AUTH_HOST" == "$SERVICE_HOST" ]; then + init_keystone + start_keystone + bootstrap_keystone + fi create_keystone_accounts create_nova_accounts