Add deployments/kanrisha: a phased, self-contained deploy.sh for a custom app that runs on a ScoutFS filesystem. Alma/Rocky (RHEL family) only for now. Phase 1 (host prep) is complete and automated: EPEL + the host package set (git tar sparse mt-st mtx sg3_utils pciutils mbuffer wget curl zstd jq bash-completion sos lsof), Docker, and ScoutFS via setup-scoutfs.sh with a prompted-or-globals license key. It then prints a handoff: create + mount a ScoutFS filesystem, then re-run with SCOUTFS_PATH set. Phase 2 (deploy the stack behind Caddy/TLS) is wired but its compose/Caddyfile content is a clearly-marked STUB pending the real Kanrisha compose file. The script auto-selects the phase from whether SCOUTFS_PATH is a live ScoutFS mount; idempotent and re-runnable. Wiring: register kanrisha in automations.sh (DEPLOYMENTS + ask_deployment_vars), add SCOUTFS_LICENSE to globals.env.example, and document it in README (deployments table + Alma/Rocky-only note). No oslib.sh change needed -- os_detect already folds rocky into the rhel family. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
32 lines
2.1 KiB
Bash
32 lines
2.1 KiB
Bash
# Shared defaults for all deployments and scripts.
|
|
#
|
|
# Copy to globals.env and edit. The launcher (../automations.sh) and the
|
|
# helpers in ../scripts/lib.sh source globals.env if present, otherwise they
|
|
# fall back to the values shown here. The real globals.env is git-ignored.
|
|
|
|
# ─── Repository ─────────────────────────────────────────────────────────────
|
|
# Where the launcher and cloud-init clone this repo from. Used by the
|
|
# one-liner bootstrap and by every deployment's cloud-init.yml.
|
|
REPO_URL=https://git.anomalous.dev/57_Wolve/automations.git
|
|
REPO_BRANCH=main
|
|
|
|
# ─── Shared deployment defaults ─────────────────────────────────────────────
|
|
# Pre-filled into per-deployment prompts so you only type them once.
|
|
ACME_EMAIL=admin@example.com
|
|
SSH_PORT=22
|
|
|
|
# ─── ScoutFS (kanrisha) ─────────────────────────────────────────────────────
|
|
# License key passed to setup-scoutfs.sh by the kanrisha deployment. Leave
|
|
# empty to be prompted per host; set it here to reuse one key unattended.
|
|
SCOUTFS_LICENSE=
|
|
|
|
# ─── SSH authorized keys ────────────────────────────────────────────────────
|
|
# resolve_ssh_keys() prefers this URL when set (fetched live, always current),
|
|
# e.g. a GitHub keys endpoint (https://github.com/<user>.keys) or a raw
|
|
# authorized_keys file. When empty, it falls back to globals/authorized_keys.
|
|
SSH_KEYS_URL=
|
|
|
|
# ─── Backups ────────────────────────────────────────────────────────────────
|
|
# Age public-key recipient file for encrypted backups (relative to repo root).
|
|
AGE_PUBKEY_FILE=globals/age-pubkey.txt
|