From 4a22ce42b28e7b6f5d4ef17d70756df169e93e39 Mon Sep 17 00:00:00 2001 From: Dan Radez Date: Mon, 28 Sep 2015 16:26:35 -0400 Subject: Adding deploy.sh that work with RDO Manager - adding virtual and jenkins support tested - adding config file parameters to deploy - instack virt-sparsify disabled for now - adding clean script Change-Id: I26b5968e64fa79af166b11422f5d73812d8e96d1 Signed-off-by: Dan Radez --- ci/clean.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 ci/clean.sh (limited to 'ci/clean.sh') diff --git a/ci/clean.sh b/ci/clean.sh new file mode 100755 index 00000000..d9a02e43 --- /dev/null +++ b/ci/clean.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +#Clean script to uninstall provisioning server for Foreman/QuickStack +#author: Dan Radez (dradez@redhat.com) +# +#Uses Vagrant and VirtualBox +# +virsh destroy instack 2> /dev/null || echo -n '' +virsh undefine instack --remove-all-storage 2> /dev/null || echo -n '' +virsh destroy baremetalbrbm_0 2> /dev/null || echo -n '' +virsh undefine baremetalbrbm_0 --remove-all-storage 2> /dev/null || echo -n '' +virsh destroy baremetalbrbm_1 2> /dev/null || echo -n '' +virsh undefine baremetalbrbm_1 --remove-all-storage 2> /dev/null || echo -n '' + +rm -f /var/lib/libvirt/images/instack.qcow2 2> /dev/null +rm -f /var/lib/libvirt/images/baremetalbrbm_0.qcow2 2> /dev/null +rm -f /var/lib/libvirt/images/baremetalbrbm_1.qcow2 2> /dev/null -- cgit 1.2.3-korg