Adds traefik, the first wave 2 role and the first caller of the internal _binary_update role (#266). It is copied from the environment repository's local role, with the changes below.
What changed against the source
Update path. The downloaded, checksum-verified binary is staged in a directory next to the live binary. The stop, backup, swap, restart, version check and rollback are handed to mortis.kamino._binary_update. The include uses apply tags, so --tags update reaches it.
A download or checksum failure leaves the service running and says so.
A failure during the swap keeps _binary_update's rollback message.
Behaviour changes that come with _binary_update:
The backup is taken whenever a live binary exists. The source skipped it when the binary reported no version.
A failure before the stop no longer restarts the service.
Legacy name guards dropped. These were the guards against the environment's pre-rename variables, and the wave 1 roles dropped theirs too. The README and argument_specs no longer mention them.
Environment content removed: issue numbers, host names, inventory paths, playbooks and the role's own history. The Renovate comment on traefik_version is also gone, because this repository has no manager for it. The README and argument_specs recommend pinning the version in inventory, and the environment will do that at its cutover.
Meta and scenario conventions. The meta namespace is mortis. The scenario follows the Kamino conventions (header, test_sequence, no provisioner env) and calls the role by FQCN.
New real version bump. The scenario's verify now updates to another release (v3.7.18) and back to the role default with traefik_update. After each update it asserts the version, an active unit, and that no staging directory, backup or download is left behind.
Docs. Changelog fragment, README Roadmap and the CLAUDE.md role list.
Scrub check
I grepped roles/traefik and roles/_binary_update for the private domain, host and group names, inventory and playbook paths, #NNN references and IPv4 addresses. The only hits are intentional: the generic example host_vars/<host>/ in a defaults comment, loopback, and the TEST-NET address 192.0.2.53.
Verified
All pre-commit hooks (ansible-lint production profile, yamllint, REUSE, changelog lint) and tests/scripts (200 tests).
--syntax-check of converge.yml and verify.yml.
An independent subagent review compared the role with the source (diff -r). It found no blocker and no should-fix item. Its nits are applied: the staging-failure message, removing the role-history wording, consistent wording for the loopback trust, the README test note, and naming the behaviour changes.
Scenario selection: apart from roles/traefik/, this PR only changes paths on the IGNORED list (README, CLAUDE.md, changelog fragment). Nothing calls traefik, so the picker from #264 runs only roles/traefik/molecule/default.
Not verified
The traefik scenario, including the real bump. This PR's molecule run is the first real-binary run of _binary_update.
The unit's systemd sandbox. As before, the scenario disables it in the unprivileged container.
After the merge, the release tag is the operator's. Then the environment repository pins the release and cuts over to mortis.kamino.traefik.
Adds `traefik`, the first wave 2 role and the first caller of the internal `_binary_update` role (#266). It is copied from the environment repository's local role, with the changes below.
## What changed against the source
- **Update path.** The downloaded, checksum-verified binary is staged in a directory next to the live binary. The stop, backup, swap, restart, version check and rollback are handed to `mortis.kamino._binary_update`. The include uses `apply` tags, so `--tags update` reaches it.
- A download or checksum failure leaves the service running and says so.
- A failure during the swap keeps `_binary_update`'s rollback message.
- **Behaviour changes that come with `_binary_update`:**
- The backup is taken whenever a live binary exists. The source skipped it when the binary reported no version.
- A failure before the stop no longer restarts the service.
- **Legacy name guards dropped.** These were the guards against the environment's pre-rename variables, and the wave 1 roles dropped theirs too. The README and argument_specs no longer mention them.
- **Environment content removed:** issue numbers, host names, inventory paths, playbooks and the role's own history. The Renovate comment on `traefik_version` is also gone, because this repository has no manager for it. The README and argument_specs recommend pinning the version in inventory, and the environment will do that at its cutover.
- **Meta and scenario conventions.** The meta namespace is `mortis`. The scenario follows the Kamino conventions (header, `test_sequence`, no provisioner env) and calls the role by FQCN.
- **New real version bump.** The scenario's verify now updates to another release (v3.7.18) and back to the role default with `traefik_update`. After each update it asserts the version, an active unit, and that no staging directory, backup or download is left behind.
- **Docs.** Changelog fragment, README Roadmap and the CLAUDE.md role list.
## Scrub check
I grepped `roles/traefik` and `roles/_binary_update` for the private domain, host and group names, inventory and playbook paths, `#NNN` references and IPv4 addresses. The only hits are intentional: the generic example `host_vars/<host>/` in a defaults comment, loopback, and the TEST-NET address `192.0.2.53`.
## Verified
- All pre-commit hooks (ansible-lint production profile, yamllint, REUSE, changelog lint) and `tests/scripts` (200 tests).
- `--syntax-check` of `converge.yml` and `verify.yml`.
- An independent subagent review compared the role with the source (`diff -r`). It found no blocker and no should-fix item. Its nits are applied: the staging-failure message, removing the role-history wording, consistent wording for the loopback trust, the README test note, and naming the behaviour changes.
- Scenario selection: apart from `roles/traefik/`, this PR only changes paths on the IGNORED list (README, CLAUDE.md, changelog fragment). Nothing calls `traefik`, so the picker from #264 runs only `roles/traefik/molecule/default`.
## Not verified
- The traefik scenario, including the real bump. This PR's molecule run is the first real-binary run of `_binary_update`.
- The unit's systemd sandbox. As before, the scenario disables it in the unprivileged container.
After the merge, the release tag is the operator's. Then the environment repository pins the release and cuts over to `mortis.kamino.traefik`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Moves the traefik role from the environment repository, the first wave 2 role and the
first caller of the internal _binary_update role.
Against the source:
- The update path stages the downloaded, checksum-verified binary in a directory next to
the live one and hands the stop, backup, swap, restart, version check and rollback to
mortis.kamino._binary_update (include_role with apply tags, so --tags update reaches
it). A download or checksum failure still leaves the running service untouched and
says so; a failure in the swap keeps the rollback message of _binary_update.
- Two small behaviour changes come with _binary_update: the backup is taken whenever a
live binary exists (the source skipped it when the binary reported no version), and a
failure before the stop no longer restarts the running service.
- The legacy name guards (pre-rename variables of the environment) are dropped, as in
the wave 1 roles, and the argument_specs and README no longer mention them.
- Environment references are gone from comments, the README and the argument_specs:
issue numbers, host names, inventory paths, playbooks and the role's own history. The
Renovate comment on traefik_version is dropped, since this repository has no manager
for it; the README and argument_specs recommend pinning the version in inventory.
- meta namespace mortis; the scenario follows the Kamino conventions (header,
test_sequence, no provisioner env) and calls the role by FQCN.
- The scenario's verify gains a real version bump: down to another release (v3.7.18)
and back to the role default with traefik_update, asserting the version, an active
unit and no staging directory, backup or download left behind.
Changelog fragment, README Roadmap and the CLAUDE.md role list updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Defame1297
scheduled this pull request to auto merge when all checks succeed 2026-11-20 19:28:09 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Adds
traefik, the first wave 2 role and the first caller of the internal_binary_updaterole (#266). It is copied from the environment repository's local role, with the changes below.What changed against the source
mortis.kamino._binary_update. The include usesapplytags, so--tags updatereaches it._binary_update's rollback message._binary_update:traefik_versionis also gone, because this repository has no manager for it. The README and argument_specs recommend pinning the version in inventory, and the environment will do that at its cutover.mortis. The scenario follows the Kamino conventions (header,test_sequence, no provisioner env) and calls the role by FQCN.traefik_update. After each update it asserts the version, an active unit, and that no staging directory, backup or download is left behind.Scrub check
I grepped
roles/traefikandroles/_binary_updatefor the private domain, host and group names, inventory and playbook paths,#NNNreferences and IPv4 addresses. The only hits are intentional: the generic examplehost_vars/<host>/in a defaults comment, loopback, and the TEST-NET address192.0.2.53.Verified
tests/scripts(200 tests).--syntax-checkofconverge.ymlandverify.yml.diff -r). It found no blocker and no should-fix item. Its nits are applied: the staging-failure message, removing the role-history wording, consistent wording for the loopback trust, the README test note, and naming the behaviour changes.roles/traefik/, this PR only changes paths on the IGNORED list (README, CLAUDE.md, changelog fragment). Nothing callstraefik, so the picker from #264 runs onlyroles/traefik/molecule/default.Not verified
_binary_update.After the merge, the release tag is the operator's. Then the environment repository pins the release and cuts over to
mortis.kamino.traefik.🤖 Generated with Claude Code