aboutsummaryrefslogtreecommitdiffstats
path: root/heat/ONAP/cloud-config/multiserv_install.sh
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2018-08-06 14:40:21 -0400
committerMarco Platania <platania@research.att.com>2018-08-06 14:40:21 -0400
commit20f5aa7a719b76babe5b566098407a594db3641c (patch)
tree08a9b053488fcbfd1081921cbcc5d4e2e976c66d /heat/ONAP/cloud-config/multiserv_install.sh
parentb9a2a29a9e1e93cd04bfa46f9ed66a2117ef56e5 (diff)
Refactor ONAP HEAT template config, part 3
- Consolidate serv.sh activation in generic config script - Rename OPEN-O (open-o) -> MULTISERV (multiserv) - Resurce names in Heat template - File names - References in other installation scripts - Rename dcae_c_ -> dcae_ in Heat template - Minor clean up Change-Id: If45a1f1e01933f828aa698c815e0a3f65810a208 Issue-ID: INT-526 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'heat/ONAP/cloud-config/multiserv_install.sh')
-rw-r--r--heat/ONAP/cloud-config/multiserv_install.sh39
1 files changed, 39 insertions, 0 deletions
diff --git a/heat/ONAP/cloud-config/multiserv_install.sh b/heat/ONAP/cloud-config/multiserv_install.sh
new file mode 100644
index 00000000..04871725
--- /dev/null
+++ b/heat/ONAP/cloud-config/multiserv_install.sh
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+# Read configuration files
+VNFSDK_BRANCH=$(cat /opt/config/vnfsdk_branch.txt)
+VNFSDK_REPO=$(cat /opt/config/vnfsdk_repo.txt)
+HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
+HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
+
+if [ $HTTP_PROXY != "no_proxy" ]
+then
+ export http_proxy=$HTTP_PROXY
+ export https_proxy=$HTTPS_PROXY
+fi
+
+# Download dependencies
+apt-get update
+apt-get install -y mysql-client-core-5.6
+
+# Download scripts from Nexus
+cp /opt/boot/vnfsdk_vm_init.sh /opt/vnfsdk_vm_init.sh
+cp /opt/boot/msb_vm_init.sh /opt/msb_vm_init.sh
+cp /opt/boot/mvim_vm_init.sh /opt/mvim_vm_init.sh
+cp /opt/boot/vfc_vm_init.sh /opt/vfc_vm_init.sh
+cp /opt/boot/uui_vm_init.sh /opt/uui_vm_init.sh
+cp /opt/boot/multiserv_all_serv.sh /opt/multiserv_all_serv.sh
+cp /opt/boot/esr_vm_init.sh /opt/esr_vm_init.sh
+chmod +x /opt/vnfsdk_vm_init.sh
+chmod +x /opt/msb_vm_init.sh
+chmod +x /opt/mvim_vm_init.sh
+chmod +x /opt/vfc_vm_init.sh
+chmod +x /opt/uui_vm_init.sh
+chmod +x /opt/multiserv_all_serv.sh
+chmod +x /opt/esr_vm_init.sh
+
+# Clone Gerrit repository and run docker containers
+cd /opt
+git clone -b $VNFSDK_BRANCH --single-branch $VNFSDK_REPO
+source ./cli_install.sh
+./multiserv_all_serv.sh