Skip to content

docs(adr): record the four homes of the infrastructure #6674

Closed

Description

@dan-petty

Problem

Checked at devops-cli main 4ff4b7c on 2026-11-21.

  • Owner direction of 2026-11-21: devops-cli keeps the infrastructure templates of its own deployment. A service repository keeps the templates of its own stack. dan-petty/infra keeps shared configuration templates and general settings. dan-petty/homelab keeps each sensitive value and each setting of the resources on the homelab nodes and cluster.
  • No decision record holds this rule. The last record is docs/adr/0031-review-scanners-run-in-the-runner-pod.md. With no rule, agents planned rows of one site in this repository (feat(k8s): add the danielpetty-com namespace, project and Secret row #6642 to feat(k8s): add the danielpetty-com-pixelfed backup bucket and key #6649).
  • ADR 0026 (Decision 1) puts the planned module tf/github/modules/repository and the root stacks tf/github/dan-petty and tf/github/retric-ai here. The module is a template. The root stacks name private repositories.
  • ADR 0027 puts the self-hosted Renovate in k8s/devops, but it serves every repository of the owner.
  • ADR 0011 point 3 (docs/adr/0011-*.md:89): one release App, for this repository only, with its credentials in the environment release (.github/workflows/release.yml:33). dan-petty/infra needs release tags too (build(release): tag infra releases with release-please infra#5). Owner fact of 2026-11-21: each GitHub App of the account is installed on every dan-petty repository.
  • dan-petty/infra exists: public, MIT, default branch main, onboarded to the roadmap (infra PR feat(release): v0.1.8 #2). It holds no template yet.
  • The Argo CD best practices page says that a remote base at HEAD 'can suddenly change meaning' and recommends a Git tag or a commit SHA.

Proposed remedy

Write docs/adr/0032-<slug>.md in the form of the other records. It records:

  • The four homes and the placement rule: a template that only one consumer uses lives with that consumer. A template that two or more consumers use, or a platform stack that any service can use, lives in infra. The README of each infra template names its consumers.
  • Pins: a consumer pins infra at a release tag vX.Y.Z (a Kustomize ?ref=, an Argo CD ref source, the Ansible collection from git, an OpenTofu ?ref=, a reusable workflow @vX.Y.Z). Renovate updates each pin. The environment repository keeps targetRevision: main for its own sources. A consumer extends a Renovate preset of infra from its default branch.
  • Shared CI for the infrastructure: infra holds reusable workflows (workflow_call) and the Renovate presets. homelab and the service repositories call them at a tag.
  • infra is public. It never holds the real domain, a host or node name, a private address, a device path, an inventory, a Secret or a token. Templates and tests use <domain>, example.com and RFC 5737 addresses.
  • A service repository onboards to the cluster with one services entry in the environment repository. The platform holds no code, row, constant, alert or dashboard of one service.
  • Sequence with feat(argocd): read the environment from the homelab repo #5134: no file of the feat(argocd): read the environment from the homelab repo #5134 copy changes in homelab before plan step 12 (freeze and soak) and dan-petty/homelab#38, no homelab Application is added before homelab#38, and no node change runs during plan steps 10 to 12. This plan does not change the copy set.
  • Amendments: ADR 0011 point 3 (the devops-cli release App also tags dan-petty/infra (owner decision of 2026-11-21), with its credentials in an environment release of infra), ADR 0026 (the module moves to infra as tf/modules/github-repository; the root stacks go to dan-petty/homelab tf/github/, owner decision of 2026-11-21) and ADR 0027 (the self-hosted Renovate becomes a homelab instance of the upstream chart, refactor(k8s): move self-hosted Renovate out of the product #6684 and dan-petty/homelab#95).
  • Add the row to docs/adr/README.md and the amendment notes to ADR 0011, 0026 and 0027.

Acceptance criteria

  • ls docs/adr/0032-*.md finds one file, and grep -c 0032 docs/adr/README.md prints 1 or more.
  • grep -l 0032 docs/adr/0011-*.md docs/adr/0026-*.md docs/adr/0027-*.md lists the 3 files.
  • uv run devops ci --check --only docs,domain passes.

Person steps

  • None. The owner decided both open points on 2026-11-21: the root stacks of ADR 0026 go to dan-petty/homelab tf/github/, because they name private repositories, and the devops-cli release App makes the release tags of dan-petty/infra.

Dependencies

None.

Activity

  1. added
    type/docs
    on Nov 21, 2026
  2. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor
  3. added
    source/agent
    status/new
    value/medium
    effort/low
    scope/adr
    priority/p2-medium
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 21, 2026
  4. removed
    status/in-progress
    owner/agent
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/adrsource/agenttype/docsvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions