diff options
author | Narinder Gupta <narinder.gupta@canoncial.com> | 2015-09-22 23:14:00 -0500 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canoncial.com> | 2015-09-22 23:16:09 -0500 |
commit | 62632e5960810566091186f2ec90bf10d9f2d4af (patch) | |
tree | f544af1aec71107b081a645c7fa30958b8851f4e /ci/02-maasdeploy.sh | |
parent | e6b6f4362ea2a5bd53ac32118496b61854a0a736 (diff) |
Adding the maas deployment script. This will deploy the maas in a
VM. Also add a bootdtrap node. deploy.yaml will contain the config
file to deploy the openstack release.
deployment.yaml will be lab specific where it will install the
maas in a particular lab.
Change-Id: I9d19e06eeac55666fc38a8db22fe8ba0bda7a764
Diffstat (limited to 'ci/02-maasdeploy.sh')
-rwxr-xr-x | ci/02-maasdeploy.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ci/02-maasdeploy.sh b/ci/02-maasdeploy.sh new file mode 100755 index 00000000..d56cd9f0 --- /dev/null +++ b/ci/02-maasdeploy.sh @@ -0,0 +1,31 @@ +#!/bin/bash +#placeholder for deployment script. +set -ex + +case "$1" in + 'intelpod5' ) + cp intel/pod5/maas/deployment.yaml ./deployment.yaml + ;; + * ) + cp intel/pod5/maas/deployment.yaml ./deployment.yaml + ;; +esac + +echo "... Deployment of maas Started ...." +sudo apt-add-repository ppa:maas-deployers/stable -y +sudo apt-get update -y +sudo apt-get install maas-deployer -y +if [ ! -e /home/ubuntu/.ssh/id_rsa ]; then + ssh-keygen -N '' -f /home/ubuntu/.ssh/id_rsa +fi +sudo adduser ubuntu libvirtd +cat /home/ubuntu/.ssh/id_rsa.pub > /home/ubuntu/.ssh/authorized_keys +maas-deployer -c deployment.yaml -d --force +echo "... Deployment of maas finish ...." + +maas_ip=`grep " ip_address" deployment.yaml | cut -d ":" -f 2` + +#echo "... Deployment of opnfv release Started ...." +python deploy.py $maas_ip +#echo "... Deployment of opnfv release finished ...." + |