summaryrefslogtreecommitdiffstats
path: root/ci/maas-reconfigure-rack.sh
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2017-02-10 02:50:21 -0600
committerNarinder Gupta <narinder.gupta@canonical.com>2017-02-10 02:50:21 -0600
commit7fd0900c8d9bde13eeb0468a77370e047b5577ae (patch)
tree148ccd38e1f3865bc335d2469ebd1bd5cc729ab3 /ci/maas-reconfigure-rack.sh
parentc951f38fedc34d32b47a93b46c2c07b94f4c3b08 (diff)
added to workaround MAAS bug where commisoning of node fails.
Change-Id: I021a0da8c0e6ac5b7c83ee7d8d152dd446d69924 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/maas-reconfigure-rack.sh')
-rw-r--r--ci/maas-reconfigure-rack.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/ci/maas-reconfigure-rack.sh b/ci/maas-reconfigure-rack.sh
new file mode 100644
index 00000000..5ebe8b24
--- /dev/null
+++ b/ci/maas-reconfigure-rack.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/expect
+set MAAS_IP [lindex $argv 0]
+spawn dpkg-reconfigure maas-rack-controller -freadline
+expect "The MAAS cluster controller and nodes need to contact the MAAS region controller API. Set the URL at which they can reach the MAAS API remotely, e.g. \"http://192.168.1.1/MAAS\". Since nodes must be able to access this URL, localhost or 127.0.0.1 are not useful values here. Ubuntu MAAS API address:"
+send "http://$MAAS_IP:5240/MAAS\r"
+
+# done
+expect eof