diff --git a/deployment/proxmox/provision.sh b/deployment/proxmox/provision.sh index 39d74ac1..30f5f6fc 100755 --- a/deployment/proxmox/provision.sh +++ b/deployment/proxmox/provision.sh @@ -1,32 +1,42 @@ #!/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 + +readonly tmpdir=/tmp/proxmox-provision-$RANDOM$RANDOM +mkdir $tmpdir + ################################################################################ ## Parse arguments username= password= -iso=result/iso/installer.iso sockets=1 cores=1 memory=2048 -vmid= +vmids= help () { cat <