From ed46811f44b01cbf147bd8f4952fe93f68b441f3 Mon Sep 17 00:00:00 2001 From: Narinder Gupta Date: Thu, 17 Dec 2015 20:41:21 -0600 Subject: changes needed for MAAS 1.9 where no special treatment is needed. As MAAS 1.9 auto enabled the interfaces. Change-Id: Ia17b37685c8a97ffd1925f7a8feb679db27ab501 --- ci/02-maasdeploy.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'ci/02-maasdeploy.sh') diff --git a/ci/02-maasdeploy.sh b/ci/02-maasdeploy.sh index 8ef8565e..290197c5 100755 --- a/ci/02-maasdeploy.sh +++ b/ci/02-maasdeploy.sh @@ -75,6 +75,15 @@ if [ "$virtinstall" -eq 1 ]; then sudo virsh net-start default fi +enableautomode() { + listofnodes=`maas maas nodes list | grep system_id | cut -d '"' -f 4` + + for nodes in $listofnodes + do + maas maas interface link-subnet $nodes $1 mode=AUTO subnet=10.4.9.0/24 + done +} + sudo maas-deployer -c deployment.yaml -d --force sudo chown $USER:$USER environments.yaml @@ -89,6 +98,22 @@ maas maas boot-source update 1 url="http://maas.ubuntu.com/images/ephemeral-v2/d maas maas boot-resources import maas maas sshkeys new key="`cat $HOME/.ssh/id_rsa.pub`" +# Enable interfaces with maas +case "$1" in + 'intelpod5' ) + ;; + 'intelpod6' ) + enableautomode eth1 || true + ;; + 'orangepod2' ) + ;; + 'attvirpod1' ) + ;; + 'juniperpod1' ) + ;; +esac + + #adding compute and control nodes VM to MAAS for deployment purpose. if [ "$virtinstall" -eq 1 ]; then # create two more VMs to do the deployment. -- cgit 1.2.3-korg