Per-host infra config files #9

Merged
john merged 1 commit from feat/infra-host-config into main 2026-07-18 11:36:12 +00:00
Owner

What

Canonical env files for each Dokku host with container names, DB containers, and storage paths.

Why

The Contabo Dokku migration (Jul 18) broke 4+ scripts that hardcoded old container names. Each script hardcoded values independently - when the migration changed them, most were missed.

How

  • infra/hosts/.env - one file per Dokku host, declares topology facts
  • infra/deploy.sh - pushes configs to hosts via scp
  • Scripts on each host source /etc/haskytech/infra.env instead of hardcoding

Next Steps

  1. Deploy to hosts: ./infra/deploy.sh all
  2. Update scripts to source /etc/haskytech/infra.env (forgejo-backup.sh, forgejo-task-reaper.sh, db-backup.sh)
  3. Optional: scheduled CI drift check
## What Canonical env files for each Dokku host with container names, DB containers, and storage paths. ## Why The Contabo Dokku migration (Jul 18) broke 4+ scripts that hardcoded old container names. Each script hardcoded values independently - when the migration changed them, most were missed. ## How - infra/hosts/<host>.env - one file per Dokku host, declares topology facts - infra/deploy.sh - pushes configs to hosts via scp - Scripts on each host source /etc/haskytech/infra.env instead of hardcoding ## Next Steps 1. Deploy to hosts: ./infra/deploy.sh all 2. Update scripts to source /etc/haskytech/infra.env (forgejo-backup.sh, forgejo-task-reaper.sh, db-backup.sh) 3. Optional: scheduled CI drift check
Canonical env files for each Dokku host (contabo-sg, hetzner-lumeria,
hetzner-flexisystems) with container names, DB containers, and storage
paths. Scripts on each host source /etc/haskytech/infra.env instead of
hardcoding values — a single file to update per host on migration.

Includes deploy.sh to push configs to hosts via scp.
john merged commit 63116f07b7 into main 2026-07-18 11:36:12 +00:00
john deleted branch feat/infra-host-config 2026-07-18 11:36:13 +00:00
john referenced this pull request from a commit 2026-07-18 11:36:14 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
haskytech/haskytech-ops!9
No description provided.