From 5da6658029af19d1ffbb700ef9d2b2575075c402 Mon Sep 17 00:00:00 2001 From: Ruoyu Ying Date: Wed, 18 Jul 2018 11:39:52 +0800 Subject: Clean up script for OOF HEAT based deployment Removed configuration for MUSIC, removed unused certification and fixed hard coded values Change-Id: I665d3f40f1836ba448ad8ee59971be5debb304e5 Issue-ID: OPTFRA-300 Signed-off-by: Ruoyu Ying --- boot/oof_vm_init.sh | 216 +++++++++++++++------------------------------------- 1 file changed, 62 insertions(+), 154 deletions(-) (limited to 'boot') diff --git a/boot/oof_vm_init.sh b/boot/oof_vm_init.sh index fd654430..bbb8d9b2 100644 --- a/boot/oof_vm_init.sh +++ b/boot/oof_vm_init.sh @@ -1,16 +1,11 @@ #!/bin/bash -CERT=/opt/optf-has/aai_cert.cer -KEY=/opt/optf-has/aai_key.key -BUNDLE=/opt/optf-has/AAF_RootCA.cer - NEXUS_USERNAME=$(cat /opt/config/nexus_username.txt) NEXUS_PASSWD=$(cat /opt/config/nexus_password.txt) NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt) -CASS_MUSIC_IMAGE_VERSION=$(cat /opt/config/cass_version.txt) -MUSIC_IMAGE_VERSION=$(cat /opt/config/music_version.txt) HAS_IMAGE_VERSION=$(cat /opt/config/has_docker_version.txt) OSDF_IMAGE_VERSION=$(cat /opt/config/osdf_docker_version.txt) +MUSIC_URL=music.api.simpledemo.onap.org cd /opt/optf-has git pull @@ -18,160 +13,19 @@ git pull COND_CONF=/opt/optf-has/conductor.conf LOG_CONF=/opt/optf-has/log.conf -#!!! THE FOLLOWING LINE IS A PLACEHOLDER !!! +#Certification file for OOF-HAS +BUNDLE=/opt/optf-has/AAF_RootCA.cer AAI_cert=/usr/local/bin/AAF_RootCA.cer OSDF_IMG=${NEXUS_DOCKER_REPO}/onap/optf-osdf:${OSDF_IMAGE_VERSION} HAS_IMG=${NEXUS_DOCKER_REPO}/onap/optf-has:${HAS_IMAGE_VERSION} -# MUSIC parameters -CASS_IMG=${NEXUS_DOCKER_REPO}/onap/music/cassandra_music:$CASS_MUSIC_IMAGE_VERSION -MUSIC_IMG=${NEXUS_DOCKER_REPO}/onap/music/music:$MUSIC_IMAGE_VERSION -TOMCAT_IMG=library/tomcat:8.5 -ZK_IMG=library/zookeeper:3.4 -WORK_DIR=/opt/optf-has -CASS_USERNAME=cassandra1 -CASS_PASSWORD=cassandra1 - # pull images from repo docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO docker pull ${OSDF_IMG} -docker pull ${ZK_IMG} -docker pull ${TOMCAT_IMG} -docker pull ${CASS_IMG} -docker pull ${MUSIC_IMG} docker pull ${HAS_IMG} - -#run optf-osdf - -OSDF_CONFIG=/opt/optf-osdf/config/osdf_config.yaml -HAS_HOST=$(docker inspect --format '{{ .NetworkSettings.Networks.bridge.IPAddress}}' api) - -mkdir -p /opt/optf-osdf/config - -cat > $OSDF_CONFIG< /opt/optf-has/music/properties/music.properties< $OSDF_CONFIG<