diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2015-12-17 20:41:21 -0600 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2015-12-17 20:43:17 -0600 |
commit | ed46811f44b01cbf147bd8f4952fe93f68b441f3 (patch) | |
tree | 4c19252b9c9a9c0e7c93255f8e118b4b29d3fa26 /ci/02-maasdeploy.sh | |
parent | 593a7ad51333b5255218ead6642d900aa2809dab (diff) |
changes needed for MAAS 1.9 where no special treatment is needed.
As MAAS 1.9 auto enabled the interfaces.
Change-Id: Ia17b37685c8a97ffd1925f7a8feb679db27ab501
Diffstat (limited to 'ci/02-maasdeploy.sh')
-rwxr-xr-x | ci/02-maasdeploy.sh | 25 |
1 files changed, 25 insertions, 0 deletions
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. |