Group repos under hotel-manage-stack org; update URLs

This commit is contained in:
jtricerolph 2026-07-01 12:28:21 +00:00
parent c946d08d30
commit 31925b61cf
3 changed files with 13 additions and 12 deletions

View file

@ -14,10 +14,11 @@ no local copy of the repo required on the host.
So the management container never creates LXCs; it only updates, monitors and So the management container never creates LXCs; it only updates, monitors and
backs up what these scripts provisioned. backs up what these scripts provisioned.
## Repo layout (Forgejo — owner `jtr`) ## Repo layout (Forgejo — org `hotel-manage-stack`)
All repos are private, under user `jtr` at `git.pterois.co.uk`. Property-neutral All repos are public, grouped under the `hotel-manage-stack` org at
names, since the stack deploys at multiple hotels: `git.pterois.co.uk`. Property-neutral names, since the stack deploys at multiple
hotels:
| Repo | Contents | Provisioned to | | Repo | Contents | Provisioned to |
|------|----------|----------------| |------|----------|----------------|
@ -31,8 +32,8 @@ names, since the stack deploys at multiple hotels:
Postgres (LXC 100) and NPM (LXC 103) have no repo — the installer generates Postgres (LXC 100) and NPM (LXC 103) have no repo — the installer generates
their compose files inline (they carry secrets / are pure infra). their compose files inline (they carry secrets / are pure infra).
> Repos live under user `jtr` (there are no Forgejo orgs). The `FORGEJO_BASE` > Repos live under the `hotel-manage-stack` org. The `FORGEJO_BASE` default in
> default in the wizard is `https://git.pterois.co.uk/jtr`. > the wizard is `https://git.pterois.co.uk/hotel-manage-stack`.
## One-time host prep ## One-time host prep
@ -54,7 +55,7 @@ The installer will offer to download the Ubuntu 22.04 template if missing.
On the Proxmox host shell (as root). All repos are public, so no token needed: On the Proxmox host shell (as root). All repos are public, so no token needed:
```bash ```bash
bash <(curl -fsSL https://git.pterois.co.uk/jtr/proxmox-helpers-hotel-manage-stack/raw/branch/main/install-stack.sh) bash <(curl -fsSL https://git.pterois.co.uk/hotel-manage-stack/proxmox-helpers/raw/branch/main/install-stack.sh)
``` ```
The wizard collects site name, domain, NPM LAN IP/gateway, office IP for The wizard collects site name, domain, NPM LAN IP/gateway, office IP for
@ -71,7 +72,7 @@ offsite.
On the Proxmox host (again, because it creates an LXC): On the Proxmox host (again, because it creates an LXC):
```bash ```bash
bash <(curl -fsSL https://git.pterois.co.uk/jtr/proxmox-helpers-hotel-manage-stack/raw/branch/main/add-app.sh) bash <(curl -fsSL https://git.pterois.co.uk/hotel-manage-stack/proxmox-helpers/raw/branch/main/add-app.sh)
``` ```
Reads `/root/hnf-credentials.txt` for the shared secret and office IP, Reads `/root/hnf-credentials.txt` for the shared secret and office IP,

View file

@ -61,7 +61,7 @@ if whiptail --title "Add App LXC" --yesno \
USE_FORGEJO=true USE_FORGEJO=true
FORGEJO_REPO=$(whiptail --title "Add App LXC" \ FORGEJO_REPO=$(whiptail --title "Add App LXC" \
--inputbox "Full Forgejo repo URL (.git):" 8 70 \ --inputbox "Full Forgejo repo URL (.git):" 8 70 \
"${FORGEJO_BASE:-https://git.pterois.co.uk/jtr}/${APP_NAME}.git" \ "${FORGEJO_BASE:-https://git.pterois.co.uk/hotel-manage-stack}/${APP_NAME}.git" \
3>&1 1>&2 2>&3) || exit 0 3>&1 1>&2 2>&3) || exit 0
else else
USE_FORGEJO=false USE_FORGEJO=false

View file

@ -7,7 +7,7 @@
# │ bash install-stack.sh │ # │ bash install-stack.sh │
# │ │ # │ │
# │ Or from Forgejo once repos are pushed: │ # │ Or from Forgejo once repos are pushed: │
# │ bash <(curl -fsSL https://git.pterois.co.uk/jtr/proxmox-helpers-hotel-manage-stack/raw/branch/main/install-stack.sh) # │ bash <(curl -fsSL https://git.pterois.co.uk/hotel-manage-stack/proxmox-helpers/raw/branch/main/install-stack.sh)
# └─────────────────────────────────────────────────────────────────────────┘ # └─────────────────────────────────────────────────────────────────────────┘
set -euo pipefail set -euo pipefail
@ -131,8 +131,8 @@ Type 'disabled' to allow access from anywhere:" \
Each service is cloned from <base>/<service>.git Each service is cloned from <base>/<service>.git
→ auth portal management noticeboard → auth portal management noticeboard
Example: https://git.pterois.co.uk/jtr" \ Example: https://git.pterois.co.uk/hotel-manage-stack" \
13 66 "https://git.pterois.co.uk/jtr" 3>&1 1>&2 2>&3) || exit 0 13 66 "https://git.pterois.co.uk/hotel-manage-stack" 3>&1 1>&2 2>&3) || exit 0
FORGEJO_BASE="${FORGEJO_BASE%/}" FORGEJO_BASE="${FORGEJO_BASE%/}"
FORGEJO_TOKEN=$(whiptail --title "HNF Stack — Forgejo Token" \ FORGEJO_TOKEN=$(whiptail --title "HNF Stack — Forgejo Token" \
@ -788,7 +788,7 @@ SUMMARY
Events: Push Events: Push
5. To add an app LXC later, on this host run: 5. To add an app LXC later, on this host run:
bash <(curl -fsSL https://git.pterois.co.uk/jtr/proxmox-helpers-hotel-manage-stack/raw/branch/main/add-app.sh) bash <(curl -fsSL https://git.pterois.co.uk/hotel-manage-stack/proxmox-helpers/raw/branch/main/add-app.sh)
SUMMARY SUMMARY
} }