diff options
author | Tim Rozet <trozet@redhat.com> | 2015-10-28 15:17:20 -0400 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2015-11-02 16:18:29 -0500 |
commit | b4781ad203c1905894f53f9ef931ae60dfa1bc70 (patch) | |
tree | 20013316d0aebca2aaa51e0d01eae3d1bf87e834 /ci/clean.sh | |
parent | 7dfb433c9dd10ef759e46fc655e0958b3baf2e82 (diff) |
Adds HA support to deploy
Defaults the deploy to use HA and adds new param for using
non-HA.
JIRA: APEX-40
Change-Id: Ib3fc8b31ea13a3c590ceaa875197b4b9c1bb55a1
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'ci/clean.sh')
-rwxr-xr-x | ci/clean.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ci/clean.sh b/ci/clean.sh index d9a02e43..7fad2ef1 100755 --- a/ci/clean.sh +++ b/ci/clean.sh @@ -5,13 +5,13 @@ # #Uses Vagrant and VirtualBox # +vm_index=4 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 +for i in $(seq 0 vm_index); do + virsh destroy baremetalbrbm_$i 2> /dev/null || echo -n '' + virsh undefine baremetalbrbm_$i --remove-all-storage 2> /dev/null || echo -n '' + rm -f /var/lib/libvirt/images/baremetalbrbm_${i}.qcow2 2> /dev/null +done |