Repository navigation
feat(infra): onboard an Ansible infra repo - #5149
Merged
Merged
Conversation
Add the command group `devops infra` with `devops infra onboard <repo>`. The command reads only the local checkout and local tool output, and prints one row for each of 17 checks with a state, a reason and a step. With --confirm, it writes the entry of the repo in infra.repos. An agent caller cannot give an agent access level above none. --dry-run starts no process and writes nothing. Add the first project profile loader (#4627): the field defaults, the type template templates/profiles/ansible-k8s.toml, detection and the .devops/project.toml of the repo merge in that order, and each value records its source. The facts of an infra repo live in its profile. The infra.repos entry holds operational keys only. Pin ansible-core 2.22.0 and ansible-runner 2.4.3 in one environment, [python.ansible-core] of the tools lock, and install it in the devcontainer image. Only ansible-runner goes on PATH. Move the caller detection from telemetry/usage_errors.py to core/caller.py, so the usage-error record and the access level read one source.
Owner
Author
Live validation on dan-petty/homelabRun on 2026-11-12 from an empty config file ( 1.
|
The runner image table leaves ansible-core out with its reason, and the Renovate and variable tables of the tests name the new pins and the three infra variables.
dan-petty
force-pushed
the
feat/5121-infra-onboard
branch
from
November 12, 2026 17:14
147dc47 to
86e2c38
Compare
dan-petty
marked this pull request as ready for review
November 12, 2026 17:21
dan-petty
pushed a commit
that referenced
this pull request
Nov 12, 2026
🤖 I have created a release *beep* *boop* --- ## [0.121.0](v0.120.1...v0.121.0) (2026-11-12) ### Features * **infra:** onboard an Ansible infra repo ([#5149](#5149)) ([ad782a6](ad782a6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every later
devops infracommand needs to know the infra repos, their checkouts, their Ansible layout and what an agent may do on their hosts.devops infra onboardchecks a repo from local files and local tool output only, prints one row for each of 17 checks, and with--confirmwrites its entry ofinfra.repos. The entry holds operational keys only; the facts of the repo come from its project profile (.devops/project.toml, theansible-k8stemplate and detection), the first loader of #4627. An agent cannot set an access level abovenone. ansible-core and ansible-runner are pinned in one tool environment, and onlyansible-runnergoes on PATH.To set homelab to full, a person runs:
uv run devops infra onboard dan-petty/homelab --agent-access full --confirmCloses #5121
Change:
openspec/changes/archive/2026-11-12-5121-onboard-an-ansible-infra-repo/