3 NEXUS_USERNAME=$(cat /opt/config/nexus_username.txt)
4 NEXUS_PASSWD=$(cat /opt/config/nexus_password.txt)
5 NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt)
6 DMAAP_TOPIC=$(cat /opt/config/dmaap_topic.txt)
7 OPENSTACK_USERNAME=$(cat /opt/config/openstack_username.txt)
8 OPENSTACK_APIKEY=$(cat /opt/config/api_key.txt)
9 export MSO_DOCKER_IMAGE_VERSION=$(cat /opt/config/docker_version.txt)
10 export MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1)
12 # Deployments in OpenStack require a keystone file
13 if [ -e /opt/config/keystone.txt ]
15 KEYSTONE_URL=$(cat /opt/config/keystone.txt)
16 OPENSTACK_REGION=$(cat /opt/config/openstack_region.txt)
17 DCP_CLLI="DEFAULT_KEYSTONE"
18 AUTH_TYPE="USERNAME_PASSWORD"
19 read -d '' CLOUD_SITES <<-EOF
22 "id": "$OPENSTACK_REGION",
23 "identity_service_id": "$DCP_CLLI",
24 "lcp_clli": "$OPENSTACK_REGION",
25 "region_id": "$OPENSTACK_REGION"
29 KEYSTONE_URL="https://identity.api.rackspacecloud.com/v2.0"
30 DCP_CLLI="RAX_KEYSTONE"
31 AUTH_TYPE="RACKSPACE_APIKEY"
32 read -d '' CLOUD_SITES <<-EOF
39 "identity_service_id": "$DCP_CLLI"
43 "id": "Northern Virginia",
47 "identity_service_id": "$DCP_CLLI"
55 "identity_service_id": "$DCP_CLLI"
61 # Update the MSO configuration file.
62 read -d '' MSO_CONFIG_UPDATES <<-EOF
70 "environmentName": "$DMAAP_TOPIC"
73 "mso-po-adapter-config":
78 {"dcp_clli": "$DCP_CLLI",
79 "identity_url": "$KEYSTONE_URL",
80 "mso_id": "$OPENSTACK_USERNAME",
81 "mso_pass": "$OPENSTACK_APIKEY",
82 "admin_tenant": "service",
83 "member_role": "admin",
84 "tenant_metadata": "true",
85 "identity_server_type": "KEYSTONE",
86 "identity_authentication_type": "$AUTH_TYPE"
94 export MSO_CONFIG_UPDATES
96 # Deploy the environment
100 #This script takes in input 2 nexus repos (the first one for the MSO image, the second one for mariadb)
101 ./deploy.sh $NEXUS_DOCKER_REPO $NEXUS_USERNAME $NEXUS_PASSWD $NEXUS_DOCKER_REPO $NEXUS_USERNAME $NEXUS_PASSWD