summaryrefslogtreecommitdiffstats
path: root/boot
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-05-09 16:22:08 -0400
committerMarco Platania <platania@research.att.com>2017-05-09 16:22:08 -0400
commitde5a8c9e26b5cc0d0d842b4d5c2d362a83080820 (patch)
tree290f515e04fca2ba3e215f205302d146756f5c3a /boot
parent8e17c5f5c7891364c3369af5a180e800a61bcae1 (diff)
[DCAE-7] Pass image names and flavors to DCAE
Change-Id: Ifa2626f58c86fe41340f30cc7b66690bd93f1c9b Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'boot')
-rw-r--r--boot/dcae_install.sh23
1 files changed, 15 insertions, 8 deletions
diff --git a/boot/dcae_install.sh b/boot/dcae_install.sh
index 45e74379..6ea93ff2 100644
--- a/boot/dcae_install.sh
+++ b/boot/dcae_install.sh
@@ -38,13 +38,6 @@ DCAE_HDP1_IP_ADDR=$(cat /opt/config/dcae_hdp1_ip_addr.txt)
DCAE_HDP2_IP_ADDR=$(cat /opt/config/dcae_hdp2_ip_addr.txt)
DCAE_HDP3_IP_ADDR=$(cat /opt/config/dcae_hdp3_ip_addr.txt)
-UBUNTU_1404_IMAGE=$(cat /opt/config/ubuntu_1404_image.txt)
-UBUNTU_1604_IMAGE=$(cat /opt/config/ubuntu_1604_image.txt)
-FLAVOR_SMALL=$(cat /opt/config/flavor_small.txt)
-FLAVOR_MEDIUM=$(cat /opt/config/flavor_medium.txt)
-FLAVOR_LARGE=$(cat /opt/config/flavor_large.txt)
-FLAVOR_XLARGE=$(cat /opt/config/flavor_xlarge.txt)
-
if [[ $CLOUD_ENV != "rackspace" ]]
then
# Add host name to /etc/host to avoid warnings in openstack images
@@ -162,13 +155,28 @@ dcae_cdap00_ip_addr: $DCAE_HDP1_IP_ADDR
dcae_cdap01_ip_addr: $DCAE_HDP2_IP_ADDR
dcae_cdap02_ip_addr: $DCAE_HDP3_IP_ADDR
+EOF_CONFIG
+
+# For non-Rackspace environment DCAE needs the OS image names and flavors
+if [[ $CLOUD_ENV != "rackspace" ]]
+then
+ UBUNTU_1404_IMAGE=$(cat /opt/config/ubuntu_1404_image.txt)
+ UBUNTU_1604_IMAGE=$(cat /opt/config/ubuntu_1604_image.txt)
+ FLAVOR_SMALL=$(cat /opt/config/flavor_small.txt)
+ FLAVOR_MEDIUM=$(cat /opt/config/flavor_medium.txt)
+ FLAVOR_LARGE=$(cat /opt/config/flavor_large.txt)
+ FLAVOR_XLARGE=$(cat /opt/config/flavor_xlarge.txt)
+
+cat >> /opt/app/dcae-controller/config.yaml << EOF_CONFIG
UBUNTU-1404-IMAGE: $UBUNTU_1404_IMAGE
UBUNTU-1604-IMAGE: $UBUNTU_1604_IMAGE
FLAVOR-SMALL: $FLAVOR_SMALL
FLAVOR-MEDIUM: $FLAVOR_MEDIUM
FLAVOR-LARGE: $FLAVOR_LARGE
FLAVOR-XLARGE: $FLAVOR_XLARGE
+
EOF_CONFIG
+fi
# Add floating IP section to DCAE config file for OpenStack deployments that use floating IPs
if [[ $CLOUD_ENV == "openstack" ]]
@@ -182,7 +190,6 @@ then
DCAE_HDP3_FLOAT_IP=$(cat /opt/config/dcae_hdp3_float_ip.txt)
cat >> /opt/app/dcae-controller/config.yaml << EOF_CONFIG
-
dcae_float_ip_addr: $DCAE_FLOAT_IP_ADDR
dcae_pstg00_float_ip_addr: $DCAE_DB_FLOAT_IP
dcae_coll00_float_ip_addr: $DCAE_COLL_FLOAT_IP