Changeset View
Changeset View
Standalone View
Standalone View
winery-test-environment/build-vms.sh
Show All 9 Lines | |||||
: ${LIBVIRT_URI:=qemu:///system} | : ${LIBVIRT_URI:=qemu:///system} | ||||
VIRSH="virsh --connect $LIBVIRT_URI" | VIRSH="virsh --connect $LIBVIRT_URI" | ||||
VIRT_INSTALL="virt-install --connect $LIBVIRT_URI" | VIRT_INSTALL="virt-install --connect $LIBVIRT_URI" | ||||
function ssh_key() { | function ssh_key() { | ||||
if ! test -f cluster_key; then | if ! test -f cluster_key; then | ||||
ssh-keygen -f cluster_key -N '' -t rsa | ssh-keygen -f cluster_key -N '' -t rsa | ||||
fi | fi | ||||
chmod 600 cluster_key | |||||
} | } | ||||
function stop() { | function stop() { | ||||
local ids="$@" | local ids="$@" | ||||
for id in $ids ; do | for id in $ids ; do | ||||
$VIRSH destroy ceph$id >& /dev/null || true | $VIRSH destroy ceph$id >& /dev/null || true | ||||
$VIRSH undefine ceph$id >& /dev/null || true | $VIRSH undefine ceph$id >& /dev/null || true | ||||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |