diff options
author | Marco Platania <platania@research.att.com> | 2017-06-26 09:56:13 -0400 |
---|---|---|
committer | Marco Platania <platania@research.att.com> | 2017-06-26 09:56:13 -0400 |
commit | 4707bdaf7542191d336094af34cbef18ba51c809 (patch) | |
tree | ba7cb4be10dda8d6245cc7114329b1b0c493d1d5 | |
parent | 73fb16f5b582a81ce92a654567d707e2cd052976 (diff) |
Remove install scripts
Change-Id: I4457b605f70c81156f271d07fced0e1f668ef87c
Signed-off-by: Marco Platania <platania@research.att.com>
-rw-r--r-- | boot/aai_install.sh | 46 | ||||
-rw-r--r-- | boot/appc_install.sh | 46 | ||||
-rw-r--r-- | boot/asdc_install.sh | 91 | ||||
-rw-r--r-- | boot/dcae_install.sh | 104 | ||||
-rw-r--r-- | boot/dns_install.sh | 57 | ||||
-rw-r--r-- | boot/mr_install.sh | 46 | ||||
-rw-r--r-- | boot/mso_install.sh | 62 | ||||
-rw-r--r-- | boot/policy_install.sh | 46 | ||||
-rw-r--r-- | boot/portal_install.sh | 47 | ||||
-rw-r--r-- | boot/robot_install.sh | 61 | ||||
-rw-r--r-- | boot/sdnc_install.sh | 46 | ||||
-rw-r--r-- | boot/vid_install.sh | 46 | ||||
-rw-r--r-- | vnfs/VES/.DS_Store | bin | 6148 -> 0 bytes | |||
-rw-r--r-- | vnfs/VES/code/.DS_Store | bin | 6148 -> 0 bytes |
14 files changed, 0 insertions, 698 deletions
diff --git a/boot/aai_install.sh b/boot/aai_install.sh deleted file mode 100644 index cf9043b9..00000000 --- a/boot/aai_install.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -# Read configuration files -NEXUS_REPO=$(cat /opt/config/nexus_repo.txt) -ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) -DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) -CLOUD_ENV=$(cat /opt/config/cloud_env.txt) - -# Add host name to /etc/host to avoid warnings in openstack images -if [[ $CLOUD_ENV == "openstack" ]] -then - echo 127.0.0.1 $(hostname) >> /etc/hosts -fi - -# Download dependencies -add-apt-repository -y ppa:openjdk-r/ppa -apt-get update -apt-get install -y apt-transport-https ca-certificates wget openjdk-8-jdk git ntp ntpdate - -# Download scripts from Nexus -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/aai_vm_init.sh -o /opt/aai_vm_init.sh -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/aai_serv.sh -o /opt/aai_serv.sh -chmod +x /opt/aai_vm_init.sh -chmod +x /opt/aai_serv.sh -mv /opt/aai_serv.sh /etc/init.d -update-rc.d aai_serv.sh defaults - -# Download and install docker-engine and docker-compose -echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list -apt-get update -apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual -apt-get install -y --allow-unauthenticated docker-engine - -mkdir /opt/docker -curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname -s`-`uname -m` > /opt/docker/docker-compose -chmod +x /opt/docker/docker-compose - -# DNS IP address configuration -echo "nameserver "$DNS_IP_ADDR >> /etc/resolvconf/resolv.conf.d/head -resolvconf -u - -# Run docker containers -mkdir -p /opt/openecomp/aai/logs -mkdir -p /opt/openecomp/aai/data -cd /opt -./aai_vm_init.sh
\ No newline at end of file diff --git a/boot/appc_install.sh b/boot/appc_install.sh deleted file mode 100644 index 453f7ebd..00000000 --- a/boot/appc_install.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -# Read configuration files -NEXUS_REPO=$(cat /opt/config/nexus_repo.txt) -ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) -DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) -CLOUD_ENV=$(cat /opt/config/cloud_env.txt) -GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) - -# Add host name to /etc/host to avoid warnings in openstack images -if [[ $CLOUD_ENV == "openstack" ]] -then - echo 127.0.0.1 $(hostname) >> /etc/hosts -fi - -# Download dependencies -add-apt-repository -y ppa:openjdk-r/ppa -apt-get update -apt-get install -y apt-transport-https ca-certificates wget openjdk-7-jdk git ntp ntpdate - -# Download scripts from Nexus -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/appc_vm_init.sh -o /opt/appc_vm_init.sh -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/appc_serv.sh -o /opt/appc_serv.sh -chmod +x /opt/appc_vm_init.sh -chmod +x /opt/appc_serv.sh -mv /opt/appc_serv.sh /etc/init.d -update-rc.d appc_serv.sh defaults - -# Download and install docker-engine and docker-compose -echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list -apt-get update -apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual -apt-get install -y --allow-unauthenticated docker-engine - -mkdir /opt/docker -curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname -s`-`uname -m` > /opt/docker/docker-compose -chmod +x /opt/docker/docker-compose - -# DNS IP address configuration -echo "nameserver "$DNS_IP_ADDR >> /etc/resolvconf/resolv.conf.d/head -resolvconf -u - -# Clone Gerrit repository and run docker containers -cd /opt -git clone -b $GERRIT_BRANCH --single-branch http://gerrit.onap.org/r/appc/deployment.git appc -./appc_vm_init.sh
\ No newline at end of file diff --git a/boot/asdc_install.sh b/boot/asdc_install.sh deleted file mode 100644 index fff64320..00000000 --- a/boot/asdc_install.sh +++ /dev/null @@ -1,91 +0,0 @@ -#!/bin/bash - -# Read configuration files -NEXUS_REPO=$(cat /opt/config/nexus_repo.txt) -ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) -DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) -CLOUD_ENV=$(cat /opt/config/cloud_env.txt) -GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) - -# Add host name to /etc/host to avoid warnings in openstack images -if [[ $CLOUD_ENV == "openstack" ]] -then - echo 127.0.0.1 $(hostname) >> /etc/hosts -fi - -# Download dependencies -add-apt-repository -y ppa:openjdk-r/ppa -apt-get update -apt-get install -y apt-transport-https ca-certificates wget openjdk-8-jdk git ntp ntpdate - -# Download scripts from Nexus -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/asdc_vm_init.sh -o /opt/asdc_vm_init.sh -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/asdc_serv.sh -o /opt/asdc_serv.sh -chmod +x /opt/asdc_vm_init.sh -chmod +x /opt/asdc_serv.sh -mv /opt/asdc_serv.sh /etc/init.d -update-rc.d asdc_serv.sh defaults - -# Download and install docker-engine and docker-compose -echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list -apt-get update -apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual -apt-get install -y --allow-unauthenticated docker-engine - -mkdir /opt/docker -curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname -s`-`uname -m` > /opt/docker/docker-compose -chmod +x /opt/docker/docker-compose - -# Create partition and mount the external volume -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/asdc_ext_volume_partitions.txt -o /opt/asdc_ext_volume_partitions.txt - -if [[ $CLOUD_ENV == "rackspace" ]] -then - DISK="xvdb" -else - DISK="vdb" - sed -i "s/xvdb/vdb/g" /opt/asdc_ext_volume_partitions.txt -fi - -sfdisk /dev/$DISK < /opt/asdc_ext_volume_partitions.txt -mkfs -t ext4 /dev/$DISK"1" -mkdir -p /data -mount /dev/$DISK"1" /data -echo "/dev/"$DISK"1 /data ext4 errors=remount-ro,noatime,barrier=0 0 1" >> /etc/fstab - -# DNS IP address configuration -echo "nameserver "$DNS_IP_ADDR >> /etc/resolvconf/resolv.conf.d/head -resolvconf -u - -# Clone Gerrit repository -cd /opt -mkdir -p /data/environments -mkdir -p /data/scripts -mkdir -p /data/logs/BE -mkdir -p /data/logs/FE -chmod 777 /data -chmod 777 /data/logs/BE -chmod 777 /data/logs/FE - -git clone -b $GERRIT_BRANCH --single-branch http://gerrit.onap.org/r/sdc.git - -cat > /root/.bash_aliases << EOF -alias dcls='/data/scripts/docker_clean.sh \$1' -alias dlog='/data/scripts/docker_login.sh \$1' -alias rund='/data/scripts/docker_run.sh' -alias health='/data/scripts/docker_health.sh' -EOF - -# Rename network interface in openstack Ubuntu 16.04 images. Then, reboot the VM to pick up changes -if [[ $CLOUD_ENV == "openstack" ]] -then - sed -i "s/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"net.ifnames=0 biosdevname=0\"/g" /etc/default/grub - grub-mkconfig -o /boot/grub/grub.cfg - sed -i "s/ens[0-9]*/eth0/g" /etc/network/interfaces.d/*.cfg - echo 'network: {config: disabled}' >> /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg - echo "APT::Periodic::Unattended-Upgrade \"0\";" >> /etc/apt/apt.conf.d/10periodic - reboot -fi - -# Run docker containers. For openstack Ubuntu 16.04 images this will run as a service after the VM has restarted -./asdc_vm_init.sh
\ No newline at end of file diff --git a/boot/dcae_install.sh b/boot/dcae_install.sh deleted file mode 100644 index 933fb2c6..00000000 --- a/boot/dcae_install.sh +++ /dev/null @@ -1,104 +0,0 @@ -#!/bin/bash - -# Read configuration files -NEXUS_REPO=$(cat /opt/config/nexus_repo.txt) -ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) -DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) -CLOUD_ENV=$(cat /opt/config/cloud_env.txt) -GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) - -ZONE=$(cat /opt/config/dcae_zone.txt) -STATE=$(cat /opt/config/dcae_state.txt) -HORIZON_URL=$(cat /opt/config/horizon_url.txt) -OPENSTACK_USER=$(cat /opt/config/openstack_user.txt) -OPENSTACK_PASSWORD=$(cat /opt/config/openstack_password.txt) -OPENSTACK_KEYNAME=$(cat /opt/config/key_name.txt)"_"$(cat /opt/config/rand_str.txt)"_dcae" -OPENSTACK_PUBKEY=$(cat /opt/config/pub_key.txt) -KEYSTONE_URL=$(cat /opt/config/keystone_url.txt) -OPENSTACK_TENANT_ID=$(cat /opt/config/tenant_id.txt) -OPENSTACK_TENANT_NAME=OPEN-ECOMP -OPENSTACK_REGION=$(cat /opt/config/openstack_region.txt) -OPENSTACK_PRIVATE_NETWORK=$(cat /opt/config/openstack_private_network_name.txt) - -NEXUS_URL_ROOT=$(cat /opt/config/nexus_repo_root.txt) -NEXUS_USER=$(cat /opt/config/nexus_username.txt) -NEXUS_PASSWORD=$(cat /opt/config/nexus_password.txt) -NEXUS_URL_SNAPSHOTS=$(cat /opt/config/nexus_url_snapshots.txt) -DOCKER_REGISTRY=$(cat /opt/config/nexus_docker_repo.txt) -DCAE_CODE_VERSION=$(cat /opt/config/dcae_code_version.txt) - -DCAE_COLL_FLOAT_IP=$(cat /opt/config/dcae_coll_float_ip.txt) -DCAE_DB_FLOAT_IP=$(cat /opt/config/dcae_db_float_ip.txt) -DCAE_HDP1_FLOAT_IP=$(cat /opt/config/dcae_hdp1_float_ip.txt) -DCAE_HDP2_FLOAT_IP=$(cat /opt/config/dcae_hdp2_float_ip.txt) -DCAE_HDP3_FLOAT_IP=$(cat /opt/config/dcae_hdp3_float_ip.txt) - -# Add host name to /etc/host to avoid warnings in openstack images -if [[ $CLOUD_ENV == "openstack" ]] -then - echo 127.0.0.1 $(hostname) >> /etc/hosts -fi - -# Download dependencies -add-apt-repository -y ppa:openjdk-r/ppa -apt-get update -apt-get install -y apt-transport-https ca-certificates wget make openjdk-8-jdk git ntp ntpdate - -# Download scripts from Nexus -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/dcae_vm_init.sh -o /opt/dcae_vm_init.sh -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/dcae_serv.sh -o /opt/dcae_serv.sh -chmod +x /opt/dcae_vm_init.sh -chmod +x /opt/dcae_serv.sh -mv /opt/dcae_serv.sh /etc/init.d -update-rc.d dcae_serv.sh defaults - -# Download and install docker-engine and docker-compose -echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list -apt-get update -apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual -apt-get install -y --allow-unauthenticated docker-engine - -mkdir /opt/docker -curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname -s`-`uname -m` > /opt/docker/docker-compose -chmod +x /opt/docker/docker-compose - -# DNS IP address configuration -echo "nameserver "$DNS_IP_ADDR >> /etc/resolvconf/resolv.conf.d/head -resolvconf -u - -# Clone Gerrit repository -cd /opt -git clone -b $GERRIT_BRANCH --single-branch http://gerrit.onap.org/r/dcae/demo/startup/controller.git dcae-startup-vm-controller - -# Build a configuration file for the DCAE Controller -cd /opt/dcae-startup-vm-controller -mkdir -p /opt/app/dcae-controller -cat > /opt/app/dcae-controller/config.yaml << EOF_CONFIG -ZONE: $ZONE -STATE: $STATE -DCAE-VERSION: $DCAE_CODE_VERSION -HORIZON-URL: $HORIZON_URL/$OPENSTACK_USER -KEYSTONE-URL: $KEYSTONE_URL -OPENSTACK-TENANT-ID: $OPENSTACK_TENANT_ID -OPENSTACK-TENANT-NAME: $OPENSTACK_TENANT_NAME -OPENSTACK-REGION: $OPENSTACK_REGION -OPENSTACK-PRIVATE-NETWORK: $OPENSTACK_PRIVATE_NETWORK -OPENSTACK-USER: $OPENSTACK_USER -OPENSTACK-PASSWORD: $OPENSTACK_PASSWORD -OPENSTACK-KEYNAME: $OPENSTACK_KEYNAME -OPENSTACK-PUBKEY: $OPENSTACK_PUBKEY - -NEXUS-URL-ROOT: $NEXUS_URL_ROOT -NEXUS-USER: $NEXUS_USER -NEXUS-PASSWORD: $NEXUS_PASSWORD -NEXUS-URL-SNAPSHOTS: $NEXUS_URL_SNAPSHOTS -NEXUS-RAWURL: $NEXUS_REPO - -DOCKER-REGISTRY: $DOCKER_REGISTRY - -GIT-MR-REPO: http://gerrit.onap.org/r/dcae/demo/startup/message-router.git -EOF_CONFIG - -# Run docker containers -cd /opt -./dcae_vm_init.sh
\ No newline at end of file diff --git a/boot/dns_install.sh b/boot/dns_install.sh deleted file mode 100644 index 710ff98d..00000000 --- a/boot/dns_install.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -# Read configuration files -NEXUS_REPO=$(cat /opt/config/nexus_repo.txt) -ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) -CLOUD_ENV=$(cat /opt/config/cloud_env.txt) - -# Add host name to /etc/host to avoid warnings in openstack images -if [[ $CLOUD_ENV == "openstack" ]] -then - echo 127.0.0.1 $(hostname) >> /etc/hosts -fi - -# Download dependencies -add-apt-repository -y ppa:openjdk-r/ppa -apt-get update -apt-get install -y apt-transport-https ca-certificates wget openjdk-8-jdk bind9 bind9utils bind9-doc ntp ntpdate - -# Set the Bind configuration file name based on the deployment environment -if [[ $CLOUD_ENV == "openstack" ]] -then - ZONE_FILE="bind_zones" - OPTIONS_FILE="bind_options" -else - ZONE_FILE="db_simpledemo_openecomp_org" - OPTIONS_FILE="named.conf.options" -fi - -# Download script -mkdir /etc/bind/zones -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/$ZONE_FILE -o /etc/bind/zones/db.simpledemo.openecomp.org -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/$OPTIONS_FILE -o /etc/bind/named.conf.options -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/named.conf.local -o /etc/bind/named.conf.local - -# Set the private IP address of each ONAP VM in the Bind configuration in OpenStack deployments -if [[ $CLOUD_ENV == "openstack" ]] -then - sed -i "s/dns_ip_addr/"$(cat /opt/config/dns_ip_addr.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/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 - sed -i "s/mso_ip_addr/"$(cat /opt/config/mso_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org - sed -i "s/mr_ip_addr/"$(cat /opt/config/mr_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org - sed -i "s/policy_ip_addr/"$(cat /opt/config/policy_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org - sed -i "s/portal_ip_addr/"$(cat /opt/config/portal_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org - sed -i "s/robot_ip_addr/"$(cat /opt/config/robot_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org - sed -i "s/sdc_ip_addr/"$(cat /opt/config/sdc_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org - sed -i "s/sdnc_ip_addr/"$(cat /opt/config/sdnc_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org - sed -i "s/vid_ip_addr/"$(cat /opt/config/vid_ip_addr.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org - sed -i "s/dcae_coll_ip_addr/"$(cat /opt/config/dcae_coll_float_ip.txt)"/g" /etc/bind/zones/db.simpledemo.openecomp.org -fi - -# Configure Bind -modprobe ip_gre -sed -i "s/OPTIONS=.*/OPTIONS=\"-4 -u bind\"/g" /etc/default/bind9 -service bind9 restart
\ No newline at end of file diff --git a/boot/mr_install.sh b/boot/mr_install.sh deleted file mode 100644 index b00457d3..00000000 --- a/boot/mr_install.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -# Read configuration files -NEXUS_REPO=$(cat /opt/config/nexus_repo.txt) -ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) -DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) -CLOUD_ENV=$(cat /opt/config/cloud_env.txt) -GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) - -# Add host name to /etc/host to avoid warnings in openstack images -if [[ $CLOUD_ENV == "openstack" ]] -then - echo 127.0.0.1 $(hostname) >> /etc/hosts -fi - -# Download dependencies -add-apt-repository -y ppa:openjdk-r/ppa -apt-get update -apt-get install -y apt-transport-https ca-certificates wget make openjdk-8-jdk git ntp ntpdate - -# Download scripts from Nexus -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/mr_vm_init.sh -o /opt/mr_vm_init.sh -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/mr_serv.sh -o /opt/mr_serv.sh -chmod +x /opt/mr_vm_init.sh -chmod +x /opt/mr_serv.sh -mv /opt/mr_serv.sh /etc/init.d -update-rc.d mr_serv.sh defaults - -# Download and install docker-engine and docker-compose -echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list -apt-get update -apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual -apt-get install -y --allow-unauthenticated docker-engine - -mkdir /opt/docker -curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname -s`-`uname -m` > /opt/docker/docker-compose -chmod +x /opt/docker/docker-compose - -# DNS IP address configuration -echo "nameserver "$DNS_IP_ADDR >> /etc/resolvconf/resolv.conf.d/head -resolvconf -u - -# Clone Gerrit repository and run docker containers -cd /opt -git clone -b $GERRIT_BRANCH --single-branch http://gerrit.onap.org/r/dcae/demo/startup/message-router.git dcae-startup-vm-message-router -./mr_vm_init.sh
\ No newline at end of file diff --git a/boot/mso_install.sh b/boot/mso_install.sh deleted file mode 100644 index 9c10e303..00000000 --- a/boot/mso_install.sh +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/bash - -# Read configuration files -NEXUS_REPO=$(cat /opt/config/nexus_repo.txt) -ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) -DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) -CLOUD_ENV=$(cat /opt/config/cloud_env.txt) -OPENSTACK_API_KEY=$(cat /opt/config/openstack_api_key.txt) -GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) - -# Add host name to /etc/host to avoid warnings in openstack images -if [[ $CLOUD_ENV == "openstack" ]] -then - echo 127.0.0.1 $(hostname) >> /etc/hosts -fi - -# Download dependencies -add-apt-repository -y ppa:openjdk-r/ppa -apt-get update -apt-get install -y apt-transport-https ca-certificates wget openjdk-8-jdk git ntp ntpdate - -# Download scripts from Nexus -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/mso_vm_init.sh -o /opt/mso_vm_init.sh -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/mso_serv.sh -o /opt/mso_serv.sh -chmod +x /opt/mso_vm_init.sh -chmod +x /opt/mso_serv.sh -mv /opt/mso_serv.sh /etc/init.d -update-rc.d mso_serv.sh defaults - -# Download and install docker-engine and docker-compose -echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list -apt-get update -apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual -apt-get install -y --allow-unauthenticated docker-engine - -mkdir /opt/docker -curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname -s`-`uname -m` > /opt/docker/docker-compose -chmod +x /opt/docker/docker-compose - -# DNS IP address configuration -echo "nameserver "$DNS_IP_ADDR >> /etc/resolvconf/resolv.conf.d/head -resolvconf -u - -# Clone Gerrit repository -cd /opt -git clone -b $GERRIT_BRANCH --single-branch http://gerrit.onap.org/r/mso/docker-config.git test_lab -MSO_ENCRYPTION_KEY=$(cat /opt/test_lab/encryption.key) -echo -n "$OPENSTACK_API_KEY" | openssl aes-128-ecb -e -K $MSO_ENCRYPTION_KEY -nosalt | xxd -c 256 -p > /opt/config/api_key.txt - -# Rename network interface in openstack Ubuntu 16.04 images. Then, reboot the VM to pick up changes -if [[ $CLOUD_ENV == "openstack" ]] -then - sed -i "s/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"net.ifnames=0 biosdevname=0\"/g" /etc/default/grub - grub-mkconfig -o /boot/grub/grub.cfg - sed -i "s/ens[0-9]*/eth0/g" /etc/network/interfaces.d/*.cfg - echo 'network: {config: disabled}' >> /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg - echo "APT::Periodic::Unattended-Upgrade \"0\";" >> /etc/apt/apt.conf.d/10periodic - reboot -fi - -# Run docker containers. For openstack Ubuntu 16.04 images this will run as a service after the VM has restarted -./mso_vm_init.sh
\ No newline at end of file diff --git a/boot/policy_install.sh b/boot/policy_install.sh deleted file mode 100644 index ab29f553..00000000 --- a/boot/policy_install.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -# Read configuration files -NEXUS_REPO=$(cat /opt/config/nexus_repo.txt) -ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) -DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) -CLOUD_ENV=$(cat /opt/config/cloud_env.txt) -GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) - -# Add host name to /etc/host to avoid warnings in openstack images -if [[ $CLOUD_ENV == "openstack" ]] -then - echo 127.0.0.1 $(hostname) >> /etc/hosts -fi - -# Download dependencies -add-apt-repository -y ppa:openjdk-r/ppa -apt-get update -apt-get install -y apt-transport-https ca-certificates wget openjdk-8-jdk git ntp ntpdate - -# Download scripts from Nexus -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/policy_vm_init.sh -o /opt/policy_vm_init.sh -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/policy_serv.sh -o /opt/policy_serv.sh -chmod +x /opt/policy_vm_init.sh -chmod +x /opt/policy_serv.sh -mv /opt/policy_serv.sh /etc/init.d -update-rc.d policy_serv.sh defaults - -# Download and install docker-engine and docker-compose -echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list -apt-get update -apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual -apt-get install -y --allow-unauthenticated docker-engine - -mkdir /opt/docker -curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname -s`-`uname -m` > /opt/docker/docker-compose -chmod +x /opt/docker/docker-compose - -# DNS IP address configuration -echo "nameserver "$DNS_IP_ADDR >> /etc/resolvconf/resolv.conf.d/head -resolvconf -u - -# Clone Gerrit repository and run docker containers -cd /opt -git clone -b $GERRIT_BRANCH --single-branch http://gerrit.onap.org/r/policy/docker.git policy -./policy_vm_init.sh
\ No newline at end of file diff --git a/boot/portal_install.sh b/boot/portal_install.sh deleted file mode 100644 index 4fc63061..00000000 --- a/boot/portal_install.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash - -# Read configuration files -NEXUS_REPO=$(cat /opt/config/nexus_repo.txt) -ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) -DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) -CLOUD_ENV=$(cat /opt/config/cloud_env.txt) -GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) - -# Add host name to /etc/host to avoid warnings in openstack images -if [[ $CLOUD_ENV == "openstack" ]] -then - echo 127.0.0.1 $(hostname) >> /etc/hosts -fi - -# Download dependencies -add-apt-repository -y ppa:openjdk-r/ppa -apt-get update -apt-get install -y apt-transport-https ca-certificates wget openjdk-8-jdk git unzip mysql-client-core-5.6 ntp ntpdate - -# Download scripts from Nexus -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/portal_vm_init.sh -o /opt/portal_vm_init.sh -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/portal_serv.sh -o /opt/portal_serv.sh -chmod +x /opt/portal_vm_init.sh -chmod +x /opt/portal_serv.sh -mv /opt/portal_serv.sh /etc/init.d -update-rc.d portal_serv.sh defaults - -# Download and install docker-engine and docker-compose -echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list -apt-get update -apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual -apt-get install -y --allow-unauthenticated docker-engine - -mkdir /opt/docker -curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname -s`-`uname -m` > /opt/docker/docker-compose -chmod +x /opt/docker/docker-compose - -# DNS IP address configuration -echo "nameserver "$DNS_IP_ADDR >> /etc/resolvconf/resolv.conf.d/head -resolvconf -u - -# Clone Gerrit repository and run docker containers -mkdir -p /PROJECT/OpenSource/UbuntuEP/logs -cd /opt -git clone -b $GERRIT_BRANCH --single-branch http://gerrit.onap.org/r/portal.git -./portal_vm_init.sh
\ No newline at end of file diff --git a/boot/robot_install.sh b/boot/robot_install.sh deleted file mode 100644 index 16b31142..00000000 --- a/boot/robot_install.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash - -# Read configuration files -NEXUS_REPO=$(cat /opt/config/nexus_repo.txt) -ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) -DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) -CLOUD_ENV=$(cat /opt/config/cloud_env.txt) -GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) - -# Add host name to /etc/host to avoid warnings in openstack images -if [[ $CLOUD_ENV == "openstack" ]] -then - echo 127.0.0.1 $(hostname) >> /etc/hosts -fi - -# Download dependencies -add-apt-repository -y ppa:openjdk-r/ppa -apt-get update -apt-get install -y apt-transport-https ca-certificates wget openjdk-8-jdk git ntp ntpdate - -# Download scripts from Nexus -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/robot_vm_init.sh -o /opt/robot_vm_init.sh -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/robot_serv.sh -o /opt/robot_serv.sh -chmod +x /opt/robot_vm_init.sh -chmod +x /opt/robot_serv.sh -mv /opt/robot_serv.sh /etc/init.d -update-rc.d robot_serv.sh defaults - -# Download and install docker-engine and docker-compose -echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list -apt-get update -apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual -apt-get install -y --allow-unauthenticated docker-engine - -mkdir /opt/docker -curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname -s`-`uname -m` > /opt/docker/docker-compose -chmod +x /opt/docker/docker-compose - -# DNS IP address configuration -echo "nameserver "$DNS_IP_ADDR >> /etc/resolvconf/resolv.conf.d/head -resolvconf -u - -# Clone Gerrit repository -mkdir -p /opt/eteshare/logs -mkdir -p /opt/eteshare/config -cd /opt -git clone -b $GERRIT_BRANCH --single-branch http://gerrit.onap.org/r/testsuite/properties.git testsuite/properties - -# Rename network interface in openstack Ubuntu 16.04 images. Then, reboot the VM to pick up changes -if [[ $CLOUD_ENV == "openstack" ]] -then - sed -i "s/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"net.ifnames=0 biosdevname=0\"/g" /etc/default/grub - grub-mkconfig -o /boot/grub/grub.cfg - sed -i "s/ens[0-9]*/eth0/g" /etc/network/interfaces.d/*.cfg - echo 'network: {config: disabled}' >> /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg - echo "APT::Periodic::Unattended-Upgrade \"0\";" >> /etc/apt/apt.conf.d/10periodic - reboot -fi - -# Run docker containers. For openstack Ubuntu 16.04 images this will run as a service after the VM has restarted -./robot_vm_init.sh
\ No newline at end of file diff --git a/boot/sdnc_install.sh b/boot/sdnc_install.sh deleted file mode 100644 index 03d49000..00000000 --- a/boot/sdnc_install.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -# Read configuration files -NEXUS_REPO=$(cat /opt/config/nexus_repo.txt) -ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) -DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) -CLOUD_ENV=$(cat /opt/config/cloud_env.txt) -GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) - -# Add host name to /etc/host to avoid warnings in openstack images -if [[ $CLOUD_ENV == "openstack" ]] -then - echo 127.0.0.1 $(hostname) >> /etc/hosts -fi - -# Download dependencies -add-apt-repository -y ppa:openjdk-r/ppa -apt-get update -apt-get install -y apt-transport-https ca-certificates wget openjdk-8-jdk git ntp ntpdate - -# Download scripts from Nexus -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/sdnc_vm_init.sh -o /opt/sdnc_vm_init.sh -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/sdnc_serv.sh -o /opt/sdnc_serv.sh -chmod +x /opt/sdnc_vm_init.sh -chmod +x /opt/sdnc_serv.sh -mv /opt/sdnc_serv.sh /etc/init.d -update-rc.d sdnc_serv.sh defaults - -# Download and install docker-engine and docker-compose -echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list -apt-get update -apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual -apt-get install -y --allow-unauthenticated docker-engine - -mkdir /opt/docker -curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname -s`-`uname -m` > /opt/docker/docker-compose -chmod +x /opt/docker/docker-compose - -# DNS IP address configuration -echo "nameserver "$DNS_IP_ADDR >> /etc/resolvconf/resolv.conf.d/head -resolvconf -u - -# Clone Gerrit repository and run docker containers -cd /opt -git clone -b $GERRIT_BRANCH --single-branch http://gerrit.onap.org/r/sdnc/oam.git sdnc -./sdnc_vm_init.sh
\ No newline at end of file diff --git a/boot/vid_install.sh b/boot/vid_install.sh deleted file mode 100644 index 438a2032..00000000 --- a/boot/vid_install.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -# Read configuration files -NEXUS_REPO=$(cat /opt/config/nexus_repo.txt) -ARTIFACTS_VERSION=$(cat /opt/config/artifacts_version.txt) -DNS_IP_ADDR=$(cat /opt/config/dns_ip_addr.txt) -CLOUD_ENV=$(cat /opt/config/cloud_env.txt) -GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt) - -# Add host name to /etc/host to avoid warnings in openstack images -if [[ $CLOUD_ENV == "openstack" ]] -then - echo 127.0.0.1 $(hostname) >> /etc/hosts -fi - -# Download dependencies -add-apt-repository -y ppa:openjdk-r/ppa -apt-get update -apt-get install -y apt-transport-https ca-certificates wget openjdk-8-jdk git ntp ntpdate - -# Download scripts from Nexus -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/vid_vm_init.sh -o /opt/vid_vm_init.sh -curl -k $NEXUS_REPO/org.openecomp.demo/boot/$ARTIFACTS_VERSION/vid_serv.sh -o /opt/vid_serv.sh -chmod +x /opt/vid_vm_init.sh -chmod +x /opt/vid_serv.sh -mv /opt/vid_serv.sh /etc/init.d -update-rc.d vid_serv.sh defaults - -# Download and install docker-engine and docker-compose -echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list -apt-get update -apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual -apt-get install -y --allow-unauthenticated docker-engine - -mkdir /opt/docker -curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname -s`-`uname -m` > /opt/docker/docker-compose -chmod +x /opt/docker/docker-compose - -# DNS IP address configuration -echo "nameserver "$DNS_IP_ADDR >> /etc/resolvconf/resolv.conf.d/head -resolvconf -u - -# Clone Gerrit repository and run docker containers -cd /opt -git clone -b $GERRIT_BRANCH --single-branch http://gerrit.onap.org/r/vid.git -./vid_vm_init.sh
\ No newline at end of file diff --git a/vnfs/VES/.DS_Store b/vnfs/VES/.DS_Store Binary files differdeleted file mode 100644 index 4b31f725..00000000 --- a/vnfs/VES/.DS_Store +++ /dev/null diff --git a/vnfs/VES/code/.DS_Store b/vnfs/VES/code/.DS_Store Binary files differdeleted file mode 100644 index a9cc98d2..00000000 --- a/vnfs/VES/code/.DS_Store +++ /dev/null |