From df17a7ff9ba569227e8a2b5b1863800bbb8e1806 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Tue, 13 Mar 2018 12:36:55 -0700 Subject: Deprecate vagrant-onap tool The vagrant-onap tool needs to be moved to its own repo to have better control of versions and autonomy. This change removes the project from integration repository. Change-Id: I90bd4505a9fc7376c31a780aa1b833ee2663af3e Signed-off-by: Victor Morales Depends-On: I79df8c35fccaa266a789217d441a6cf1183bd42a Issue-ID: INT-441 --- bootstrap/vagrant-onap/lib/_onap_functions | 107 ----------------------------- 1 file changed, 107 deletions(-) delete mode 100755 bootstrap/vagrant-onap/lib/_onap_functions (limited to 'bootstrap/vagrant-onap/lib/_onap_functions') diff --git a/bootstrap/vagrant-onap/lib/_onap_functions b/bootstrap/vagrant-onap/lib/_onap_functions deleted file mode 100755 index c65e58958..000000000 --- a/bootstrap/vagrant-onap/lib/_onap_functions +++ /dev/null @@ -1,107 +0,0 @@ -#!/bin/bash - -# create_configuration_files() - Store credentials in files -function create_configuration_files { - local onap_config_folder="/opt/config" - - mkdir -p $onap_config_folder - pushd $onap_config_folder - echo $nexus_docker_repo > nexus_docker_repo.txt - echo $nexus_username > nexus_username.txt - echo $nexus_password > nexus_password.txt - echo $openstack_username > openstack_username.txt - echo $openstack_tenant_id > tenant_id.txt - echo $dmaap_topic > dmaap_topic.txt - echo $docker_version > docker_version.txt - popd -} - -# docker_openecomp_login() - Login to OpenECOMP Docker Hub -function docker_openecomp_login { - install_docker - docker login -u ${nexus_username:-docker} -p ${nexus_password:-docker} ${nexus_docker_repo:-nexus3.onap.org:10001} -} - -# pull_openecomp_image() - Pull Docker container image from a Docker Registry Hub -function pull_openecomp_image { - local image=$1 - local tag=$2 - docker_openecomp_login - pull_docker_image ${nexus_docker_repo:-nexus3.onap.org:10001}/openecomp/${image}:${docker_version:-latest} $tag - docker logout -} - -# pull_onap_image() - Pull Docker container image from a Docker Registry Hub -function pull_onap_image { - local image=$1 - local tag=$2 - docker_openecomp_login - pull_docker_image ${nexus_docker_repo:-nexus3.onap.org:10001}/onap/${image}:${docker_version:-latest} $tag - docker logout -} - -# configure_bind()- Configure bind utils -function configure_bind { - _install_bind - mkdir /etc/bind/zones - - curl -k $nexus_repo/org.openecomp.demo/boot/$artifacts_version/db_simpledemo_openecomp_org -o /etc/bind/zones/db.simpledemo.openecomp.org - curl -k $nexus_repo/org.openecomp.demo/boot/$artifacts_version/named.conf.options -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 - - modprobe ip_gre - sed -i "s/OPTIONS=.*/OPTIONS=\"-4 -u bind\"/g" /etc/default/bind9 - service bind9 restart -} - -# _configure_maven() - This function creates a maven configuration file in case that doesn't exist -function _configure_maven { - local proxies_start=" " - local mvn_http="" - local mvn_https="" - - if [ $http_proxy ] | [ $https_proxy ]; then - proxies_start=" " - proxies=" " - proxies_end=" <\/proxies>" - if [ $http_proxy ]; then - proxy_domain=`echo $http_proxy | awk -F/ '{print $3}' | awk -F: '{print $1}'` - proxy_port=`echo $http_proxy | awk -F/ '{print $3}' | awk -F: '{print $2}'` - mvn_http="\n http\n true\n http\n $proxy_domain\n $proxy_port\n ${no_proxy}\n " - fi - if [ $https_proxy ]; then - proxy_domain=`echo $https_proxy | awk -F/ '{print $3}' | awk -F: '{print $1}'` - proxy_port=`echo $https_proxy | awk -F/ '{print $3}' | awk -F: '{print $2}'` - mvn_https="\n https\n true\n https\n $proxy_domain\n $proxy_port\n ${no_proxy}\n " - fi - fi - - mkdir -p $(dirname $mvn_conf_file) - if [ ! -f $mvn_conf_file ]; then - if [[ "$enable_oparent" == "True" ]]; then - clone_repo oparent - cp $git_src_folder/oparent/settings.xml $mvn_conf_file - sed -i "s|<\/profiles>|<\/profiles>\n%PROXIES_START%\n%PROXIES% %HTTP_PROXY%\n%PROXIES% %HTTPS_PROXY%\n%PROXIES_END%|g" $mvn_conf_file - else - cp /var/onap/files/settings.xml $mvn_conf_file - fi - - sed -e " - s|%PROXIES_START%|$proxies_start|g; - s|%PROXIES%|$proxies|g; - s|%HTTP_PROXY%|$mvn_http|g; - s|%HTTPS_PROXY%|$mvn_https|g; - s|%PROXIES_END%|$proxies_end|g - " -i $mvn_conf_file - fi -} - -# configure_service() - Download and configure a specific service in upstart -function configure_service { - local service_script=$1 - curl -k $nexus_repo/org.openecomp.demo/boot/$artifacts_version/$service_script -o /etc/init.d/$service_script - chmod +x /etc/init.d/$service_script - update-rc.d $service_script defaults -} -- cgit 1.2.3-korg