Merge "Add floating IPs to DCAE VMs"
authorHector Anapan-Lavalle <ha076r@att.com>
Fri, 14 Jul 2017 20:02:05 +0000 (20:02 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 14 Jul 2017 20:02:05 +0000 (20:02 +0000)
heat/OpenECOMP/onap_openstack.env
heat/OpenECOMP/onap_openstack.yaml

index ae25cba..6ac4e00 100644 (file)
@@ -90,6 +90,12 @@ parameters:
   sdnc_ip_addr: 10.0.7.1
   vid_ip_addr: 10.0.8.1
 
+  dcae_coll_float_ip: PUT DCAE COLLECTOR FLOATING IP HERE
+  dcae_db_float_ip: PUT DCAE DATABASE FLOATING IP HERE
+  dcae_hdp1_float_ip: PUT DCAE HADOOP VM1 FLOATING IP HERE
+  dcae_hdp2_float_ip: PUT DCAE HADOOP VM2 FLOATING IP HERE
+  dcae_hdp3_float_ip: PUT DCAE HADOOP VM3 FLOATING IP HERE
+
   ###########################
   #                         #
   # Parameters used by DCAE #
index 3929db9..a17a0ee 100644 (file)
@@ -232,6 +232,25 @@ parameters:
     type: string
     description: VID IP Address
 
+  dcae_coll_float_ip:
+    type: string
+    description: DCAE Collector Floating IP Address
+
+  dcae_db_float_ip:
+    type: string
+    description: DCAE Collector Database Floating IP Address
+
+  dcae_hdp1_float_ip:
+    type: string
+    description: Hadoop VM1 Floating IP Address
+
+  dcae_hdp2_float_ip:
+    type: string
+    description: Hadoop VM2 Floating IP Address
+
+  dcae_hdp3_float_ip:
+    type: string
+    description: Hadoop VM3 Floating IP Address
 
   ###########################
   #                         #
@@ -1111,6 +1130,12 @@ resources:
             __dcae_hdp1_ip_addr__: { get_param: dcae_hdp1_ip_addr }
             __dcae_hdp2_ip_addr__: { get_param: dcae_hdp2_ip_addr }
             __dcae_hdp3_ip_addr__: { get_param: dcae_hdp3_ip_addr }
+            __dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
+            __dcae_coll_float_ip__: { get_param: dcae_coll_float_ip }
+            __dcae_db_float_ip__: { get_param: dcae_db_float_ip }
+            __dcae_hdp1_float_ip__: { get_param: dcae_hdp1_float_ip }
+            __dcae_hdp2_float_ip__: { get_param: dcae_hdp2_float_ip }
+            __dcae_hdp3_float_ip__: { get_param: dcae_hdp3_float_ip }
             __external_dns__: { get_param: external_dns }
             __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
             __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
@@ -1157,6 +1182,12 @@ resources:
             echo "__dcae_hdp1_ip_addr__" > /opt/config/dcae_hdp1_ip_addr.txt
             echo "__dcae_hdp2_ip_addr__" > /opt/config/dcae_hdp2_ip_addr.txt
             echo "__dcae_hdp3_ip_addr__" > /opt/config/dcae_hdp3_ip_addr.txt
+            echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
+            echo "__dcae_coll_float_ip__" > /opt/config/dcae_coll_float_ip.txt
+            echo "__dcae_db_float_ip__" > /opt/config/dcae_db_float_ip.txt
+            echo "__dcae_hdp1_float_ip__" > /opt/config/dcae_hdp1_float_ip.txt
+            echo "__dcae_hdp2_float_ip__" > /opt/config/dcae_hdp2_float_ip.txt
+            echo "__dcae_hdp3_float_ip__" > /opt/config/dcae_hdp3_float_ip.txt
             echo "__external_dns__" > /opt/config/external_dns.txt
             echo "__ubuntu_1404_image__" > /opt/config/ubuntu_1404_image.txt
             echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt