aboutsummaryrefslogtreecommitdiffstats
path: root/heat/OpenECOMP/onap_openstack.yaml
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-04-17 15:36:30 -0400
committerMarco Platania <platania@research.att.com>2017-04-17 15:36:30 -0400
commita5000dd31f8f58cccb33e71cffe63baf7d1b4e6a (patch)
tree312578d8d4c7f1d79fb77a55d96fe37084daa09d /heat/OpenECOMP/onap_openstack.yaml
parentdbda9918bfbf17e999dc745be82f8ef61c8bbf3a (diff)
Change server name in deploy.sh
Change-Id: I956a4b0170790e17365cb6eaa753d2495a5fa40b Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'heat/OpenECOMP/onap_openstack.yaml')
-rw-r--r--heat/OpenECOMP/onap_openstack.yaml56
1 files changed, 38 insertions, 18 deletions
diff --git a/heat/OpenECOMP/onap_openstack.yaml b/heat/OpenECOMP/onap_openstack.yaml
index a377b5f3..7d54ea1f 100644
--- a/heat/OpenECOMP/onap_openstack.yaml
+++ b/heat/OpenECOMP/onap_openstack.yaml
@@ -1,6 +1,6 @@
heat_template_version: 2015-10-15
-description: Heat template to install ONAP components
+description: Heat template to install ONAP components on Mitaka OpenStack
##############
# #
@@ -425,7 +425,8 @@ resources:
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 docker-engine
+ apt-get install -y --allow-unauthenticated docker-engine
service docker start
mkdir /opt/openecomp
@@ -524,7 +525,8 @@ resources:
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 docker-engine
+ apt-get install -y --allow-unauthenticated docker-engine
service docker start
mkdir /opt/docker
@@ -538,13 +540,16 @@ resources:
echo -n "__openstack_api_key__" | openssl aes-128-ecb -e -K $MSO_ENCRYPTION_KEY -nosalt | xxd -c 256 -p > /opt/config/api_key.txt
# Rename network interface
- sed -i "s/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"net.ifnames=0 biosdevname=0\"/g" /etc/default/grub
+ 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
+ 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
@@ -619,7 +624,8 @@ resources:
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 docker-engine
+ apt-get install -y --allow-unauthenticated docker-engine
service docker start
mkdir /opt/docker
@@ -720,7 +726,8 @@ resources:
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 docker-engine
+ apt-get install -y --allow-unauthenticated docker-engine
service docker start
mkdir /opt/docker
@@ -736,14 +743,17 @@ resources:
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
+ 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
+ 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
@@ -819,7 +829,8 @@ resources:
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 docker-engine
+ apt-get install -y --allow-unauthenticated docker-engine
service docker start
mkdir /opt/docker
@@ -909,7 +920,8 @@ resources:
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 docker-engine
+ apt-get install -y --allow-unauthenticated docker-engine
service docker start
mkdir /opt/docker
@@ -1018,7 +1030,8 @@ resources:
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 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
@@ -1053,14 +1066,17 @@ resources:
EOF
# Rename network interface
- sed -i "s/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"net.ifnames=0 biosdevname=0\"/g" /etc/default/grub
+ 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
+ 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
@@ -1138,7 +1154,8 @@ resources:
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 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
@@ -1244,7 +1261,8 @@ resources:
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 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
@@ -1364,7 +1382,8 @@ resources:
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 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
@@ -1455,7 +1474,8 @@ resources:
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 docker-engine
+ apt-get install -y --allow-unauthenticated docker-engine
service docker start
mkdir /opt/docker