From 1c614ff3b8c0af739ad06474d51429c24c44f07a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=E2=80=9CNiols=E2=80=9D=20Jeannerod?= Date: Thu, 14 Nov 2024 11:43:49 +0100 Subject: [PATCH] Add VM removal script --- deployment/proxmox/remove.sh | 137 +++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100755 deployment/proxmox/remove.sh diff --git a/deployment/proxmox/remove.sh b/deployment/proxmox/remove.sh new file mode 100755 index 0000000..259eeb1 --- /dev/null +++ b/deployment/proxmox/remove.sh @@ -0,0 +1,137 @@ +#!/usr/bin/env sh +set -euC + +################################################################################ +## Constants + +readonly apiurl=https://192.168.51.81:8006/api2/json + +## FIXME: There seems to be a problem with file upload where the task is +## registered to `node051` no matter what node we are actually uploading to? For +## now, let us just use `node051` everywhere. +readonly node=node051 + +################################################################################ +## Parse arguments + +username= +password= +vmids= + +help () { + cat <