Merge lp:~dweaver/orange-box/orange-box-bootstrap-to-node0vm0 into lp:orange-box

Proposed by Darryl Weaver
Status: Merged
Merged at revision: 512
Proposed branch: lp:~dweaver/orange-box/orange-box-bootstrap-to-node0vm0
Merge into: lp:orange-box
Diff against target: 31 lines (+8/-5)
2 files modified
usr/bin/orange-box-bootstrap-juju (+1/-1)
usr/bin/orange-box-demo-cleanup (+7/-4)
To merge this branch: bzr merge lp:~dweaver/orange-box/orange-box-bootstrap-to-node0vm0
Reviewer Review Type Date Requested Status
Dustin Kirkland  Pending
Review via email: mp+239515@code.launchpad.net

Description of the change

Modified orange-box-bootstrap-juju to default to node0vm0.maas by name.
Modified orange-box-demo-cleanup to detect MAAS < 1.6 and only then power down AMTs, otherwise let the juju destroy-environment and MAAS handle powering down AMTs.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'usr/bin/orange-box-bootstrap-juju'
2--- usr/bin/orange-box-bootstrap-juju 2014-09-30 21:29:11 +0000
3+++ usr/bin/orange-box-bootstrap-juju 2014-10-23 22:24:20 +0000
4@@ -25,7 +25,7 @@
5 }
6
7 juju status && echo "Existing deployment found, exiting." && exit 0
8-juju bootstrap --constraints "tags=virtual" --show-log
9+juju bootstrap --to node0vm0.maas --show-log
10 juju set-constraints "tags="
11 juju deploy --to 0 --repository=/srv/charmstore/ local:trusty/juju-gui
12 juju expose juju-gui
13
14=== modified file 'usr/bin/orange-box-demo-cleanup'
15--- usr/bin/orange-box-demo-cleanup 2014-10-01 17:42:22 +0000
16+++ usr/bin/orange-box-demo-cleanup 2014-10-23 22:24:20 +0000
17@@ -23,7 +23,10 @@
18 #Destroy juju environment
19 juju destroy-environment $ENVIRONMENT
20 #make sure AMTs are all powered off
21-export AMT_PASSWORD=Password1+
22-for i in $(seq 11 19); do
23- yes | amttool 10.14.4.$i powerdown >/dev/null 2>&1
24-done
25+maas_ver=$(dpkg -l maas | tail -n1 | awk '{print $3}')
26+if dpkg --compare-versions $maas_ver lt 1.6; then
27+ export AMT_PASSWORD=Password1+
28+ for i in $(seq 11 19); do
29+ yes | amttool 10.14.4.$i powerdown >/dev/null 2>&1
30+ done
31+fi

Subscribers

People subscribed via source and target branches