flavor_xlarge:
type: string
description: Name of the Extra Large Flavor supported by the cloud provider
-
+
vm_base_name:
type: string
description: Base name of ONAP VMs
nexus_password:
type: string
description: Nexus Repository Password
-
+
artifacts_version:
type: string
description: Artifacts version of ONAP components
-
+
docker_version:
type: string
label: Version number of ONAP docker images
-
+
gerrit_branch:
type: string
label: Gerrit code branch
dmaap_topic:
type: string
description: DmaaP Topic name
-
+
openstack_tenant_id:
type: string
description: Openstack tenant ID
openstack_api_key:
type: string
description: Openstack API Key
-
+
horizon_url:
type: string
description: URL of Openstack Horizon
keystone_url:
type: string
description: URL of Openstack Keystone
-
+
# Network parameters
external_dns:
type: comma_delimited_list
oam_network_cidr:
type: string
description: CIDR of the OAM ONAP network
-
+
aai_ip_addr:
type: string
description: A&AI IP Address
-
+
appc_ip_addr:
type: string
description: APP-C IP Address
-
+
dcae_ip_addr:
type: string
description: DCAE IP Address
-
+
dns_ip_addr:
type: string
description: DNS IP Address
-
+
mso_ip_addr:
type: string
description: MSO IP Address
-
+
mr_ip_addr:
type: string
description: Message Router IP Address
-
+
policy_ip_addr:
type: string
description: Policy Engine IP Address
-
+
portal_ip_addr:
type: string
description: Portal IP Address
-
+
robot_ip_addr:
type: string
description: Robot Framework IP Address
sdc_ip_addr:
type: string
description: SDC IP Address
-
+
sdnc_ip_addr:
type: string
description: SDN-C IP Address
-
+
vid_ip_addr:
type: string
description: VID IP Address
nexus_repo_root:
type: string
description: Root URL of Nexus repository
-
+
nexus_url_snapshot:
type: string
description: Snapshot of Maven repository for DCAE deployment
hn=`hostname`
echo 127.0.0.1 $hn >> /etc/hosts
-
+
# Download dependencies
add-apt-repository -y ppa:openjdk-r/ppa
apt-get update
modprobe ip_gre
sed -i "s/OPTIONS=.*/OPTIONS=\"-4 -u bind\"/g" /etc/default/bind9
-
+
# Restart bind to pick up configuration changes
service bind9 restart
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
- #apt-get install -y docker-engine
apt-get install -y --allow-unauthenticated docker-engine
service docker start
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 "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 docker-engine
apt-get install -y --allow-unauthenticated docker-engine
service docker start
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/ens3/eth0/g' /etc/network/interfaces.d/*.cfg
-
+
# DNS/GW IP address configuration
echo "nameserver __dns_ip_addr__" >> /etc/resolvconf/resolv.conf.d/head
resolvconf -u
# Disable cloud-init for networking on reboot
echo 'network: {config: disabled}' >> /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
-
+
# Reboot the VM to pick up configuration changes
reboot
-
-
+
+
# Message Router instantiation
mrouter_private_port:
type: OS::Neutron::Port
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
- #apt-get install -y docker-engine
apt-get install -y --allow-unauthenticated docker-engine
service docker start
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 "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 docker-engine
apt-get install -y --allow-unauthenticated docker-engine
service docker start
# Clone Gerrit repository
cd /opt
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
grub-mkconfig -o /boot/grub/grub.cfg
sed -i 's/ens3/eth0/g' /etc/network/interfaces.d/*.cfg
-
+
# DNS/GW IP address configuration
echo "nameserver __dns_ip_addr__" >> /etc/resolvconf/resolv.conf.d/head
resolvconf -u
-
+
# Disable cloud-init for networking on reboot
echo 'network: {config: disabled}' >> /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
-
+
# Reboot the VM to pick up configuration changes
reboot
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 "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
- #apt-get install -y docker-engine
apt-get install -y --allow-unauthenticated docker-engine
service docker start
# Clone Gerrit repository
cd /opt
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
resolvconf -u
-
+
# Reboot the VM to pick up configuration changes
reboot
-
-
+
+
# SDN-C instantiation
sdnc_private_port:
type: OS::Neutron::Port
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
chmod +x /opt/sdnc_serv.sh
mv /opt/sdnc_serv.sh /etc/init.d
update-rc.d sdnc_serv.sh defaults
-
+
# Download and install docker-engine and docker-compose
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
- #apt-get install -y docker-engine
apt-get install -y --allow-unauthenticated docker-engine
service docker start
# Clone Gerrit repository
cd /opt
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
resolvconf -u
-
+
# Reboot the VM to pick up configuration changes
reboot
-
+
# SDC instantiation
sdc_private_port:
type: OS::Neutron::Port
__gerrit_branch__: { get_param: gerrit_branch }
template: |
#!/bin/bash
-
+
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 "__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
chmod +x /opt/asdc_serv.sh
mv /opt/asdc_serv.sh /etc/init.d
update-rc.d asdc_serv.sh defaults
-
+
# Download and install docker-engine and docker-compose
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
- #apt-get install -y docker-engine
+
apt-get install -y --allow-unauthenticated docker-engine
service docker start
mkdir /opt/docker
alias rund='/data/scripts/docker_run.sh'
alias health='/data/scripts/docker_health.sh'
EOF
-
+
# Rename network interface
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/ens3/eth0/g' /etc/network/interfaces.d/*.cfg
-
+
# DNS/GW IP address configuration
echo "nameserver __dns_ip_addr__" >> /etc/resolvconf/resolv.conf.d/head
resolvconf -u
-
+
# Disable cloud-init for networking on reboot
echo 'network: {config: disabled}' >> /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
-
+
# Reboot the VM to pick up configuration changes
reboot
-
-
+
+
# PORTAL instantiation
portal_private_port:
type: OS::Neutron::Port
__gerrit_branch__: { get_param: gerrit_branch }
template: |
#!/bin/bash
-
+
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_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
chmod +x /opt/portal_serv.sh
mv /opt/portal_serv.sh /etc/init.d
update-rc.d portal_serv.sh defaults
-
+
# Download and install docker-engine and docker-compose
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
- #apt-get install -y docker-engine
apt-get install -y --allow-unauthenticated docker-engine
service docker start
mkdir /opt/docker
mkdir -p /PROJECT/OpenSource/UbuntuEP/logs
cd /opt
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
resolvconf -u
# Reboot the VM to pick up configuration changes
reboot
-
-
+
+
# DCAE Controller instantiation
dcae_c_private_port:
type: OS::Neutron::Port
__gerrit_branch__: { get_param: gerrit_branch }
template: |
#!/bin/bash
-
+
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 "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
- #apt-get install -y docker-engine
apt-get install -y --allow-unauthenticated docker-engine
service docker start
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
-
+
# Clone Gerrit repository
cd /opt
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
mkdir -p /opt/app/dcae-controller
OPENSTACK-PASSWORD: __openstack_password__
OPENSTACK-KEYNAME: __key_name_____rand_str___dcae
OPENSTACK-PUBKEY: __pub_key__
-
+
NEXUS-URL-ROOT: __nexus_repo_root__
NEXUS-USER: __nexus_username__
NEXUS-PASSWORD: __nexus_password__
NEXUS-URL-SNAPSHOTS: __nexus_url_snapshots__
NEXUS-RAWURL: __nexus_repo__
-
+
DOCKER-REGISTRY: __nexus_docker_repo__
GIT-MR-REPO: http://gerrit.onap.org/r/dcae/demo/startup/message-router.git
EOF_CONFIG
-
+
# DNS/GW IP address configuration
echo "nameserver __dns_ip_addr__" >> /etc/resolvconf/resolv.conf.d/head
resolvconf -u
# Reboot the VM to pick up configuration changes
reboot
-
-
+
+
# Policy Engine instantiation
policy_private_port:
type: OS::Neutron::Port
__gerrit_branch__: { get_param: gerrit_branch }
template: |
#!/bin/bash
-
+
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 "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
- #apt-get install -y docker-engine
apt-get install -y --allow-unauthenticated docker-engine
service docker start
mkdir /opt/docker
# Clone Gerrit repository
cd /opt
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
resolvconf -u
-
+
# Reboot the VM to pick up configuration changes
reboot
-
-
+
+
# APP-C instantiation
appc_private_port:
type: OS::Neutron::Port
__gerrit_branch__: { get_param: gerrit_branch }
template: |
#!/bin/bash
-
+
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
chmod +x /opt/appc_serv.sh
mv /opt/appc_serv.sh /etc/init.d
update-rc.d appc_serv.sh defaults
-
+
# Download and install docker-engine and docker-compose
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
- #apt-get install -y docker-engine
apt-get install -y --allow-unauthenticated docker-engine
service docker start
# Clone Gerrit repository
cd /opt
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
resolvconf -u
-
+
# Reboot the VM to pick up configuration changes
- reboot
-
+ reboot
\ No newline at end of file