Move Proxmox-related things under deployment/proxmox

This commit is contained in:
Nicolas Jeannerod 2024-11-14 11:30:32 +01:00
parent 07fa942989
commit 84ba26d187
Signed by untrusted user: Niols
GPG key ID: 35DB9EC8886E1CB8
2 changed files with 12 additions and 18 deletions

View file

@ -1,8 +1,8 @@
#+title: Provisioning a Proxmox VM #+title: Provisioning VMs via Proxmox
#+author: Kevin Muller, Hans van Zijst & Nicolas Jeannerod
#+date: <2024-10-25 Fri>
* Fediversity Proxmox * Quick links
- Proxmox API doc :: https://pve.proxmox.com/pve-docs/api-viewer
- Fediversity Proxmox ::
- http://192.168.51.81:8006/. - http://192.168.51.81:8006/.
- It is only accessible via Procolix's VPN; see with Kevin. - It is only accessible via Procolix's VPN; see with Kevin.
- You will need identifiers. Also see with Kevin. Select “Promox VE authentication server”. - You will need identifiers. Also see with Kevin. Select “Promox VE authentication server”.

View file

@ -1,8 +1,6 @@
#!/usr/bin/env sh #!/usr/bin/env sh
set -euC set -euC
## Proxmox API doc: https://pve.proxmox.com/pve-docs/api-viewer
################################################################################ ################################################################################
## Parse arguments ## Parse arguments
@ -24,7 +22,7 @@ Required:
--vmid INT Identifier of the VM --vmid INT Identifier of the VM
If not provided via the command line, username and password will be looked for If not provided via the command line, username and password will be looked for
in a `.proxmox` file in the current working directory, the username on the in a '.proxmox' file in the current working directory, the username on the
first line, and the password on the second. first line, and the password on the second.
Optional: Optional:
@ -68,11 +66,7 @@ fi
[ -z "$vmid" ] && die 'Required: `--vmid`.\n' [ -z "$vmid" ] && die 'Required: `--vmid`.\n'
printf 'Configuration:\n' printf 'Provisioning VM %d with:\n' $vmid
printf ' username: %s\n' $username
printf ' password: %s\n' $password
printf ' vmid: %s\n' $vmid
readonly iso readonly iso
readonly sockets readonly sockets