From f9729b2b7e99d9455362f43bb36410eaccb23434 Mon Sep 17 00:00:00 2001 From: modem7 Date: Fri, 23 Oct 2026 16:12:08 +0100 Subject: [PATCH] Builder: add --rebuild and a VMID_DEFAULT per profile --- .../Ubuntu Cloud Template/README.md | 63 ++++-- .../Ubuntu Cloud Template/build-templates.sh | 186 +++++++++++++++--- .../profiles/base.conf.example | 2 + .../profiles/desktop.conf.example | 2 + .../profiles/extras.conf.example | 2 + 5 files changed, 210 insertions(+), 45 deletions(-) diff --git a/Bash/Proxmox Scripts/Ubuntu Cloud Template/README.md b/Bash/Proxmox Scripts/Ubuntu Cloud Template/README.md index 62dc41e..7a18f57 100644 --- a/Bash/Proxmox Scripts/Ubuntu Cloud Template/README.md +++ b/Bash/Proxmox Scripts/Ubuntu Cloud Template/README.md @@ -52,6 +52,14 @@ To update, run `git pull` in the clone, then `./build-templates.sh --init` to add any new settings to your config (appended, commented out), and build again. `./build-templates.sh --help` lists every option and setting. +To refresh the templates (say monthly), rebuild them in place at their IDs: + +```bash +./build-templates.sh all --rebuild --verify +``` + +See [Rebuilding in place](#rebuilding-in-place). + ## Files - `create-ubuntu-cloud-template.sh`: the generic builder. Downloads an Ubuntu @@ -71,9 +79,12 @@ again. `./build-templates.sh --help` lists every option and setting. ## Templates built by `build-templates.sh` -- `base`: server. -- `extras`: server plus admin tools. -- `desktop`: GNOME plus RDP. +- `base`: server, VMID 52000. +- `extras`: server plus admin tools, VMID 52001. +- `desktop`: GNOME plus RDP, VMID 52002. + +The IDs are `VMID_DEFAULT` in each profile. Without `--rebuild` a taken ID +means the next free one from there. ## Config for `build-templates.sh` @@ -99,8 +110,8 @@ are committed. Two kinds of file: -- `profiles/