summaryrefslogtreecommitdiffstats
path: root/ci/02-maasdeploy.sh
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-06-02 01:59:09 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-06-02 02:05:08 -0500
commit53447be957517322501caf7c2d441693c350d73f (patch)
tree47d037e4a34e1af63bf008898795b58c1d98c99d /ci/02-maasdeploy.sh
parentcceaaac23491b76e3e095dcb44e3e03c3d6247d0 (diff)
remove the ext-port and data network dependency on the labs.
All data will be captured from labconfig.yaml Change-Id: I11a2431b3896a65dc74cc0423a1b03050ef16146 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/02-maasdeploy.sh')
-rwxr-xr-xci/02-maasdeploy.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/ci/02-maasdeploy.sh b/ci/02-maasdeploy.sh
index 741773d1..4aa9199b 100755
--- a/ci/02-maasdeploy.sh
+++ b/ci/02-maasdeploy.sh
@@ -14,8 +14,6 @@ sudo apt-get update -y
sudo apt-get dist-upgrade -y
sudo apt-get install openssh-server git maas-deployer juju juju-deployer maas-cli python-pip python-openstackclient gsutil -y
-cp maas/deployment.yaml ./deployment.yaml
-
#first parameter should be custom and second should be either
# absolute location of file (including file name) or url of the
# file to download.
@@ -40,7 +38,7 @@ if [ "$1" == "custom" ]; then
cp ../labconfig/default/deployment.yaml ./
cp ../labconfig/default/labconfig.yaml ./
fi
- labname=`grep "lab_location" labconfig.yaml | cut -d ':' -f 2 | sed -e 's/ //'`
+ labname=`grep "maas_name" deployment.yaml | cut -d ':' -f 2 | sed -e 's/ //'`
else
case "$1" in
'intelpod5' )
@@ -180,13 +178,12 @@ crnodevlanint() {
done
}
-#convert labconfig file to deployment.yaml to consume by MAAS.
-#python deploy.py
-
#just make sure the ssh keys added into maas for the current user
sed --i "s@/home/ubuntu@$HOME@g" ./deployment.yaml
sed --i "s@qemu+ssh://ubuntu@qemu+ssh://$USER@g" ./deployment.yaml
+cp ./deployment.yaml ~/.juju/
+
sudo maas-deployer -c deployment.yaml -d --force
sudo chown $USER:$USER environments.yaml