case file · 02 / Platform eng · 2019—26 · active
Homelab Platform
A self-hosted platform that runs my entire homelab like a real production environment. A declarative YAML inventory is the single source of truth; ~60 Ansible roles converge six hosts including a full HA data tier (Patroni Postgres + etcd + keepalived VIPs, clustered EMQX, HA MinIO/InfluxDB/Grafana/Prometheus). A TypeScript control plane consumes Gitea webhooks into an idempotent, event-sourced deploy log and drives Portainer, with a 28-component React operator console over deploys, drift, secrets, and hosts. Five coordinated repos, 1,000+ commits, ADRs, CI, and Molecule tests.
imagery pending — placeholder plate holds the slot
the engineering move
The deploy pipeline is genuinely event-sourced: a raw Gitea event store (UNIQUE delivery_id → retries are idempotent no-ops), JSONB payloads, and read-side projections over both Postgres and SQLite. Not a “webhook fires a redeploy” script but a proper CQRS-style event log with a synthesized state view.
scale
- commits
- 1,066
- Ansible roles
- 60+
- hosts / 59 stacks
- 6
stack
- Ansible
- Python
- TypeScript
- Fastify
- PostgreSQL
- Patroni
- etcd
- Proxmox
- Gitea