blob: acae615df3403047b9e57827ade083e167279b23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/usr/bin/env bash
#Clean script to uninstall provisioning server for Foreman/QuickStack
#author: Dan Radez (dradez@redhat.com)
#
#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 ''
rm -f /var/lib/libvirt/images/instack.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
|