summaryrefslogtreecommitdiffstats
path: root/boot
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-06-06 10:24:33 -0400
committerMarco Platania <platania@research.att.com>2017-06-06 10:24:33 -0400
commit2c49993be9e4d32c3963b4244396c4e6197c3970 (patch)
treec66e9b5ab63ce4dcd739ff84320c81a985bc68be /boot
parent9f94d8c2fd838c1607f630dfdd5f936605d9873f (diff)
Add second AAI instance to OpenStack templates
Change-Id: I48799b2d7b4aec5b0bd627d9bec291c9f14c8787 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'boot')
-rw-r--r--boot/bind_zones17
-rw-r--r--boot/dns_install.sh3
2 files changed, 14 insertions, 6 deletions
diff --git a/boot/bind_zones b/boot/bind_zones
index e73234f4..0893ca64 100644
--- a/boot/bind_zones
+++ b/boot/bind_zones
@@ -16,10 +16,15 @@ $TTL 604800
simpledemo.openecomp.org. IN A dns_ip_addr
;
-vm1.aai.simpledemo.openecomp.org. IN A aai_ip_addr
-c1.vm1.aai.simpledemo.openecomp.org. IN A aai_ip_addr
-c2.vm1.aai.simpledemo.openecomp.org. IN A aai_ip_addr
-c3.vm1.aai.simpledemo.openecomp.org. IN A aai_ip_addr
+vm1.aai.simpledemo.openecomp.org. IN A aai1_ip_addr
+c1.vm1.aai.simpledemo.openecomp.org. IN A aai1_ip_addr
+c2.vm1.aai.simpledemo.openecomp.org. IN A aai1_ip_addr
+c3.vm1.aai.simpledemo.openecomp.org. IN A aai1_ip_addr
+
+vm2.aai.simpledemo.openecomp.org. IN A aai2_ip_addr
+c1.vm2.aai.simpledemo.openecomp.org. IN A aai2_ip_addr
+c2.vm2.aai.simpledemo.openecomp.org. IN A aai2_ip_addr
+c3.vm2.aai.simpledemo.openecomp.org. IN A aai2_ip_addr
vm1.appc.simpledemo.openecomp.org. IN A appc_ip_addr
c1.vm1.appc.simpledemo.openecomp.org. IN A appc_ip_addr
@@ -72,7 +77,9 @@ vm1.mr.simpledemo.openecomp.org. IN A mr_ip_addr
;CNAMES
;A&AI
aai.api.simpledemo.openecomp.org. IN CNAME vm1.aai.simpledemo.openecomp.org.
-aai.hbase.simpledemo.openecomp.org. IN CNAME vm1.aai.simpledemo.openecomp.org.
+aai.hbase.simpledemo.openecomp.org. IN CNAME vm2.aai.simpledemo.openecomp.org.
+aai.gremlinserver.simpledemo.openecomp.org. IN CNAME vm2.aai.simpledemo.openecomp.org.
+aai.elasticsearch.simpledemo.openecomp.org. IN CNAME vm2.aai.simpledemo.openecomp.org.
;APPC
appc.api.simpledemo.openecomp.org. IN CNAME vm1.appc.simpledemo.openecomp.org.
diff --git a/boot/dns_install.sh b/boot/dns_install.sh
index 58bb4d78..9cf5c324 100644
--- a/boot/dns_install.sh
+++ b/boot/dns_install.sh
@@ -65,7 +65,8 @@ if [[ $CLOUD_ENV != "rackspace" ]]
then
sed -i "s/dns_ip_addr/"$(cat /opt/config/dns_ip_addr.txt)"/g" /etc/bind/named.conf.options
sed -i "s/external_dns/"$(cat /opt/config/external_dns.txt)"/g" /etc/bind/named.conf.options
- sed -i "s/aai_ip_addr/"$(cat /opt/config/aai_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org
+ sed -i "s/aai1_ip_addr/"$(cat /opt/config/aai1_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org
+ sed -i "s/aai2_ip_addr/"$(cat /opt/config/aai2_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org
sed -i "s/appc_ip_addr/"$(cat /opt/config/appc_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org
sed -i "s/dcae_ip_addr/"$(cat /opt/config/dcae_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org
sed -i "s/dns_ip_addr/"$(cat /opt/config/dns_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org