From 0c571f27e5ade6a26c2759e01a12aaba87075b58 Mon Sep 17 00:00:00 2001 From: Marco Platania Date: Wed, 19 Apr 2017 09:31:00 -0400 Subject: fix MSO credential issues in OpenStack Change-Id: I2e9010d5891ddf3985f0bf431edffe543e1825c5 Signed-off-by: Marco Platania (cherry picked from commit 8b1b31d313eae79e7bc016a729bf9c5c056b431a) --- boot/mso_vm_init.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'boot') diff --git a/boot/mso_vm_init.sh b/boot/mso_vm_init.sh index feff9ba0..230c53ee 100644 --- a/boot/mso_vm_init.sh +++ b/boot/mso_vm_init.sh @@ -4,6 +4,8 @@ NEXUS_USERNAME=$(cat /opt/config/nexus_username.txt) NEXUS_PASSWD=$(cat /opt/config/nexus_password.txt) NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt) DMAAP_TOPIC=$(cat /opt/config/dmaap_topic.txt) +OPENSTACK_USERNAME=$(cat /opt/config/openstack_username.txt) +OPENSTACK_APIKEY=$(cat /opt/config/api_key.txt) export MSO_DOCKER_IMAGE_VERSION=$(cat /opt/config/docker_version.txt) # Deployments in OpenStack require a keystone file @@ -11,14 +13,10 @@ if [ -e /opt/config/keystone.txt ] then KEYSTONE_URL=$(cat /opt/config/keystone.txt) DCP_CLLI="DEFAULT_KEYSTONE" - OPENSTACK_USERNAME="admin" - OPENSTACK_APIKEY="encryptedPassword" AUTH_TYPE="USERNAME_PASSWORD" else KEYSTONE_URL="https://identity.api.rackspacecloud.com/v2.0" DCP_CLLI="RAX_KEYSTONE" - OPENSTACK_USERNAME=$(cat /opt/config/openstack_username.txt) - OPENSTACK_APIKEY=$(cat /opt/config/api_key.txt) AUTH_TYPE="RACKSPACE_APIKEY" fi -- cgit 1.2.3-korg