aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--boot/dcae2_install.sh60
-rw-r--r--boot/dcae2_serv.sh16
-rw-r--r--boot/dcae2_vm_init.sh30
-rw-r--r--heat/ONAP/onap_openstack.env16
-rw-r--r--heat/ONAP/onap_openstack.yaml197
5 files changed, 210 insertions, 109 deletions
diff --git a/boot/dcae2_install.sh b/boot/dcae2_install.sh
index 21587467..344d2c0b 100644
--- a/boot/dcae2_install.sh
+++ b/boot/dcae2_install.sh
@@ -15,41 +15,13 @@ MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | h
if [[ $CLOUD_ENV != "rackspace" ]]
then
# Add host name to /etc/host to avoid warnings in openstack images
- echo 127.0.0.1 $(hostname) >> /etc/hosts
+ echo "127.0.0.1 $(hostname)" >> /etc/hosts
# Allow remote login as root
mv /root/.ssh/authorized_keys /root/.ssh/authorized_keys.bk
cp /home/ubuntu/.ssh/authorized_keys /root/.ssh
fi
-# Set private IP in /etc/network/interfaces manually in the presence of public interface
-# Some VM images don't add the private interface automatically, we have to do it during the component installation
-if [[ $CLOUD_ENV == "openstack_nofloat" ]]
-then
- #CIDR=$(cat /opt/config/oam_network_cidr.txt)
- #BITMASK=$(echo $CIDR | cut -d"/" -f2)
-
- # Compute the netmask based on the network cidr
- #if [[ $BITMASK == "8" ]]
- #then
- # NETMASK=255.0.0.0
- #elif [[ $BITMASK == "16" ]]
- #then
- # NETMASK=255.255.0.0
- #elif [[ $BITMASK == "24" ]]
- #then
- # NETMASK=255.255.255.0
- #fi
-
- echo "auto eth1" >> /etc/network/interfaces
- #echo "iface eth1 inet static" >> /etc/network/interfaces
- #echo " address $DCAE_IP_ADDR" >> /etc/network/interfaces
- #echo " netmask $NETMASK" >> /etc/network/interfaces
- echo "iface eth1 inet dhcp" >> /etc/network/interfaces
- echo " mtu $MTU" >> /etc/network/interfaces
- ifup eth1
-fi
-
# Download dependencies
echo "deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu $(lsb_release -c -s) main" >> /etc/apt/sources.list.d/java.list
echo "deb-src http://ppa.launchpad.net/openjdk-r/ppa/ubuntu $(lsb_release -c -s) main" >> /etc/apt/sources.list.d/java.list
@@ -57,8 +29,8 @@ apt-get update
apt-get install --allow-unauthenticated -y apt-transport-https ca-certificates wget make openjdk-8-jdk git ntp ntpdate python python-pip
# Download scripts from Nexus
-curl -k $NEXUS_REPO/org.onap.demo/boot/$ARTIFACTS_VERSION/dcae2_vm_init.sh -o /opt/dcae2_vm_init.sh
-curl -k $NEXUS_REPO/org.onap.demo/boot/$ARTIFACTS_VERSION/dcae2_serv.sh -o /opt/dcae2_serv.sh
+curl -k "$NEXUS_REPO/org.onap.demo/boot/$ARTIFACTS_VERSION/dcae2_vm_init.sh" -o /opt/dcae2_vm_init.sh
+curl -k "$NEXUS_REPO/org.onap.demo/boot/$ARTIFACTS_VERSION/dcae2_serv.sh" -o /opt/dcae2_serv.sh
chmod +x /opt/dcae2_vm_init.sh
chmod +x /opt/dcae2_serv.sh
mv /opt/dcae2_serv.sh /etc/init.d
@@ -67,14 +39,16 @@ update-rc.d dcae2_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 "linux-image-extra-$(uname -r)" linux-image-extra-virtual
apt-get install -y --allow-unauthenticated docker-engine
mkdir -p /opt/docker
-curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname -s`-`uname -m` > /opt/docker/docker-compose
+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
-# Set the MTU size of docker containers to the minimum MTU size supported by vNICs. OpenStack deployments may need to know the external DNS IP
+
+# Set the MTU size of docker containers to the minimum MTU size supported by vNICs. OpenStack deployments may
+# need to know the external DNS IP
DNS_FLAG=""
if [ -s /opt/config/dns_ip_addr.txt ]
then
@@ -90,14 +64,17 @@ cp /lib/systemd/system/docker.service /etc/systemd/system
sed -i "/ExecStart/s/$/ --mtu=$MTU/g" /etc/systemd/system/docker.service
service docker restart
+
# DNS IP address configuration
-echo "nameserver "$DNS_IP_ADDR >> /etc/resolvconf/resolv.conf.d/head
+echo "nameserver $DNS_IP_ADDR" >> /etc/resolvconf/resolv.conf.d/head
resolvconf -u
+
# prepare the configurations needed by DCAEGEN2 installer
rm -rf /opt/app/config
mkdir -p /opt/app/config
+
# private key
cp /opt/config/priv_key /opt/app/config/key
chmod 777 /opt/app/config/key
@@ -106,7 +83,6 @@ chmod 777 /opt/app/config/key
# download blueprint input template files
rm -rf /opt/app/inputs-templates
mkdir -p /opt/app/inputs-templates
-#wget --no-parent -nH -r -l2 -P /opt/app/inputs-templates https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.blueprints/releases/input-templates/
wget -P /opt/app/inputs-templates https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.blueprints/releases/input-templates/inputs.yaml
wget -P /opt/app/inputs-templates https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.blueprints/releases/input-templates/phinputs.yaml
wget -P /opt/app/inputs-templates https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.blueprints/releases/input-templates/dhinputs.yaml
@@ -118,18 +94,6 @@ pip install jinja2
wget https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.deployments/releases/scripts/detemplate-bpinputs.py && (python detemplate-bpinputs.py /opt/config /opt/app/inputs-templates /opt/app/config; rm detemplate-bpinputs.py)
-# Rename network interface in openstack Ubuntu 16.04 images. Then, reboot the VM to pick up changes
-#if [[ $CLOUD_ENV != "rackspace" ]]
-#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
-# sed -i "s/ens[0-9]*/eth0/g" /etc/udev/rules.d/70-persistent-net.rules
-# 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
cd /opt
./dcae2_vm_init.sh
diff --git a/boot/dcae2_serv.sh b/boot/dcae2_serv.sh
index b81c57a4..a86906a3 100644
--- a/boot/dcae2_serv.sh
+++ b/boot/dcae2_serv.sh
@@ -1,4 +1,4 @@
-
+#!/bin/sh
#############################################################################
#
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
@@ -16,7 +16,6 @@
#
#############################################################################
-#!/bin/sh
### BEGIN INIT INFO
# Provides:
# Required-Start: $remote_fs $syslog
@@ -31,7 +30,7 @@ dir="/opt"
cmd="./dcae2_vm_init.sh"
user="root"
-name=`basename $0`
+name=$(basename "$0")
pid_file="/var/run/$name.pid"
stdout_log="/var/log/$name.log"
stderr_log="/var/log/$name.err"
@@ -41,8 +40,8 @@ get_pid() {
}
is_running() {
- #[ -f "$pid_file" ] && ps `get_pid` > /dev/null 2>&1
- [ ! -z $(docker ps | grep 'org.onap.dcaegen2.deployments.bootstrap') ]
+ CID="$(docker ps | grep 'org.onap.dcaegen2.deployments.bootstrap')"
+ [ ! -z "$CID" ]
}
case "$1" in
@@ -67,9 +66,12 @@ case "$1" in
stop)
if is_running; then
echo -n "Stopping $name.."
- kill `get_pid`
+ kill "$(get_pid)"
+ CID=$(docker ps | grep 'nginx' | awk '{ print $1 }')
+ sudo docker stop "$CID"
+
CID=$(docker ps | grep 'org.onap.dcaegen2.deployments.bootstrap' | awk '{ print $1 }')
- docker exec -it $CID ./teardown.sh
+ docker exec -it "$CID" ./teardown.sh
for i in {1..10}
do
if ! is_running; then
diff --git a/boot/dcae2_vm_init.sh b/boot/dcae2_vm_init.sh
index e27ba589..129a6d82 100644
--- a/boot/dcae2_vm_init.sh
+++ b/boot/dcae2_vm_init.sh
@@ -6,7 +6,31 @@ NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt)
DOCKER_VERSION=$(cat /opt/config/docker_version.txt)
ZONE=$(cat /opt/config/dcae_zone.txt)
-docker login -u $NEXUS_USER -p $NEXUS_PASSWORD $NEXUS_DOCKER_REPO
-docker pull $NEXUS_DOCKER_REPO/onap/org.onap.dcaegen2.deployments.bootstrap:$DOCKER_VERSION
+
+rm -f /opt/config/runtime.ip.consul
+rm -f /opt/config/runtime.ip.cm
+
+
+docker login -u "$NEXUS_USER" -p "$NEXUS_PASSWORD" "$NEXUS_DOCKER_REPO"
+docker pull "$NEXUS_DOCKER_REPO/onap/org.onap.dcaegen2.deployments.bootstrap:$DOCKER_VERSION"
#docker run -v /opt/config/priv_key:/opt/app/installer/config/key -v /opt/app/inputs.yaml:/opt/app/installer/config/inputs.yaml -e "LOCATION=$ZONE" $NEXUS_DOCKER_REPO/onap/org.onap.dcaegen2.deployments.bootstrap:$DOCKER_VERSION
-docker run -d --name boot -v /opt/app/config:/opt/app/installer/config -e "LOCATION=$ZONE" $NEXUS_DOCKER_REPO/onap/org.onap.dcaegen2.deployments.bootstrap:$DOCKER_VERSION
+docker run -d --name boot -v /opt/app/config:/opt/app/installer/config -e "LOCATION=$ZONE" "$NEXUS_DOCKER_REPO/onap/org.onap.dcaegen2.deployments.bootstrap:$DOCKER_VERSION"
+
+
+# waiting for bootstrap to complete then starting nginx for proxying healthcheck calls
+while [ ! -f /opt/config/runtime.ip.consul ]; do sleep 30; done
+
+# start proxy for consul's health check
+CONSULIP=$(head -1 /opt/config/runtime.ip.consul | sed 's/[[:space:]]//g')
+echo "Consul is available at $CONSULIP"
+
+cat >./nginx.conf <<EOL
+server {
+ listen 80;
+ server_name dcae.simpledemo.onap.org;
+ location /healthcheck {
+ proxy_pass http://"${CONSULIP}":8500/v1/health/state/passing;
+ }
+}
+EOL
+sudo docker run --name dcae-proxy -p 80:80 -v "$(pwd)/nginx.conf:/etc/nginx/conf.d/default.conf" -d nginx
diff --git a/heat/ONAP/onap_openstack.env b/heat/ONAP/onap_openstack.env
index 189dfd27..ac63b060 100644
--- a/heat/ONAP/onap_openstack.env
+++ b/heat/ONAP/onap_openstack.env
@@ -124,6 +124,22 @@ parameters:
dcae_code_version: 1.1.0
+ dcaeos_cloud_env: PUT DACE TARGET DEPLOYMENT STACK'S FLAVOR (e.g. OpenStack) HERE
+ dcaeos_keystone_url: PUT DACE TARGET DEPLOYMENT STACK'S KEYSTONE URL HERE
+ dcaeos_openstack_region: PUT DACE TARGET DEPLOYMENT STACK'S REGION HERE
+ dcaeos_openstack_tenant_id: PUT DACE TARGET DEPLOYMENT STACK'S TENANT ID HERE
+ dcaeos_openstack_username: PUT DACE TARGET DEPLOYMENT STACK'S USERNAME HERE
+ dcaeos_openstack_password: PUT DACE TARGET DEPLOYMENT STACK'S PASSWORD HERE
+ dcaeos_dcae_key_name: PUT DACE TARGET DEPLOYMENT STACK'S UPLOADED KEY-PAIR NAME HERE
+ dcaeos_dcae_pub_key: PUT DACE TARGET DEPLOYMENT STACK'S PUBLIC KEY HERE
+ dcaeos_private_key: PUT DACE TARGET DEPLOYMENT STACK'S PRIVATE KEY HERE
+ dcaeos_openstack_private_network_name: PUT DACE TARGET DEPLOYMENT STACK'S INTERNAL NETWOKR ID HERE
+ dcaeos_public_net_id: PUT DACE TARGET DEPLOYMENT STACK'S PUBLIC NETWORK ID HERE
+ dcaeos_ubuntu_1604_image: PUT DACE TARGET DEPLOYMENT STACK'S UBUNTU1604 IMAGE ID (TO BE USED BY DCAE VMS) HERE
+ dcaeos_centos_7_image: PUT DACE TARGET DEPLOYMENT STACK'S CENTOS7 IMAGE ID (TO BE USED BY DCAE VMS) HERE
+ dcaeos_security_group: PUT DACE TARGET DEPLOYMENT STACK'S SECURITY GROUP ID (TO BE USED BY DCAE VMS) HERE
+ dcaeos_flavor_id: PUT DACE TARGET DEPLOYMENT STACK'S VM FLAVOR ID (TO BE USED BY DCAE VMS) HERE
+
################################
# #
diff --git a/heat/ONAP/onap_openstack.yaml b/heat/ONAP/onap_openstack.yaml
index 36060463..31a8b3da 100644
--- a/heat/ONAP/onap_openstack.yaml
+++ b/heat/ONAP/onap_openstack.yaml
@@ -228,10 +228,72 @@ parameters:
# #
###########################
+ dcaeos_cloud_env:
+ type: string
+ description: the cloud flavor of the OpenStack instance where DCAE is deployed
+
+ dcaeos_keystone_url:
+ type: string
+ description: the keystone URL of the OpenStack instance where DACE is deployed
+
+ dcaeos_openstack_region:
+ type: string
+ description: the region of the OpenStack instance where DACE is deployed
+
+ dcaeos_openstack_tenant_id:
+ type: string
+ description: the keystone URL of the OpenStack instance where DACE is deployed
+
+ dcaeos_openstack_username:
+ type: string
+ description: the username of the identity API of the OpenStack instance where DACE is deployed
+
+ dcaeos_openstack_password:
+ type: string
+ description: the password of the identity API of the OpenStack instance where DACE is deployed
+
+ dcaeos_dcae_key_name:
+ type: string
+ description: the key-pair name uploaded to the OpenStack instance where DACE is deployed
+
+ dcaeos_dcae_pub_key:
+ type: string
+ description: the public key of the key-pair uploaded to the OpenStack instance where DACE is deployed
+
+ dcaeos_private_key:
+ type: string
+ description: the private key of the key-pair uploaded to the OpenStack instance where DACE is deployed
+
+ dcaeos_openstack_private_network_name:
+ type: string
+ description: the name/id of the network used as DCAE internal network in the OpenStack instance where DACE is deployed
+
+ dcaeos_public_net_id:
+ type: string
+ description: the name/id of the network where DCAE gets floating IPs from in the OpenStack instance where DACE is deployed
+
+ dcaeos_ubuntu_1604_image:
+ type: string
+ description: the name/id of the Ubuntu1604 VM image in the OpenStack instance where DACE is deployed
+
+ dcaeos_centos_7_image:
+ type: string
+ description: the name/id of the CentOS7 VM image in the OpenStack instance where DACE is deployed
+
+ dcaeos_security_group:
+ type: string
+ description: the name/id of the security group to be used by DACE VMs in the OpenStack instance where DACE is deployed
+
+ dcaeos_flavor_id:
+ type: string
+ description: the name/id of the VM flavor to be used by DACE VMs in the OpenStack instance where DACE is deployed
+
dcae_base_environment:
type: string
description: DCAE Base Environment configuration (RACKSPACE/2-NIC/1-NIC-FLOATING-IPS)
+
+
dcae_zone:
type: string
description: DCAE Zone to use in VM names created by DCAE controller
@@ -1684,86 +1746,119 @@ resources:
user_data:
str_replace:
params:
+ __dcae_zone__: { get_param: dcae_zone }
+ __rand_str__: { get_resource: random-str }
+ # repo related
+ __artifacts_version__: { get_param: artifacts_version }
+ __docker_version__: { get_param: dcae_docker }
__nexus_repo__: { get_param: nexus_repo }
__nexus_docker_repo__: { get_param: nexus_docker_repo }
__nexus_username__: { get_param: nexus_username }
__nexus_password__: { get_param: nexus_password }
- __dns_ip_addr__: { get_param: dns_ip_addr }
- __dcae_zone__: { get_param: dcae_zone }
- __artifacts_version__: { get_param: artifacts_version }
- __tenant_id__: { get_param: openstack_tenant_id }
- __openstack_private_network_name__: { get_attr: [oam_onap, name] }
- __openstack_user__: { get_param: openstack_username }
- __openstack_password__: { get_param: openstack_api_key }
- __key_name__: { get_param: dcae_key_name }
- __pub_key__: { get_param: dcae_pub_key }
- __private_key__: { get_attr: [ dcae_vm_key, private_key ] }
- __openstack_region__: { get_param: openstack_region }
- __keystone_url__: { get_param: keystone_url }
- __docker_version__: { get_param: dcae_docker }
__dcae_repo__: { get_param: dcae_repo }
__gerrit_branch__: { get_param: dcae_branch }
- __cloud_env__: { get_param: cloud_env }
- __public_net_id__: { get_param: public_net_id }
+ # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
+ __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
__dcae_ip_addr__: { get_param: dcae_ip_addr }
__dcae_float_ip__: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
+ __dns_ip_addr__: { get_param: dns_ip_addr }
__external_dns__: { get_param: external_dns }
- __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
- __centos_7_image__: { get_param: centos_7_image }
- __security_group__ : { get_param: security_group }
- __flavor_medium__: { get_param: flavor_medium }
- __mac_addr__: { get_attr: [dcae_c_private_port, mac_address] }
- __rand_str__: { get_resource: random-str }
+ # conf for the OpensStack env where DCAE is deployed
+ __dcaeos_cloud_env__: { get_param: dcaeos_cloud_env }
+ __dcaeos_keystone_url__: { get_param: dcaeos_keystone_url }
+ __dcaeos_openstack_region__: { get_param: dcaeos_openstack_region }
+ __dcaeos_tenant_id__: { get_param: dcaeos_openstack_tenant_id }
+ __dcaeos_openstack_user__: { get_param: dcaeos_openstack_username }
+ __dcaeos_openstack_password__: { get_param: dcaeos_openstack_password }
+ __dcaeos_key_name__: { get_param: dcaeos_dcae_key_name }
+ __dcaeos_pub_key__: { get_param: dcaeos_dcae_pub_key }
+ __dcaeos_private_key__: { get_param: dcaeos_private_key }
+ __dcaeos_openstack_private_network_name__: { get_param: dcaeos_openstack_private_network_name }
+ __dcaeos_public_net_id__: { get_param: dcaeos_public_net_id }
+ __dcaeos_ubuntu_1604_image__: { get_param: dcaeos_ubuntu_1604_image }
+ __dcaeos_centos_7_image__: { get_param: dcaeos_centos_7_image }
+ __dcaeos_security_group__ : { get_param: dcaeos_security_group }
+ __dcaeos_flavor_id__: { get_param: dcaeos_flavor_id }
+ # fixed private IPs
__mr_ip_addr__: { get_param: mr_ip_addr }
- #__mr_float_ip__: { get_attr: [mr_floating_ip, floating_ip_address] }
__policy_ip_addr__: { get_param: policy_ip_addr }
- #__policy_float_ip__: { get_attr: [policy_floating_ip, floating_ip_address] }
__sdc_ip_addr__: { get_param: sdc_ip_addr }
- #__sdc_float_ip__: { get_attr: [sdc_floating_ip, floating_ip_address] }
+ # floating IPs
+ __dns_floating_ip_addr__: { get_attr: [dns_floating_ip, floating_ip_address] }
+ __aai1_floating_ip_addr___: { get_attr: [aai1_floating_ip, floating_ip_address] }
+ __aai2_floating_ip_addr___: { get_attr: [aai2_floating_ip, floating_ip_address] }
+ __so_floating_ip_addr___: { get_attr: [so_floating_ip, floating_ip_address] }
+ __mrouter_floating_ip_addr___: { get_attr: [mrouter_floating_ip, floating_ip_address] }
+ __robot_floating_ip_addr___: { get_attr: [robot_floating_ip, floating_ip_address] }
+ __vid_floating_ip_addr___: { get_attr: [vid_floating_ip, floating_ip_address] }
+ __sdnc_floating_ip_addr___: { get_attr: [sdnc_floating_ip, floating_ip_address] }
+ __sdc_floating_ip_addr___: { get_attr: [sdc_floating_ip, floating_ip_address] }
+ __portal_floating_ip_addr___: { get_attr: [portal_floating_ip, floating_ip_address] }
+ __policy_floating_ip_addr___: { get_attr: [policy_floating_ip, floating_ip_address] }
+ __appc_floating_ip_addr___: { get_attr: [appc_floating_ip, floating_ip_address] }
+ __clamp_floating_ip_addr___: { get_attr: [clamp_floating_ip, floating_ip_address] }
+ __openo_floating_ip_addr___: { get_attr: [openo_floating_ip, floating_ip_address] }
+ __dcae_c_floating_ip_addr___: { get_attr: [dcae_c_floating_ip, floating_ip_address] }
template: |
#!/bin/bash
# Create configuration files
mkdir -p /opt/config
+ echo "__dcae_zone__" > /opt/config/dcae_zone.txt
+ echo "__rand_str__" > /opt/config/rand_str.txt
+ # repo related
+ echo "__docker_version__" > /opt/config/docker_version.txt
+ echo "__artifacts_version__" > /opt/config/artifacts_version.txt
echo "__nexus_repo__" > /opt/config/nexus_repo.txt
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
- echo "__artifacts_version__" > /opt/config/artifacts_version.txt
- echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
+ echo "__dcae_repo__" > /opt/config/remote_repo.txt
echo "__gerrit_branch__" > /opt/config/gerrit_branch.txt
- echo "__dcae_zone__" > /opt/config/dcae_zone.txt
- echo "__tenant_id__" > /opt/config/tenant_id.txt
- echo "__tenant_id__" > /opt/config/tenant_name.txt
- echo "__openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
- echo "__openstack_user__" > /opt/config/openstack_user.txt
- echo "__openstack_password__" > /opt/config/openstack_password.txt
- echo "__key_name__" > /opt/config/key_name.txt
- echo "__pub_key__" > /opt/config/pub_key.txt
- echo "__private_key__" > /opt/config/priv_key
- echo "__openstack_region__" > /opt/config/openstack_region.txt
- echo "__keystone_url__" > /opt/config/keystone_url.txt
- echo "__cloud_env__" > /opt/config/cloud_env.txt
- echo "__public_net_id__" > /opt/config/public_net_id.txt
+ # conf for the ONAP environment where the DCAE bootstrap vm/conatiner runs
+ echo "__mac_addr__" > /opt/config/mac_addr.txt
echo "__dcae_ip_addr__" > /opt/config/dcae_ip_addr.txt
echo "__dcae_float_ip__" > /opt/config/dcae_float_ip.txt
+ echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
echo "__external_dns__" > /opt/config/external_dns.txt
- echo "__ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
- echo "__centos_7_image__" > /opt/config/centos_7_image.txt
- echo "__security_group__" > /opt/config/security_group.txt
- echo "__flavor_medium__" > /opt/config/flavor_id.txt
- echo "__dcae_repo__" > /opt/config/remote_repo.txt
- echo "__mac_addr__" > /opt/config/mac_addr.txt
- echo "__rand_str__" > /opt/config/rand_str.txt
+ # conf for the OpensStack env where DCAE is deployed
+ echo "__dcaeos_cloud_env__" > /opt/config/cloud_env.txt
+ echo "__dcaeos_keystone_url__" > /opt/config/keystone_url.txt
+ echo "__dcaeos_openstack_region__" > /opt/config/openstack_region.txt
+ echo "__dcaeos_tenant_id__" > /opt/config/tenant_id.txt
+ echo "__dcaeos_tenant_id__" > /opt/config/tenant_name.txt
+ echo "__dcaeos_openstack_user__" > /opt/config/openstack_user.txt
+ echo "__dcaeos_openstack_password__" > /opt/config/openstack_password.txt
+ echo "__dcaeos_key_name__" > /opt/config/key_name.txt
+ echo "__dcaeos_pub_key__" > /opt/config/pub_key.txt
+ echo "__dcaeos_private_key__" > /opt/config/priv_key
+ echo "__dcaeos_openstack_private_network_name__" > /opt/config/openstack_private_network_name.txt
+ echo "__dcaeos_public_net_id__" > /opt/config/public_net_id.txt
+ echo "__dcaeos_ubuntu_1604_image__" > /opt/config/ubuntu_1604_image.txt
+ echo "__dcaeos_centos_7_image__" > /opt/config/centos_7_image.txt
+ echo "__dcaeos_security_group__" > /opt/config/security_group.txt
+ echo "__dcaeos_flavor_id__" > /opt/config/flavor_id.txt
+ # fixed private IP addresses of other ONAP components
echo "__mr_ip_addr__" > /opt/config/mr_ip_addr.txt
echo "__policy_ip_addr__" > /opt/config/policy_ip_addr.txt
echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
- #echo "__mr_floating_ip_addr__" > /opt/config/mr_floating_ip_addr.txt
- #echo "__policy_floating_ip_addr__" > /opt/config/policy_floating_ip_addr.txt
- #echo "__sdc_floating_ip_addr__" > /opt/config/sdc_floating_ip_addr.txt
-
+ # floating IPs
+ echo "__dns_floating_ip_addr__" > /opt/config/dns_floating_ip_addr.txt
+ echo "__aai1_floating_ip_addr__" > /opt/config/aai1_floating_ip_addr.txt
+ echo "__aai2_floating_ip_addr__" > /opt/config/aai2_floating_ip_addr.txt
+ echo "__so_floating_ip_addr__" > /opt/config/so_floating_ip_addr.txt
+ echo "__mrouter_floating_ip_addr__" > /opt/config/mrouter_floating_ip_addr.txt
+ echo "__robot_floating_ip_addr__" > /opt/config/robot_floating_ip_addr.txt
+ echo "__vid_floating_ip_addr__" > /opt/config/vid_floating_ip_addr.txt
+ echo "__sdnc_floating_ip_addr__" > /opt/config/sdnc_floating_ip_addr.txt
+ echo "__sdc_floating_ip_addr__" > /opt/config/sdc_floating_ip_addr.txt
+ echo "__portal_floating_ip_addr__" > /opt/config/portal_floating_ip_addr.txt
+ echo "__policy_floating_ip_addr__" > /opt/config/policy_floating_ip_addr.txt
+ echo "__appc_floating_ip_addr__" > /opt/config/appc_floating_ip_addr.txt
+ echo "__clamp_floating_ip_addr__" > /opt/config/clamp_floating_ip_addr.txt
+ echo "__openo_floating_ip_addr__" > /opt/config/opoeno_floating_ip_addr.txt
+ echo "__dcae_c_floating_ip_addr__" > /opt/config/dcae_c_floating_ip_addr.txt
# Download and run install script
curl -k __nexus_repo__/org.onap.demo/boot/__artifacts_version__/dcae2_install.sh -o /opt/dcae2_install.sh