X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=heat%2FOpenECOMP%2Fonap_openstack.yaml;h=a377b5f33993e3f04a74b8907e1f9e8205dd7038;hb=198665230dd77de3d182ef8ebcf7b87e23bc4298;hp=3a54179059c9b7cba458539b6724a5232877c16a;hpb=5ee5a74a8f0f9b47d5519475349ee1c1e92e6052;p=demo.git diff --git a/heat/OpenECOMP/onap_openstack.yaml b/heat/OpenECOMP/onap_openstack.yaml index 3a541790..a377b5f3 100644 --- a/heat/OpenECOMP/onap_openstack.yaml +++ b/heat/OpenECOMP/onap_openstack.yaml @@ -66,14 +66,6 @@ parameters: nexus_password: type: string description: Nexus Repository Password - - gitlab_username: - type: string - description: Gitlab Repository username - - gitlab_password: - type: string - description: Gitlab Repository Password artifacts_version: type: string @@ -297,7 +289,7 @@ resources: __mso_ip_addr__: { get_param: mso_ip_addr } __mr_ip_addr__: { get_param: mr_ip_addr } __policy_ip_addr__: { get_param: policy_ip_addr } - __portal_ip_addr__: { get_param: policy_ip_addr } + __portal_ip_addr__: { get_param: portal_ip_addr } __robot_ip_addr__: { get_param: robot_ip_addr } __sdc_ip_addr__: { get_param: sdc_ip_addr } __sdnc_ip_addr__: { get_param: sdnc_ip_addr } @@ -395,8 +387,6 @@ resources: __nexus_docker_repo__: { get_param: nexus_docker_repo } __nexus_username__: { get_param: nexus_username } __nexus_password__: { get_param: nexus_password } - __gitlab_username__: { get_param: gitlab_username } - __gitlab_password__: { get_param: gitlab_password } __dmaap_topic__: { get_param: dmaap_topic } __artifacts_version__: { get_param: artifacts_version } __dns_ip_addr__: { get_param: dns_ip_addr } @@ -407,12 +397,21 @@ resources: hn=`hostname` echo 127.0.0.1 $hn >> /etc/hosts + # Create configuration files + mkdir -p /opt/config + echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt + echo "__nexus_username__" > /opt/config/nexus_username.txt + echo "__nexus_password__" > /opt/config/nexus_password.txt + echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt + echo "__docker_version__" > /opt/config/docker_version.txt + # 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 ntp ntpdate + 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__/docker_key.txt -o /opt/config/docker_key.txt 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 @@ -421,7 +420,8 @@ resources: update-rc.d aai_serv.sh defaults # Download and install docker-engine and docker-compose - apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D + DOCKER_KEY=$(cat /opt/config/docker_key.txt) + apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys $DOCKER_KEY 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 @@ -435,17 +435,6 @@ resources: 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 - - # Store credentials in files - mkdir -p /opt/config - echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt - echo "__nexus_username__" > /opt/config/nexus_username.txt - echo "__nexus_password__" > /opt/config/nexus_password.txt - echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt - echo "__gitlab_username__" > /opt/config/gitlab_username.txt - echo "__gitlab_password__" > /opt/config/gitlab_password.txt - echo "gerrit.onap.org" > /opt/config/gitlab_certname.txt - echo "__docker_version__" > /opt/config/docker_version.txt # DNS/GW IP address configuration echo "nameserver __dns_ip_addr__" >> /etc/resolvconf/resolv.conf.d/head @@ -489,8 +478,6 @@ resources: __nexus_docker_repo__: { get_param: nexus_docker_repo } __nexus_username__: { get_param: nexus_username } __nexus_password__: { get_param: nexus_password } - __gitlab_username__: { get_param: gitlab_username } - __gitlab_password__: { get_param: gitlab_password } __openstack_username__: { get_param: openstack_username } __openstack_tenant_id__: { get_param: openstack_tenant_id } __openstack_api_key__: { get_param: openstack_api_key } @@ -505,6 +492,17 @@ resources: hn=`hostname` echo 127.0.0.1 $hn >> /etc/hosts + + # Create configuration files + mkdir -p /opt/config + echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt + echo "__nexus_username__" > /opt/config/nexus_username.txt + echo "__nexus_password__" > /opt/config/nexus_password.txt + echo "__openstack_username__" > /opt/config/openstack_username.txt + echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt + echo "__keystone_url__" > /opt/config/keystone.txt + echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt + echo "__docker_version__" > /opt/config/docker_version.txt # Download dependencies add-apt-repository -y ppa:openjdk-r/ppa @@ -512,6 +510,7 @@ resources: 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__/docker_key.txt -o /opt/config/docker_key.txt 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 @@ -520,7 +519,8 @@ resources: update-rc.d mso_serv.sh defaults # Download and install docker-engine and docker-compose - apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D + DOCKER_KEY=$(cat /opt/config/docker_key.txt) + apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys $DOCKER_KEY 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 @@ -531,22 +531,9 @@ resources: 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 - # Store credentials in files - mkdir -p /opt/config - echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt - echo "__nexus_username__" > /opt/config/nexus_username.txt - echo "__nexus_password__" > /opt/config/nexus_password.txt - echo "__gitlab_username__" > /opt/config/gitlab_username.txt - echo "__gitlab_password__" > /opt/config/gitlab_password.txt - echo "__openstack_username__" > /opt/config/openstack_username.txt - echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt - echo "__keystone_url__" > /opt/config/keystone.txt - echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt - echo "__docker_version__" > /opt/config/docker_version.txt - # Clone Gerrit repository cd /opt - git clone -b __gerrit_branch__ --single-branch https://__gitlab_username__:__gitlab_password__@gerrit.onap.org/r/a/mso/docker-config.git test_lab + 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 @@ -597,8 +584,6 @@ resources: __nexus_docker_repo__: { get_param: nexus_docker_repo } __nexus_username__: { get_param: nexus_username } __nexus_password__: { get_param: nexus_password } - __gitlab_username__: { get_param: gitlab_username } - __gitlab_password__: { get_param: gitlab_password } __artifacts_version__: { get_param: artifacts_version } __dns_ip_addr__: { get_param: dns_ip_addr } __gerrit_branch__: { get_param: gerrit_branch } @@ -607,13 +592,20 @@ resources: hn=`hostname` echo 127.0.0.1 $hn >> /etc/hosts + + # Create configuration files + mkdir -p /opt/config + echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt + echo "__nexus_username__" > /opt/config/nexus_username.txt + echo "__nexus_password__" > /opt/config/nexus_password.txt # 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 ntp ntpdate + 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__/docker_key.txt -o /opt/config/docker_key.txt 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 @@ -622,7 +614,8 @@ resources: update-rc.d mr_serv.sh defaults # Download and install docker-engine and docker-compose - apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D + DOCKER_KEY=$(cat /opt/config/docker_key.txt) + apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys $DOCKER_KEY 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 @@ -633,17 +626,9 @@ resources: 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 - # Store credentials in files - mkdir -p /opt/config - echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt - echo "__nexus_username__" > /opt/config/nexus_username.txt - echo "__nexus_password__" > /opt/config/nexus_password.txt - echo "__gitlab_username__" > /opt/config/gitlab_username.txt - echo "__gitlab_password__" > /opt/config/gitlab_password.txt - # Clone Gerrit repository cd /opt - git clone -b __gerrit_branch__ --single-branch https://__gitlab_username__:__gitlab_password__@gerrit.onap.org/r/a/dcae/demo/startup/message-router.git dcae-startup-vm-message-router + git clone -b __gerrit_branch__ --single-branch http://gerrit.onap.org/r/dcae/demo/startup/message-router.git dcae-startup-vm-message-router # DNS/GW IP address configuration echo "nameserver __dns_ip_addr__" >> /etc/resolvconf/resolv.conf.d/head @@ -687,8 +672,6 @@ resources: __nexus_docker_repo__: { get_param: nexus_docker_repo } __nexus_username__: { get_param: nexus_username } __nexus_password__: { get_param: nexus_password } - __gitlab_username__: { get_param: gitlab_username } - __gitlab_password__: { get_param: gitlab_password } __network_name__: { get_attr: [oam_ecomp, name] } __openstack_username__: { get_param: openstack_username } __openstack_api_key__: { get_param : openstack_api_key } @@ -702,14 +685,28 @@ resources: hn=`hostname` echo 127.0.0.1 $hn >> /etc/hosts + + # Create configuration files + mkdir -p /opt/config + echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt + echo "__nexus_repo__" > /opt/config/nexus_repo.txt + echo "__nexus_username__" > /opt/config/nexus_username.txt + echo "__nexus_password__" > /opt/config/nexus_password.txt + echo "__network_name__" > /opt/config/network.txt + echo "__openstack_username__" > /opt/config/openstack_username.txt + echo "__openstack_api_key__" > /opt/config/openstack_password.txt + echo "__openstack_region__" > /opt/config/region.txt + echo "__artifacts_version__" > /opt/config/artifacts_version.txt + echo "__docker_version__" > /opt/config/docker_version.txt # 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 ntp ntpdate + apt-get install -y apt-transport-https ca-certificates wget openjdk-8-jdk git ntp ntpdate echo "APT::Periodic::Unattended-Upgrade \"0\";" >> /etc/apt/apt.conf.d/10periodic # Download scripts from Nexus + curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/docker_key.txt -o /opt/config/docker_key.txt 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 @@ -718,7 +715,8 @@ resources: update-rc.d robot_serv.sh defaults # Download and install docker-engine and docker-compose - apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D + DOCKER_KEY=$(cat /opt/config/docker_key.txt) + apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys $DOCKER_KEY 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 @@ -727,22 +725,7 @@ resources: 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 - - # Store credentials in files - mkdir -p /opt/config - echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt - echo "__nexus_repo__" > /opt/config/nexus_repo.txt - echo "__nexus_username__" > /opt/config/nexus_username.txt - echo "__nexus_password__" > /opt/config/nexus_password.txt - echo "__gitlab_username__" > /opt/config/gitlab_username.txt - echo "__gitlab_password__" > /opt/config/gitlab_password.txt - echo "__network_name__" > /opt/config/network.txt - echo "__openstack_username__" > /opt/config/openstack_username.txt - echo "__openstack_api_key__" > /opt/config/openstack_password.txt - echo "__openstack_region__" > /opt/config/region.txt - echo "__artifacts_version__" > /opt/config/artifacts_version.txt - echo "__docker_version__" > /opt/config/docker_version.txt + chmod +x /opt/docker/docker-compose # Execute RobotETE-specific instructions: create share folder to run as a docker volume mkdir -p /opt/eteshare/logs @@ -750,7 +733,7 @@ resources: # Clone Gerrit repository cd /opt - git clone -b __gerrit_branch__ --single-branch https://__gitlab_username__:__gitlab_password__@gerrit.onap.org/r/a/testsuite/properties.git testsuite/properties + git clone -b __gerrit_branch__ --single-branch http://gerrit.onap.org/r/testsuite/properties.git testsuite/properties # Rename network interface sed -i "s/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"net.ifnames=0 biosdevname=0\"/g" /etc/default/grub @@ -799,8 +782,6 @@ resources: __nexus_docker_repo__: { get_param: nexus_docker_repo } __nexus_username__: { get_param: nexus_username } __nexus_password__: { get_param: nexus_password } - __gitlab_username__: { get_param: gitlab_username } - __gitlab_password__: { get_param: gitlab_password } __artifacts_version__: { get_param: artifacts_version } __dns_ip_addr__: { get_param: dns_ip_addr } __docker_version__: { get_param: docker_version } @@ -810,6 +791,13 @@ resources: hn=`hostname` echo 127.0.0.1 $hn >> /etc/hosts + + # Create configuration files + mkdir -p /opt/config + echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt + echo "__nexus_username__" > /opt/config/nexus_username.txt + echo "__nexus_password__" > /opt/config/nexus_password.txt + echo "__docker_version__" > /opt/config/docker_version.txt # Download dependencies add-apt-repository -y ppa:openjdk-r/ppa @@ -817,6 +805,7 @@ resources: apt-get install -y apt-transport-https ca-certificates wget openjdk-8-jdk make git ntp ntpdate # Download scripts from Nexus + curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/docker_key.txt -o /opt/config/docker_key.txt 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 @@ -825,7 +814,8 @@ resources: update-rc.d vid_serv.sh defaults # Download and install docker-engine and docker-compose - apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D + DOCKER_KEY=$(cat /opt/config/docker_key.txt) + apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys $DOCKER_KEY 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 @@ -836,18 +826,9 @@ resources: 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 - # Store credentials in files - mkdir -p /opt/config - echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt - echo "__nexus_username__" > /opt/config/nexus_username.txt - echo "__nexus_password__" > /opt/config/nexus_password.txt - echo "__gitlab_username__" > /opt/config/gitlab_username.txt - echo "__gitlab_password__" > /opt/config/gitlab_password.txt - echo "__docker_version__" > /opt/config/docker_version.txt - # Clone Gerrit repository cd /opt - git clone -b __gerrit_branch__ --single-branch https://__gitlab_username__:__gitlab_password__@gerrit.onap.org/r/a/vid.git + git clone -b __gerrit_branch__ --single-branch http://gerrit.onap.org/r/vid.git # DNS/GW IP address configuration echo "nameserver __dns_ip_addr__" >> /etc/resolvconf/resolv.conf.d/head @@ -891,8 +872,6 @@ resources: __nexus_docker_repo__: { get_param: nexus_docker_repo } __nexus_username__: { get_param: nexus_username } __nexus_password__: { get_param: nexus_password } - __gitlab_username__: { get_param: gitlab_username } - __gitlab_password__: { get_param: gitlab_password } __artifacts_version__: { get_param: artifacts_version } __dns_ip_addr__: { get_param: dns_ip_addr } __docker_version__: { get_param: docker_version } @@ -902,13 +881,21 @@ resources: hn=`hostname` echo 127.0.0.1 $hn >> /etc/hosts + + # Create configuration files + mkdir -p /opt/config + echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt + echo "__nexus_username__" > /opt/config/nexus_username.txt + echo "__nexus_password__" > /opt/config/nexus_password.txt + echo "__docker_version__" > /opt/config/docker_version.txt # 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 ntp ntpdate + 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__/docker_key.txt -o /opt/config/docker_key.txt 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 @@ -917,7 +904,8 @@ resources: update-rc.d sdnc_serv.sh defaults # Download and install docker-engine and docker-compose - apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D + DOCKER_KEY=$(cat /opt/config/docker_key.txt) + apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys $DOCKER_KEY 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 @@ -927,19 +915,10 @@ resources: 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 - - # Store credentials in files - mkdir -p /opt/config - echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt - echo "__nexus_username__" > /opt/config/nexus_username.txt - echo "__nexus_password__" > /opt/config/nexus_password.txt - echo "__gitlab_username__" > /opt/config/gitlab_username.txt - echo "__gitlab_password__" > /opt/config/gitlab_password.txt - echo "__docker_version__" > /opt/config/docker_version.txt # Clone Gerrit repository cd /opt - git clone -b __gerrit_branch__ --single-branch https://__gitlab_username__:__gitlab_password__@gerrit.onap.org/r/a/sdnc/oam.git sdnc + git clone -b __gerrit_branch__ --single-branch http://gerrit.onap.org/r/sdnc/oam.git sdnc # DNS/GW IP address configuration echo "nameserver __dns_ip_addr__" >> /etc/resolvconf/resolv.conf.d/head @@ -996,8 +975,6 @@ resources: __nexus_docker_repo__: { get_param: nexus_docker_repo } __nexus_username__: { get_param: nexus_username } __nexus_password__: { get_param: nexus_password } - __gitlab_username__: { get_param: gitlab_username } - __gitlab_password__: { get_param: gitlab_password } __env_name__: { get_param: dmaap_topic } __artifacts_version__: { get_param: artifacts_version } __dns_ip_addr__: { get_param: dns_ip_addr } @@ -1010,13 +987,24 @@ resources: hn=`hostname` echo 127.0.0.1 $hn >> /etc/hosts + + # Create configuration files + mkdir -p /opt/config + echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt + echo "__nexus_username__" > /opt/config/nexus_username.txt + echo "__nexus_password__" > /opt/config/nexus_password.txt + echo "__env_name__" > /opt/config/env_name.txt + echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt + echo "__public_ip__" > /opt/config/public_ip.txt + echo "__docker_version__" > /opt/config/docker_version.txt # 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 ntp ntpdate + 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__/docker_key.txt -o /opt/config/docker_key.txt 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 @@ -1025,7 +1013,8 @@ resources: update-rc.d asdc_serv.sh defaults # Download and install docker-engine and docker-compose - apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D + DOCKER_KEY=$(cat /opt/config/docker_key.txt) + apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys $DOCKER_KEY 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 @@ -1043,18 +1032,6 @@ resources: mount /dev/vdb1 /data echo "/dev/vdb1 /data ext4 errors=remount-ro,noatime,barrier=0 0 1" >> /etc/fstab - # Store credentials in files - mkdir -p /opt/config - echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt - echo "__nexus_username__" > /opt/config/nexus_username.txt - echo "__nexus_password__" > /opt/config/nexus_password.txt - echo "__gitlab_username__" > /opt/config/gitlab_username.txt - echo "__gitlab_password__" > /opt/config/gitlab_password.txt - echo "__env_name__" > /opt/config/env_name.txt - echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt - echo "__public_ip__" > /opt/config/public_ip.txt - echo "__docker_version__" > /opt/config/docker_version.txt - # Run SDC-specific instructions cd /opt mkdir -p /data/environments @@ -1066,7 +1043,7 @@ resources: chmod 777 /data/logs/FE # Clone Gerrit repository - git clone -b __gerrit_branch__ --single-branch https://__gitlab_username__:__gitlab_password__@gerrit.onap.org/r/a/sdc.git + 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' @@ -1122,8 +1099,6 @@ resources: __nexus_docker_repo__: { get_param: nexus_docker_repo } __nexus_username__: { get_param: nexus_username } __nexus_password__: { get_param: nexus_password } - __gitlab_username__: { get_param: gitlab_username } - __gitlab_password__: { get_param: gitlab_password } __artifacts_version__: { get_param: artifacts_version } __dns_ip_addr__: { get_param: dns_ip_addr } __public_ip__: { get_attr: [portal_floating_ip, floating_ip_address] } @@ -1135,12 +1110,21 @@ resources: hn=`hostname` echo 127.0.0.1 $hn >> /etc/hosts + # Create configuration files + mkdir -p /opt/config + echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt + echo "__nexus_username__" > /opt/config/nexus_username.txt + echo "__nexus_password__" > /opt/config/nexus_password.txt + echo "__public_ip__" > /opt/config/public_ip.txt + echo "__docker_version__" > /opt/config/docker_version.txt + # 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 unzip mysql-client-core-5.6 ntp ntpdate + 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__/docker_key.txt -o /opt/config/docker_key.txt 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 @@ -1149,7 +1133,8 @@ resources: update-rc.d portal_serv.sh defaults # Download and install docker-engine and docker-compose - apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D + DOCKER_KEY=$(cat /opt/config/docker_key.txt) + apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys $DOCKER_KEY 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 @@ -1159,20 +1144,10 @@ resources: 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 - # Store credentials in files - mkdir -p /opt/config - echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt - echo "__nexus_username__" > /opt/config/nexus_username.txt - echo "__nexus_password__" > /opt/config/nexus_password.txt - echo "__gitlab_username__" > /opt/config/gitlab_username.txt - echo "__gitlab_password__" > /opt/config/gitlab_password.txt - echo "__public_ip__" > /opt/config/public_ip.txt - echo "__docker_version__" > /opt/config/docker_version.txt - # Clone Gerrit repository mkdir -p /PROJECT/OpenSource/UbuntuEP/logs cd /opt - git clone -b __gerrit_branch__ --single-branch https://__gitlab_username__:__gitlab_password__@gerrit.onap.org/r/a/portal.git + git clone -b __gerrit_branch__ --single-branch http://gerrit.onap.org/r/portal.git # DNS/GW IP address configuration echo "nameserver __dns_ip_addr__" >> /etc/resolvconf/resolv.conf.d/head @@ -1217,8 +1192,6 @@ resources: __nexus_username__: { get_param: nexus_username } __nexus_password__: { get_param: nexus_password } __nexus_url_snapshots__: { get_param: nexus_url_snapshot } - __gitlab_username__: { get_param: gitlab_username } - __gitlab_password__: { get_param: gitlab_password } __gitlab_branch__: { get_param: gitlab_branch } __dns_ip_addr__: { get_param: dns_ip_addr } __dcae_zone__: { get_param: dcae_zone } @@ -1242,6 +1215,14 @@ resources: hn=`hostname` echo 127.0.0.1 $hn >> /etc/hosts + + # Create configuration files + mkdir -p /opt/config + echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt + echo "__nexus_username__" > /opt/config/nexus_username.txt + echo "__nexus_password__" > /opt/config/nexus_password.txt + echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt + echo "__docker_version__" > /opt/config/docker_version.txt # Download dependencies add-apt-repository -y ppa:openjdk-r/ppa @@ -1249,6 +1230,7 @@ resources: apt-get install -y apt-transport-https ca-certificates wget openjdk-8-jdk make git ntp ntpdate # Download scripts from Nexus + curl -k __nexus_repo__/org.openecomp.demo/boot/__artifacts_version__/docker_key.txt -o /opt/config/docker_key.txt 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 @@ -1257,7 +1239,8 @@ resources: update-rc.d dcae_serv.sh defaults # Download and install docker-engine and docker-compose - apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D + DOCKER_KEY=$(cat /opt/config/docker_key.txt) + apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys $DOCKER_KEY 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 @@ -1269,7 +1252,7 @@ resources: # Clone Gerrit repository cd /opt - git clone -b __gerrit_branch__ --single-branch https://__gitlab_username__:__gitlab_password__@gerrit.onap.org/r/a/dcae/demo/startup/controller.git dcae-startup-vm-controller + git clone -b __gerrit_branch__ --single-branch http://gerrit.onap.org/r/dcae/demo/startup/controller.git dcae-startup-vm-controller # DCAE Controller specific deployment cd /opt/dcae-startup-vm-controller @@ -1297,18 +1280,8 @@ resources: DOCKER-REGISTRY: __nexus_docker_repo__ - GIT-MR-REPO: https://__gitlab_username__:__gitlab_password__@gerrit.onap.org/r/a/dcae/demo/startup/message-router.git + GIT-MR-REPO: http://gerrit.onap.org/r/dcae/demo/startup/message-router.git EOF_CONFIG - - # Store credentials in files - mkdir -p /opt/config - echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt - echo "__nexus_username__" > /opt/config/nexus_username.txt - echo "__nexus_password__" > /opt/config/nexus_password.txt - echo "__gitlab_username__" > /opt/config/gitlab_username.txt - echo "__gitlab_password__" > /opt/config/gitlab_password.txt - echo "__gitlab_branch__" > /opt/config/gitlab_branch.txt - echo "__docker_version__" > /opt/config/docker_version.txt # DNS/GW IP address configuration echo "nameserver __dns_ip_addr__" >> /etc/resolvconf/resolv.conf.d/head @@ -1352,8 +1325,6 @@ resources: __nexus_docker_repo__: { get_param: nexus_docker_repo } __nexus_username__: { get_param: nexus_username } __nexus_password__: { get_param: nexus_password } - __gitlab_username__: { get_param: gitlab_username } - __gitlab_password__: { get_param: gitlab_password } __artifacts_version__: { get_param: artifacts_version } __dns_ip_addr__: { get_param: dns_ip_addr } __public_ip__: { get_attr: [policy_floating_ip, floating_ip_address] } @@ -1364,13 +1335,22 @@ resources: hn=`hostname` echo 127.0.0.1 $hn >> /etc/hosts + + # Create configuration files + mkdir -p /opt/config + echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt + echo "__nexus_username__" > /opt/config/nexus_username.txt + echo "__nexus_password__" > /opt/config/nexus_password.txt + echo "__public_ip__" > /opt/config/public_ip.txt + echo "__docker_version__" > /opt/config/docker_version.txt # 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 ntp ntpdate + 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__/docker_key.txt -o /opt/config/docker_key.txt 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 @@ -1379,7 +1359,8 @@ resources: update-rc.d policy_serv.sh defaults # Download and install docker-engine and docker-compose - apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D + DOCKER_KEY=$(cat /opt/config/docker_key.txt) + apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys $DOCKER_KEY 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 @@ -1389,19 +1370,9 @@ resources: 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 - # Store credentials in files - mkdir -p /opt/config - echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt - echo "__nexus_username__" > /opt/config/nexus_username.txt - echo "__nexus_password__" > /opt/config/nexus_password.txt - echo "__gitlab_username__" > /opt/config/gitlab_username.txt - echo "__gitlab_password__" > /opt/config/gitlab_password.txt - echo "__public_ip__" > /opt/config/public_ip.txt - echo "__docker_version__" > /opt/config/docker_version.txt - # Clone Gerrit repository cd /opt - git clone -b __gerrit_branch__ --single-branch https://__gitlab_username__:__gitlab_password__@gerrit.onap.org/r/a/policy/docker.git policy + git clone -b __gerrit_branch__ --single-branch http://gerrit.onap.org/r/policy/docker.git policy # DNS/GW IP address configuration echo "nameserver __dns_ip_addr__" >> /etc/resolvconf/resolv.conf.d/head @@ -1445,8 +1416,6 @@ resources: __nexus_docker_repo__: { get_param: nexus_docker_repo } __nexus_username__: { get_param: nexus_username } __nexus_password__: { get_param: nexus_password } - __gitlab_username__: { get_param: gitlab_username } - __gitlab_password__: { get_param: gitlab_password } __dmaap_topic__: { get_param: dmaap_topic } __artifacts_version__: { get_param: artifacts_version } __dns_ip_addr__: { get_param: dns_ip_addr } @@ -1457,13 +1426,22 @@ resources: hn=`hostname` echo 127.0.0.1 $hn >> /etc/hosts + + # Create configuration files + mkdir -p /opt/config + echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt + echo "__nexus_username__" > /opt/config/nexus_username.txt + echo "__nexus_password__" > /opt/config/nexus_password.txt + echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt + echo "__docker_version__" > /opt/config/docker_version.txt # 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 ntp ntpdate + 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__/docker_key.txt -o /opt/config/docker_key.txt 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 @@ -1472,7 +1450,8 @@ resources: update-rc.d appc_serv.sh defaults # Download and install docker-engine and docker-compose - apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D + DOCKER_KEY=$(cat /opt/config/docker_key.txt) + apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys $DOCKER_KEY 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 @@ -1482,20 +1461,10 @@ resources: 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 - - # Store credentials in files - mkdir -p /opt/config - echo "__nexus_docker_repo__" > /opt/config/nexus_docker_repo.txt - echo "__nexus_username__" > /opt/config/nexus_username.txt - echo "__nexus_password__" > /opt/config/nexus_password.txt - echo "__gitlab_username__" > /opt/config/gitlab_username.txt - echo "__gitlab_password__" > /opt/config/gitlab_password.txt - echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt - echo "__docker_version__" > /opt/config/docker_version.txt # Clone Gerrit repository cd /opt - git clone -b __gerrit_branch__ --single-branch https://__gitlab_username__:__gitlab_password__@gerrit.onap.org/r/a/appc/deployment.git appc + git clone -b __gerrit_branch__ --single-branch http://gerrit.onap.org/r/appc/deployment.git appc # DNS/GW IP address configuration echo "nameserver __dns_ip_addr__" >> /etc/resolvconf/resolv.conf.d/head