Add a placeholder flow for create/destroy
This commit is contained in:
14
create
Normal file
14
create
Normal 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
8
destroy
Normal 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
|
Reference in New Issue
Block a user