summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2018-04-03 11:14:54 -0400
committerMarco Platania <platania@research.att.com>2018-04-03 11:14:54 -0400
commit78ef99f0d6df2bf296ad1c669b65a961203dc5ce (patch)
treeb79c69e5a994915c339e3d4d5c75d1ed66f073f0
parente76f2617f635bf5a799c333404485881300bfd53 (diff)
Add NBI configuration to DNS
Change-Id: I456d612171ab6f00a7f0390b585ea6208e047918 Issue-ID: INT-456 Signed-off-by: Marco Platania <platania@research.att.com>
-rw-r--r--boot/bind_zones7
-rw-r--r--boot/bind_zones_onap7
-rw-r--r--boot/db_simpledemo_onap_org7
-rw-r--r--boot/db_simpledemo_openecomp_org5
-rw-r--r--boot/dns_install.sh2
-rw-r--r--heat/ONAP/onap_openstack.yaml2
6 files changed, 27 insertions, 3 deletions
diff --git a/boot/bind_zones b/boot/bind_zones
index 1dfd6d02..bfdbcb54 100644
--- a/boot/bind_zones
+++ b/boot/bind_zones
@@ -87,6 +87,8 @@ vm1.music.simpledemo.openecomp.org. IN A music_ip_addr
vm1.oof.simpledemo.openecomp.org. IN A oof_ip_addr
+vm1.nbi.simpledemo.openecomp.org. IN A nbi_ip_addr
+
;CNAMES
;A&AI
@@ -149,4 +151,7 @@ esr.api.simpledemo.openecomp.org. IN CNAME vm1.openo.simpledemo.openecomp.org
music.api.simpledemo.openecomp.org. IN CNAME vm1.music.simpledemo.openecomp.org.
;OOF
-oof.api.simpledemo.openecomp.org. IN CNAME vm1.oof.simpledemo.openecomp.org. \ No newline at end of file
+oof.api.simpledemo.openecomp.org. IN CNAME vm1.oof.simpledemo.openecomp.org.
+
+;NBI
+nbi.api.simpledemo.openecomp.org. IN CNAME vm1.nbi.simpledemo.openecomp.org. \ No newline at end of file
diff --git a/boot/bind_zones_onap b/boot/bind_zones_onap
index 425f3d1e..b5a13577 100644
--- a/boot/bind_zones_onap
+++ b/boot/bind_zones_onap
@@ -87,6 +87,8 @@ vm1.music.simpledemo.openecomp.org. IN A music_ip_addr
vm1.oof.simpledemo.openecomp.org. IN A oof_ip_addr
+vm1.nbi.simpledemo.openecomp.org. IN A nbi_ip_addr
+
;CNAMES
;A&AI
@@ -149,4 +151,7 @@ esr.api.simpledemo.onap.org. IN CNAME vm1.openo.simpledemo.onap.org.
music.api.simpledemo.onap.org. IN CNAME vm1.music.simpledemo.onap.org.
;OOF
-oof.api.simpledemo.onap.org. IN CNAME vm1.oof.simpledemo.onap.org. \ No newline at end of file
+oof.api.simpledemo.onap.org. IN CNAME vm1.oof.simpledemo.onap.org.
+
+;NBI
+nbi.api.simpledemo.onap.org. IN CNAME vm1.nbi.simpledemo.onap.org. \ No newline at end of file
diff --git a/boot/db_simpledemo_onap_org b/boot/db_simpledemo_onap_org
index c3a2df84..d5c3f8a5 100644
--- a/boot/db_simpledemo_onap_org
+++ b/boot/db_simpledemo_onap_org
@@ -87,6 +87,8 @@ vm1.music.simpledemo.onap.org. IN A 10.0.15.1
vm1.oof.simpledemo.onap.org. IN A 10.0.16.1
+vm1.nbi.simpledemo.onap.org. IN A 10.0.17.1
+
;CNAMES
;A&AI
@@ -151,4 +153,7 @@ esr.api.simpledemo.onap.org. IN CNAME vm1.openo.simpledemo.onap.org.
music.api.simpledemo.onap.org. IN CNAME vm1.music.simpledemo.onap.org.
;OOF
-oof.api.simpledemo.onap.org. IN CNAME vm1.oof.simpledemo.onap.org. \ No newline at end of file
+oof.api.simpledemo.onap.org. IN CNAME vm1.oof.simpledemo.onap.org.
+
+;NBI
+nbi.api.simpledemo.onap.org. IN CNAME vm1.nbi.simpledemo.onap.org. \ No newline at end of file
diff --git a/boot/db_simpledemo_openecomp_org b/boot/db_simpledemo_openecomp_org
index e867a26f..e3fa1f62 100644
--- a/boot/db_simpledemo_openecomp_org
+++ b/boot/db_simpledemo_openecomp_org
@@ -87,6 +87,8 @@ vm1.music.simpledemo.openecomp.org. IN A 10.0.15.1
vm1.oof.simpledemo.openecomp.org. IN A 10.0.16.1
+vm1.nbi.simpledemo.openecomp.org. IN A 10.0.17.1
+
;CNAMES
;A&AI
@@ -152,3 +154,6 @@ music.api.simpledemo.openecomp.org. IN CNAME vm1.music.simpledemo.openecomp.org.
;OOF
oof.api.simpledemo.openecomp.org. IN CNAME vm1.oof.simpledemo.openecomp.org.
+
+;NBI
+nbi.api.simpledemo.openecomp.org. IN CNAME vm1.nbi.simpledemo.openecomp.org. \ No newline at end of file
diff --git a/boot/dns_install.sh b/boot/dns_install.sh
index 239bfce5..fbe3df75 100644
--- a/boot/dns_install.sh
+++ b/boot/dns_install.sh
@@ -91,6 +91,7 @@ then
sed -i "s/music_ip_addr/"$(cat /opt/config/music_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org
sed -i "s/oof_ip_addr/"$(cat /opt/config/oof_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org
sed -i "s/aaf_ip_addr/"$(cat /opt/config/aaf_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org
+ sed -i "s/aaf_ip_addr/"$(cat /opt/config/nbi_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.onap.org
sed -i "s/aai2_ip_addr/"$(cat /opt/config/aai2_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.onap.org
@@ -110,6 +111,7 @@ then
sed -i "s/music_ip_addr/"$(cat /opt/config/music_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org
sed -i "s/oof_ip_addr/"$(cat /opt/config/oof_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org
sed -i "s/aaf_ip_addr/"$(cat /opt/config/aaf_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org
+ sed -i "s/aaf_ip_addr/"$(cat /opt/config/nbi_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org
fi
# Configure Bind
diff --git a/heat/ONAP/onap_openstack.yaml b/heat/ONAP/onap_openstack.yaml
index 69d35e32..0566e972 100644
--- a/heat/ONAP/onap_openstack.yaml
+++ b/heat/ONAP/onap_openstack.yaml
@@ -551,6 +551,7 @@ resources:
__music_ip_addr__: { get_param: music_ip_addr }
__oof_ip_addr__: { get_param: oof_ip_addr }
__aaf_ip_addr__: { get_param: aaf_ip_addr }
+ __nbi_ip_addr__: { get_param: nbi_ip_addr }
__cloud_env__: { get_param: cloud_env }
__external_dns__: { get_param: external_dns }
__dns_forwarder__: { get_param: dns_forwarder }
@@ -581,6 +582,7 @@ resources:
echo "__music_ip_addr__" > /opt/config/music_ip_addr.txt
echo "__oof_ip_addr__" > /opt/config/oof_ip_addr.txt
echo "__aaf_ip_addr__" > /opt/config/aaf_ip_addr.txt
+ echo "__nbi_ip_addr__" > /opt/config/nbi_ip_addr.txt
echo "__external_dns__" > /opt/config/external_dns.txt
echo "__dns_forwarder__" > /opt/config/dns_forwarder.txt