From 4cfe91bcbd0a5000bf5a16caea2bbb865c30bc58 Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Mon, 22 Sep 2025 21:20:49 +0200 Subject: [PATCH] allow specifying node in proxmox bash scripts Signed-off-by: Kiara Grouwstra --- infra/proxmox-provision.sh | 3 ++- infra/proxmox-remove.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/infra/proxmox-provision.sh b/infra/proxmox-provision.sh index 8fa3cd56..252a947c 100755 --- a/infra/proxmox-provision.sh +++ b/infra/proxmox-provision.sh @@ -7,7 +7,7 @@ set -euC ## 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 +node=node051 readonly tmpdir=/tmp/proxmox-provision-$RANDOM mkdir $tmpdir @@ -69,6 +69,7 @@ while [ $# -gt 0 ]; do --api-url|--api_url) readonly api_url="$1"; shift ;; --username) readonly username="$1"; shift ;; --password) readonly password="$1"; shift ;; + --node) readonly node="$1"; shift ;; --debug) debug=true ;; diff --git a/infra/proxmox-remove.sh b/infra/proxmox-remove.sh index 1ab46938..361f0e3d 100755 --- a/infra/proxmox-remove.sh +++ b/infra/proxmox-remove.sh @@ -7,7 +7,7 @@ set -euC ## 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 +node=node051 readonly tmpdir=/tmp/proxmox-remove-$RANDOM mkdir $tmpdir @@ -59,6 +59,7 @@ while [ $# -gt 0 ]; do --api-url|--api_url) readonly api_url="$1"; shift ;; --username) readonly username=$1; shift ;; --password) readonly password=$1; shift ;; + --node) readonly node="$1"; shift ;; -h|-\?|--help) help; exit 0 ;;