summaryrefslogtreecommitdiffstats
path: root/boot/mso_vm_init.sh
diff options
context:
space:
mode:
authorplatania <platania@research.att.com>2017-03-14 18:24:59 -0400
committerplatania <platania@research.att.com>2017-03-14 18:24:59 -0400
commit2b5795c3773a1c568b1acdeb3f99463f57a0c072 (patch)
treebdd3dabe21b85723f6d0789d9a60d6292198a924 /boot/mso_vm_init.sh
parent2b556b22a1c446670a9e7f7030b24da136dbf45b (diff)
update init scripts
Change-Id: If1b4a67fb5fda5125dc65b801974d1d1badc1364 Signed-off-by: platania <platania@research.att.com>
Diffstat (limited to 'boot/mso_vm_init.sh')
-rw-r--r--boot/mso_vm_init.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/boot/mso_vm_init.sh b/boot/mso_vm_init.sh
index 1f89a4ef..8a8b8ed4 100644
--- a/boot/mso_vm_init.sh
+++ b/boot/mso_vm_init.sh
@@ -8,6 +8,13 @@ OPENSTACK_APIKEY=$(cat /opt/config/api_key.txt)
DMAAP_TOPIC=$(cat /opt/config/dmaap_topic.txt)
export MSO_DOCKER_IMAGE_VERSION=latest
+if [ -e /opt/config/keystone.txt ]
+then
+ KEYSTONE_URL=$(cat /opt/config/keystone.txt)
+else
+ KEYSTONE_URL="https://identity.api.rackspacecloud.com/v2.0"
+fi
+
# Update the MSO configuration file.
read -d '' MSO_CONFIG_UPDATES <<-EOF
{
@@ -25,7 +32,7 @@ read -d '' MSO_CONFIG_UPDATES <<-EOF
"identity_services":
[
{"dcp_clli": "RAX_KEYSTONE",
- "identity_url": "https://identity.api.rackspacecloud.com/v2.0",
+ "identity_url": "$KEYSTONE_URL",
"mso_id": "$OPENSTACK_USERNAME",
"mso_pass": "$OPENSTACK_APIKEY",
"admin_tenant": "service",