Prefix LXCs hotel-manage-*; group in Proxmox pool + tag

This commit is contained in:
jtricerolph 2026-07-01 12:40:28 +00:00
parent d052d0bddf
commit 4622cc3d45
3 changed files with 110 additions and 71 deletions

View file

@ -1,4 +1,4 @@
# Proxmox Helpers — HNF Stack Installer
# Hotel Manage — Proxmox Stack Installer
tteck-style helper scripts that provision the stack onto a fresh Proxmox host —
no local copy of the repo required on the host.
@ -64,7 +64,7 @@ target. It then provisions the six foundation LXCs (postgres, auth, portal,
npm, management, noticeboard), health-checks each, and configures the NPM proxy
routes. (Leave the Forgejo token blank — the repos are public.)
Secrets are written to `/root/hnf-credentials.txt` (chmod 600) — copy this
Secrets are written to `/root/hotel-manage-credentials.txt` (chmod 600) — copy this
offsite.
## Add an app later
@ -75,7 +75,7 @@ On the Proxmox host (again, because it creates an LXC):
bash <(curl -fsSL https://git.pterois.co.uk/hotel-manage-stack/stack-init/raw/branch/main/add-app.sh)
```
Reads `/root/hnf-credentials.txt` for the shared secret and office IP,
Reads `/root/hotel-manage-credentials.txt` for the shared secret and office IP,
provisions a new LXC, optionally creates a dedicated postgres DB, clones the
app repo, and prints the NPM route / Uptime Kuma / webhook / deploy-map lines
to finish wiring it in. After that, ongoing updates flow through the management
@ -88,6 +88,18 @@ Same command on the new host. Only the wizard answers differ per site:
The internal `10.10.10.0/24` network and all service IPs are identical
everywhere, so the repos are reused unchanged.
## LXC organisation
Every LXC is created with:
- a `hotel-manage-<role>` **hostname** (e.g. `hotel-manage-postgres`,
`hotel-manage-auth`, `hotel-manage-noticeboard`),
- membership of a Proxmox **resource pool** `hotel-manage`, and
- a **tag** `hotel-manage`,
so the whole stack groups and filters together in the Proxmox UI and is easy to
tell apart from any other containers on the host. `add-app.sh` puts new app LXCs
in the same pool/tag.
## Notes
- All repos are public, so no Forgejo token is needed to install or update.