summaryrefslogtreecommitdiffstats
path: root/vnfs/vCPE/scripts/v_dns_install.sh
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-08-29 18:15:49 -0400
committerMarco Platania <platania@research.att.com>2017-08-29 18:17:44 -0400
commitf61e1d721b1fc75656186b2f8277c8c7b3341676 (patch)
treef62f7b508a0fdc6aa3826ebbccd020abc8924bda /vnfs/vCPE/scripts/v_dns_install.sh
parent569b54f0659cc790c0c9c2eec3a72884b6162626 (diff)
Install vDNS, vAAA and vDHCP services in vCPE
- Bind as vDNS - FreeRADIUS as vAAA - KEA-DHCP-SERVER as vDHCP Change-Id: I9a54add31542c075163bf946f475a184e14600aa Issue-ID: INT-84 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'vnfs/vCPE/scripts/v_dns_install.sh')
-rw-r--r--vnfs/vCPE/scripts/v_dns_install.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/vnfs/vCPE/scripts/v_dns_install.sh b/vnfs/vCPE/scripts/v_dns_install.sh
index 02ab69bf..426af3b5 100644
--- a/vnfs/vCPE/scripts/v_dns_install.sh
+++ b/vnfs/vCPE/scripts/v_dns_install.sh
@@ -50,18 +50,24 @@ fi
# Download required dependencies
add-apt-repository -y ppa:openjdk-r/ppa
apt-get update
-apt-get install -y wget openjdk-8-jdk apt-transport-https ca-certificates g++ libcurl4-gnutls-dev
+apt-get install -y wget openjdk-8-jdk bind9 bind9utils bind9-doc apt-transport-https ca-certificates kea-dhcp4-server g++ libcurl4-gnutls-dev libboost-dev kea-dev
sleep 1
-# Download DHCP config files
+# Download DNS and DHCP config files
cd /opt
+wget $REPO_URL_BLOB/org.onap.demo/vnfs/vcpe/$INSTALL_SCRIPT_VERSION/kea-dhcp4_no_hook.conf
wget $REPO_URL_BLOB/org.onap.demo/vnfs/vcpe/$INSTALL_SCRIPT_VERSION/v_dns_init.sh
wget $REPO_URL_BLOB/org.onap.demo/vnfs/vcpe/$INSTALL_SCRIPT_VERSION/v_dns.sh
+mv kea-dhcp4_no_hook.conf /etc/kea/kea-dhcp4.conf
chmod +x v_dns_init.sh
chmod +x v_dns.sh
mv v_dns.sh /etc/init.d
update-rc.d v_dns.sh defaults
+# Install Bind
+mkdir /etc/bind/zones
+sed -i "s/OPTIONS=.*/OPTIONS=\"-4 -u bind\"/g" /etc/default/bind9
+
# Rename network interface in openstack Ubuntu 16.04 images. Then, reboot the VM to pick up changes
if [[ $CLOUD_ENV != "rackspace" ]]
then