Group repos under hotel-manage-stack org; update URLs
This commit is contained in:
parent
c946d08d30
commit
31925b61cf
3 changed files with 13 additions and 12 deletions
15
README.md
15
README.md
|
|
@ -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
|
||||
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
|
||||
names, since the stack deploys at multiple hotels:
|
||||
All repos are public, grouped under the `hotel-manage-stack` org at
|
||||
`git.pterois.co.uk`. Property-neutral names, since the stack deploys at multiple
|
||||
hotels:
|
||||
|
||||
| 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
|
||||
their compose files inline (they carry secrets / are pure infra).
|
||||
|
||||
> Repos live under user `jtr` (there are no Forgejo orgs). The `FORGEJO_BASE`
|
||||
> default in the wizard is `https://git.pterois.co.uk/jtr`.
|
||||
> Repos live under the `hotel-manage-stack` org. The `FORGEJO_BASE` default in
|
||||
> the wizard is `https://git.pterois.co.uk/hotel-manage-stack`.
|
||||
|
||||
## 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:
|
||||
|
||||
```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
|
||||
|
|
@ -71,7 +72,7 @@ offsite.
|
|||
On the Proxmox host (again, because it creates an LXC):
|
||||
|
||||
```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,
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ if whiptail --title "Add App LXC" --yesno \
|
|||
USE_FORGEJO=true
|
||||
FORGEJO_REPO=$(whiptail --title "Add App LXC" \
|
||||
--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
|
||||
else
|
||||
USE_FORGEJO=false
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
# │ bash install-stack.sh │
|
||||
# │ │
|
||||
# │ 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
|
||||
|
||||
|
|
@ -131,8 +131,8 @@ Type 'disabled' to allow access from anywhere:" \
|
|||
Each service is cloned from <base>/<service>.git
|
||||
→ auth portal management noticeboard
|
||||
|
||||
Example: https://git.pterois.co.uk/jtr" \
|
||||
13 66 "https://git.pterois.co.uk/jtr" 3>&1 1>&2 2>&3) || exit 0
|
||||
Example: https://git.pterois.co.uk/hotel-manage-stack" \
|
||||
13 66 "https://git.pterois.co.uk/hotel-manage-stack" 3>&1 1>&2 2>&3) || exit 0
|
||||
FORGEJO_BASE="${FORGEJO_BASE%/}"
|
||||
|
||||
FORGEJO_TOKEN=$(whiptail --title "HNF Stack — Forgejo Token" \
|
||||
|
|
@ -788,7 +788,7 @@ SUMMARY
|
|||
Events: Push
|
||||
|
||||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue