c12s-kubespray/tests/scripts/vagrant_clean.sh
2020-04-29 07:14:24 -07:00

12 lines
No EOL
199 B
Bash
Executable file

#!/bin/bash
set -euxo pipefail
# Cleanup vagrant VMs to avoid name conflicts
apt-get install -y libvirt-clients
for i in $(virsh list --name)
do
virsh destroy "$i"
virsh undefine "$i"
done