Add a placeholder flow for create/destroy

This commit is contained in:
Pim van Pelt
2022-10-17 09:44:48 +02:00
parent 54aa9f1890
commit a665e3cbf0
2 changed files with 22 additions and 0 deletions

14
create Normal file
View File

@ -0,0 +1,14 @@
## Using SSH:
## * Log in to hypervisor, retrieve list of running VMs
## * Log in to hypervisor, retrieve list of ZFS volumes
## * List any VM matching spec ^vpp[\d]+-[\d+]$
## * List any ZFS datasets matching matching spec ^ssd-vol0/vpp[\d]+-[\d+]$
## * If any of these exist, bail and require the user to run ./destroy first
##
##
## * Log in to the hypervisor, and:
## * Clone the base image to all VM names (ssd-vol0/vpp0-[0-3])
## * Mount these in a staging directory
## * Rsync over our build/$(overlay)/$(hypervisor)/*
## * Unmount the staging directories
## * Start the VMs

8
destroy Normal file
View File

@ -0,0 +1,8 @@
## Using SSH:
## * Log in to hypervisor, retrieve list of running VMs
## * Log in to hypervisor, retrieve list of ZFS volumes
## * List any VM matching spec ^vpp[\d]+-[\d+]$
## * List any ZFS datasets matching matching spec ^ssd-vol0/vpp[\d]+-[\d+]$
## * If --force is set:
## * Destroy matching VMs
## * Recursively delete any matching ZFS datasets