No description
Find a file
sjat f8098c2e15 docs(access): reconcile ADR-016/020 with control-node SSH source (ADR-021)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-09 17:34:57 +02:00
.claude review-repo: add stale-deferred check for ADR Deferred entries 2026-06-05 18:13:49 +02:00
.docker/molecule-debian13 Add core Ansible scaffold, tooling, and pre-commit guards 2026-05-30 14:10:01 +02:00
.scaffold Fix Forgejo registry path to owner/image format (review R10a) 2026-05-30 21:34:02 +02:00
docs docs(access): reconcile ADR-016/020 with control-node SSH source (ADR-021) 2026-06-09 17:34:57 +02:00
inventories feat(base): shared firewall catalog/zones + firewall defaults 2026-06-06 18:49:40 +02:00
playbooks feat(tags): enforce tag vocabulary in make lint; fix docker_host tag 2026-06-06 09:37:43 +02:00
roles fix(base): make rollback snapshot restorable (flush-prefixed) 2026-06-06 19:15:38 +02:00
scripts fix(tags): recognize name: role key; only check roles: in plays 2026-06-06 15:20:09 +02:00
terraform feat(tags): Proxmox VM metadata convention (managed-by=terraform) 2026-06-06 09:39:19 +02:00
tests fix(base): firewall resolver fails fast on empty/malformed sources; cover hosts: + proto default 2026-06-06 18:56:04 +02:00
.ansible-lint Source vault password from Vaultwarden via rbw; nest vault structure 2026-05-30 18:16:35 +02:00
.gitignore Git-ignore verify screenshots; add testing/reviews dir 2026-06-05 13:19:04 +02:00
.pre-commit-config.yaml Harden lint setup and clean inventory placeholders 2026-05-30 14:56:16 +02:00
.yamllint Source vault password from Vaultwarden via rbw; nest vault structure 2026-05-30 18:16:35 +02:00
AGENTS.md Add ADR-010 (Forgejo integration) and rbw-unlocked pre-flight convention 2026-05-30 21:34:07 +02:00
ansible.cfg Source vault password from Vaultwarden via rbw; nest vault structure 2026-05-30 18:16:35 +02:00
CLAUDE.md docs: link ADR-020; harden firewall guardrail to the service catalog 2026-06-06 15:59:47 +02:00
CONTRIBUTING.md Purge residual .vault_pass references (review R1-R5) 2026-05-30 19:17:25 +02:00
Makefile feat(tags): enforce tag vocabulary in make lint; fix docker_host tag 2026-06-06 09:37:43 +02:00
README.md Thread the VERIFY.md convention through ADR-004/new-role/README 2026-06-05 18:52:42 +02:00
requirements.txt Harden lint setup and clean inventory placeholders 2026-05-30 14:56:16 +02:00
requirements.yml Add core Ansible scaffold, tooling, and pre-commit guards 2026-05-30 14:10:01 +02:00
STATUS.md fix(base): make rollback snapshot restorable (flush-prefixed) 2026-06-06 19:15:38 +02:00

boma

Infrastructure-as-code for a self-hosted homelab: a Proxmox cluster of Debian 13 VMs running Docker services, provisioned with Terraform and configured with Ansible. Stable, secure, reproducible, and fully version-controlled.

Scope — this repo manages infrastructure: the cluster's VMs, their hardened base OS, and the containerised services they run. It does not manage personal machines (laptops, desktops, phones). Terraform owns VM existence; Ansible owns everything inside a VM. See STATUS.md for what's built vs planned and docs/decisions/ for the design rationale.

The nameboma is Swahili for a fortified homestead enclosure (a stockade guarding what's within) — fitting for a hardened, self-contained home setup. It keeps company with the project's other Swahili names: askari (the external sentinel) and nyumbani ("home").

Quick start (control node)

git clone <repo-url> ~/ansible
cd ~/ansible

# Create venv and install dependencies
make setup
make collections

# Unlock the vault password from Vaultwarden via rbw
# (one-time rbw setup: docs/runbooks/rotate-secrets.md)
rbw unlock

# Verify setup
make lint

Common operations

What Command
Lint everything make lint
Dry-run site playbook make check PLAYBOOK=site
Deploy everything make deploy PLAYBOOK=site
Test a role make test ROLE=base
Scaffold a new role make new-role NAME=myservice

See Makefile for the full list of targets.

Project structure

.
├── CLAUDE.md               # Claude Code session context
├── Makefile                # All operations go through here
├── ansible.cfg             # Project-scoped Ansible config
├── requirements.txt        # Python dependencies
├── requirements.yml        # Ansible collections
│
├── docs/
│   ├── decisions/          # Architecture decision records (ADRs)
│   ├── runbooks/           # Step-by-step operational procedures
│   ├── security/           # Per-service security checklist + templates + accepted risks
│   ├── testing/            # VERIFY.md template + service-UI verification reports
│   ├── hardware/           # Physical capacity reference + reviews
│   └── reviews/            # /review-repo reports
│
├── inventories/
│   ├── production/         # Live hosts — edit carefully
│   └── staging/            # Test hosts — safe to run freely
│
├── playbooks/              # Orchestration playbooks
│   ├── site.yml            # Full standard state
│   └── bootstrap.yml       # First-run new host setup
│
├── roles/                  # Ansible roles
│   ├── base/               # OS baseline applied to all hosts
│   └── docker_host/        # Docker runtime setup
│
├── terraform/              # VM provisioning only — no DNS (see ADR-006/009)
│   ├── modules/            # Reusable modules (proxmox_vm)
│   └── environments/       # Per-env state: staging/, production/
│
└── scripts/                # Helper scripts (tf_to_inventory.py)

Documentation

  • Current state (built vs planned): STATUS.md — read this before assuming something exists; the ADRs describe intent, not necessarily reality.
  • AI agents: AGENTS.md (points to CLAUDE.md, the authoritative guide)
  • Architecture: docs/decisions/001-architecture.md
  • Security baseline: docs/decisions/002-security.md
  • Toolchain decisions: docs/decisions/003-toolchain.md
  • Docker model: docs/decisions/004-docker-model.md
  • Bootstrapping: docs/decisions/005-bootstrapping.md
  • Terraform: docs/decisions/006-terraform.md
  • Network topology: docs/decisions/007-network.md
  • Testing methodology: docs/decisions/008-testing.md
  • Terraform ↔ Ansible handoff: docs/decisions/009-provisioning-handoff.md
  • Forgejo & CI: docs/decisions/010-forgejo-ci.md
  • Update management: docs/decisions/011-update-management.md
  • Hardware & capacity: docs/decisions/012-hardware-capacity.md
  • Heritage / V4 policy: docs/decisions/013-heritage-v4.md
  • Sourcing technical knowledge: docs/decisions/014-knowledge-sourcing.md
  • Control / AI-worker host (ubongo): docs/decisions/015-control-host.md
  • Mesh VPN (NetBird): docs/decisions/016-mesh-vpn.md
  • Service-UI verification (Level 4): docs/decisions/017-service-ui-verification.md

(CLAUDE.md carries the full cross-referenced table, including the runbooks and security/testing docs.)

Contributing

See CONTRIBUTING.md for conventions, branching strategy, and how to add roles.