summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-04-10 14:20:05 -0400
committerMarco Platania <platania@research.att.com>2017-04-10 14:20:05 -0400
commit706fd977b95c0889eac82b69b60316cc80ddde0f (patch)
tree62c386d5c1dccdcaa8562329b16ad9397eadfdd3
parent030a42efc223fdd0b4e1b68e2cf993ae1d5c818d (diff)
remove gerrit credentials from heat
Change-Id: I9095e6f6232106768da6761f1b3ca4a68dee9632 Signed-off-by: Marco Platania <platania@research.att.com>
-rw-r--r--boot/aai_vm_init.sh5
-rw-r--r--boot/docker_key.txt1
-rw-r--r--heat/OpenECOMP/onap_openstack.env4
-rw-r--r--heat/OpenECOMP/onap_openstack.yaml263
-rw-r--r--heat/OpenECOMP/openecomp_rackspace.env4
-rw-r--r--heat/OpenECOMP/openecomp_rackspace.yaml15
6 files changed, 138 insertions, 154 deletions
diff --git a/boot/aai_vm_init.sh b/boot/aai_vm_init.sh
index 23b5951d..2c8a75b2 100644
--- a/boot/aai_vm_init.sh
+++ b/boot/aai_vm_init.sh
@@ -4,9 +4,6 @@ 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)
DMAAP_TOPIC=$(cat /opt/config/dmaap_topic.txt)
-GITLAB_CERTNAME=$(cat /opt/config/gitlab_certname.txt)
-GITLAB_USERNAME=$(cat /opt/config/gitlab_username.txt)
-GITLAB_PASSWD=$(cat /opt/config/gitlab_password.txt)
DOCKER_IMAGE_VERSION=$(cat /opt/config/docker_version.txt)
# Pull HBase container from a public docker hub
@@ -20,7 +17,7 @@ sleep 180
docker pull $NEXUS_DOCKER_REPO/openecomp/ajsc-aai:$DOCKER_IMAGE_VERSION
docker rm -f aai-service
-docker run --name=aai-service --net=host -v /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt -it -e GITLAB_CERTNAME=$GITLAB_CERTNAME -e GITLAB_USERNAME=$GITLAB_USERNAME -e GITLAB_PASSWORD=$GITLAB_PASSWD -e AAI_REPO_PATH=r/aai -e AAI_CHEF_ENV=simpledemo -d -e AAI_CHEF_LOC=/var/chef/aai-data/environments -e docker_gitbranch=master $NEXUS_DOCKER_REPO/openecomp/ajsc-aai:$DOCKER_IMAGE_VERSION
+docker run --name=aai-service --net=host -v /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt -it -e AAI_REPO_PATH=r/aai -e AAI_CHEF_ENV=simpledemo -d -e AAI_CHEF_LOC=/var/chef/aai-data/environments -e docker_gitbranch=master $NEXUS_DOCKER_REPO/openecomp/ajsc-aai:$DOCKER_IMAGE_VERSION
docker pull $NEXUS_DOCKER_REPO/openecomp/model-loader:$DOCKER_IMAGE_VERSION
docker rm -f model-loader-service
diff --git a/boot/docker_key.txt b/boot/docker_key.txt
new file mode 100644
index 00000000..9290b7c3
--- /dev/null
+++ b/boot/docker_key.txt
@@ -0,0 +1 @@
+58118E89F3A912897C070ADBF76221572C52609D
diff --git a/heat/OpenECOMP/onap_openstack.env b/heat/OpenECOMP/onap_openstack.env
index 6d06ecfc..16a7396f 100644
--- a/heat/OpenECOMP/onap_openstack.env
+++ b/heat/OpenECOMP/onap_openstack.env
@@ -30,10 +30,6 @@ parameters:
nexus_password: docker
- gitlab_username: PUT YOUR GERRIT USERNAME HERE
-
- gitlab_password: PUT YOUR GERRIT HTTP PASSWORD HERE
-
dmaap_topic: AUTO
artifacts_version: 1.0.0
diff --git a/heat/OpenECOMP/onap_openstack.yaml b/heat/OpenECOMP/onap_openstack.yaml
index 1173e19e..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
@@ -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
@@ -503,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
@@ -510,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
@@ -518,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
@@ -529,17 +531,6 @@ 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 "__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 http://gerrit.onap.org/r/mso/docker-config.git test_lab
@@ -601,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
@@ -616,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
@@ -627,12 +626,6 @@ 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
-
# Clone Gerrit repository
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
@@ -692,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
@@ -708,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
@@ -717,20 +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 "__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
@@ -796,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
@@ -803,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
@@ -811,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
@@ -822,13 +826,6 @@ 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 "__docker_version__" > /opt/config/docker_version.txt
-
# Clone Gerrit repository
cd /opt
git clone -b __gerrit_branch__ --single-branch http://gerrit.onap.org/r/vid.git
@@ -884,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
@@ -899,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
@@ -909,13 +915,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 "__docker_version__" > /opt/config/docker_version.txt
# Clone Gerrit repository
cd /opt
@@ -988,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
@@ -1003,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
@@ -1021,16 +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 "__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
@@ -1109,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
@@ -1123,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
@@ -1133,14 +1144,6 @@ 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 "__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
@@ -1212,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
@@ -1219,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
@@ -1227,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,14 +1282,6 @@ resources:
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_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
@@ -1330,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
@@ -1345,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
@@ -1355,14 +1370,6 @@ 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 "__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 http://gerrit.onap.org/r/policy/docker.git policy
@@ -1419,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
@@ -1434,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
@@ -1444,14 +1461,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 "__docker_version__" > /opt/config/docker_version.txt
# Clone Gerrit repository
cd /opt
diff --git a/heat/OpenECOMP/openecomp_rackspace.env b/heat/OpenECOMP/openecomp_rackspace.env
index 178dfa7d..1d9ee021 100644
--- a/heat/OpenECOMP/openecomp_rackspace.env
+++ b/heat/OpenECOMP/openecomp_rackspace.env
@@ -15,10 +15,6 @@ parameters:
nexus_username: INSERT YOUR USERNAME HERE
nexus_password: INSERT YOUR PASSWORD HERE
-
- gitlab_username: INSERT YOUR USERNAME HERE
-
- gitlab_password: INSERT YOUR PASSWORD HERE
dmaap_topic: AUTO
diff --git a/heat/OpenECOMP/openecomp_rackspace.yaml b/heat/OpenECOMP/openecomp_rackspace.yaml
index 219cbc76..489422e0 100644
--- a/heat/OpenECOMP/openecomp_rackspace.yaml
+++ b/heat/OpenECOMP/openecomp_rackspace.yaml
@@ -39,16 +39,6 @@ parameters:
type: string
label: Nexus Repository Password
description: Nexus Repository Password
-
- gitlab_username:
- type: string
- label: Gitlab Repository Username
- description: Gitlab Repository username
-
- gitlab_password:
- type: string
- label: Gitlab Repository Password
- description: Gitlab Repository Password
dmaap_topic:
type: string
@@ -244,8 +234,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 }
__docker_version__: { get_param: docker_version }
@@ -289,9 +277,6 @@ resources:
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
# Execute docker instructions