From 50e1c44f64585abe63bd40982cb379412045fa33 Mon Sep 17 00:00:00 2001 From: Ryota MIBU Date: Fri, 27 Jan 2017 04:44:48 +0000 Subject: improvements for default virtual pod creation This patch includes the following improvements: - deprecate ci/00-maasdeploy.sh - refactor cleaner sctipts - fix MAAS_IP in default configs Change-Id: I60f77e18ce41573a744d79b8cf468c23a7dd3385 Signed-off-by: Ryota MIBU --- ci/cleanmaas.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 ci/cleanmaas.sh (limited to 'ci/cleanmaas.sh') diff --git a/ci/cleanmaas.sh b/ci/cleanmaas.sh new file mode 100755 index 00000000..40961359 --- /dev/null +++ b/ci/cleanmaas.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -ex + +maasver=$(apt-cache policy maas | grep Installed | cut -d ':' -f 2 | sed -e 's/^.*: //') + +if [[ "$maasver" > "2" ]]; then + echo "removing existing maas ..." + sudo apt-get purge maas maas-cli maas-common maas-dhcp maas-dns maas-proxy maas-rack-controller maas-region-api maas-region-controller -y + sudo rm -rf /var/lib/maas +fi -- cgit 1.2.3-korg