Repository navigation
Closed
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/adrThe architecture decision records and their rulessource/agentFiled by an agenttype/docsType docs: a change to the documentsvalue/mediumValue Medium
Description
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/repositoryand the root stackstf/github/dan-pettyandtf/github/retric-aihere. 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 environmentrelease(.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 CDrefsource, the Ansible collection from git, an OpenTofu?ref=, a reusable workflow@vX.Y.Z). Renovate updates each pin. The environment repository keepstargetRevision: mainfor 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.comand 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
releaseof infra), ADR 0026 (the module moves to infra astf/modules/github-repository; the root stacks go to dan-petty/homelabtf/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.mdand the amendment notes to ADR 0011, 0026 and 0027.
Acceptance criteria
-
ls docs/adr/0032-*.mdfinds one file, andgrep -c 0032 docs/adr/README.mdprints 1 or more. -
grep -l 0032 docs/adr/0011-*.md docs/adr/0026-*.md docs/adr/0027-*.mdlists the 3 files. -
uv run devops ci --check --only docs,domainpasses.
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.
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/adrThe architecture decision records and their rulessource/agentFiled by an agenttype/docsType docs: a change to the documentsvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 21, 2026
Both concern where infrastructure content lives, but 5131 moves the environment tree in code while the candidate writes the ADR that records the placement rule.