What a role's platform declaration means, and supported entry points #207

Closed
opened 2026-11-16 06:10:52 +00:00 by Claude · 2 comments
Owner

Part of #87

Question

Role standard decided every role passes on noble and resolute and declares exactly those. The roles disagree with that today:

  • network_interfaces targets Debian (ifreload), and sshd, system_baseline and systemd_hardening carry a profile for Debian trixie. Several roles declare jammy and trixie in their metadata. The platforms issue (#133) says to drop Debian.
  • The open request system_baseline: tmux entry point and Debian support asks for the opposite, and for a supported tasks/<name>.yml entry point. Such an entry point is used today though undocumented, and it skips argument validation.

Decide:

  • Does a platform declaration mean "tested in CI" or "meant to work on"? May a role declare a platform that has no molecule image?
  • Is Debian declared for the roles that have Debian code paths, is that code removed, or does it stay undeclared?
  • May a role have more than one supported entry point, and what must each one do (validation, documentation, a test)?

From the review

  • Amends, depending on the answer: the platforms issue (#133), the stale-claims issue (#164), the roles/AGENTS.md issue (#181), the validation and naming issue (#137). Both #164 and #133 predate the sshd role and need to cover it.
Part of #87 ## Question [Role standard](https://git.rkdr.net/Mortis/Kamino/issues/93) decided every role passes on `noble` and `resolute` and declares exactly those. The roles disagree with that today: - `network_interfaces` targets Debian (`ifreload`), and `sshd`, `system_baseline` and `systemd_hardening` carry a profile for Debian `trixie`. Several roles declare `jammy` and `trixie` in their metadata. The platforms issue (#133) says to drop Debian. - The open request [system_baseline: tmux entry point and Debian support](https://git.rkdr.net/Mortis/Kamino/issues/186) asks for the opposite, and for a supported `tasks/<name>.yml` entry point. Such an entry point is used today though undocumented, and it skips argument validation. Decide: - Does a platform declaration mean "tested in CI" or "meant to work on"? May a role declare a platform that has no molecule image? - Is Debian declared for the roles that have Debian code paths, is that code removed, or does it stay undeclared? - May a role have more than one supported entry point, and what must each one do (validation, documentation, a test)? ## From the review - Amends, depending on the answer: the platforms issue (#133), the stale-claims issue (#164), the `roles/AGENTS.md` issue (#181), the validation and naming issue (#137). Both #164 and #133 predate the `sshd` role and need to cover it.
Claude added the
Wayfinder
Grilling
label 2026-11-16 06:10:52 +00:00
Author
Owner

Evidence from the review of the map (2026-11-15).

"Tested in CI" or "meant to work on"

  • Role standard: "list exactly Ubuntu noble and resolute ... never all; every role passes on both". test(roles): run every role scenario on 24.04 and 26.04 and declare exactly those platforms: "Drop all, jammy and Debian."
  • Every role's scenario runs on ${MOLECULE_IMAGE}, the 24.04 image, only; no scenario tests 26.04 or Debian (roles/*/molecule/default/molecule.yml).
  • The declaration is advisory for a Collection not published on Galaxy: the collection requirements say nothing about role platforms. ansible-lint schema[meta] accepts noble and resolute (checked with ansible-lint 26.10.1 on a throwaway role). So the README and Molecule are the real claim, as the role standard says.
  • What the roles declare today (roles/*/meta/main.yml):
Role Declared
docker Ubuntu all
fail2ban Ubuntu noble
network_interfaces Debian all
sshd, system_baseline, systemd_hardening Ubuntu jammy, noble; Debian trixie
ufw Ubuntu jammy, noble

Debian code paths

  • roles/network_interfaces/README.md:7: "Debian-based hosts using ifupdown2 (ifreload), such as Proxmox hosts". Its scenario stubs the validate and reload commands and "does not test ifreload".
  • sshd, system_baseline and systemd_hardening carry a pve profile for "Debian 13 (trixie) Proxmox hosts". roles/system_baseline/README.md:7 and roles/systemd_hardening/README.md:7 both say Debian 13 is "not verified by a test".
  • So the rule, applied as written, would declare Ubuntu-only for a role whose only target is Debian. The platforms issue's escape ("a role that cannot pass on 26.04 yet keeps noble only") covers a failing Ubuntu role, not a Debian-only one.
  • Options seen: declare Debian trixie as untested and say so; add a Debian molecule image and test it; take those roles out of the rule; or remove the Debian paths. Recommendation: decide before an agent implements the platforms issue and drops Debian. Confidence high.

Supported entry points

  • system_baseline: tmux entry point and Debian support asks for a tmux entry point on Debian 12 (bookworm), which no role declares. A consumer calls tasks_from: tmux.yml today; roles/system_baseline/tasks/tmux.yml is not a documented entry point.
  • roles/system_baseline/tasks/main.yml:3 imports validate.yml first, so tasks_from: tmux.yml skips argument validation.
  • Some roles already document other entry points: system_baseline documents tasks_from: update and tasks_from: reboot as "a supported interface" under semver (README.md:57-62), and ufw documents tasks_from: service_rules (roles/ufw/README.md:57). Entry points are therefore already a role feature, with no rule on what each must do.
  • Risk if undecided: the rename and restructure in refactor(roles): validate through spec keys and validate.yml, and prefix internal variables with _ROLE can break an undocumented tasks/<name>.yml silently.
  • Options seen: a supported entry point validates its own inputs, is documented under "Entry points" and has a test; or tasks/<name>.yml is never supported and the consumer's need gets a real entry point. Until decided, a note on the platforms issue keeps tasks/tmux.yml from being renamed.
Evidence from the review of the map (2026-11-15). ### "Tested in CI" or "meant to work on" - [Role standard](https://git.rkdr.net/Mortis/Kamino/issues/93): "list exactly Ubuntu noble and resolute ... never `all`; every role passes on both". [test(roles): run every role scenario on 24.04 and 26.04 and declare exactly those platforms](https://git.rkdr.net/Mortis/Kamino/issues/133): "Drop `all`, `jammy` and Debian." - Every role's scenario runs on `${MOLECULE_IMAGE}`, the 24.04 image, only; no scenario tests 26.04 or Debian (`roles/*/molecule/default/molecule.yml`). - The declaration is advisory for a Collection not published on Galaxy: the [collection requirements](https://docs.ansible.com/ansible/latest/community/collection_contributors/collection_requirements.html) say nothing about role platforms. `ansible-lint` `schema[meta]` accepts `noble` and `resolute` (checked with ansible-lint 26.10.1 on a throwaway role). So the README and Molecule are the real claim, as the role standard says. - What the roles declare today (`roles/*/meta/main.yml`): | Role | Declared | |---|---| | docker | Ubuntu `all` | | fail2ban | Ubuntu noble | | network_interfaces | Debian `all` | | sshd, system_baseline, systemd_hardening | Ubuntu jammy, noble; Debian trixie | | ufw | Ubuntu jammy, noble | - Both [docs: correct stale claims about roles, licensing, the ansible-core floor and build_ignore](https://git.rkdr.net/Mortis/Kamino/issues/164) ("the six roles") and the platforms issue ("including `ufw` if it has merged") predate `sshd`, which declares jammy, noble and trixie. - Option seen: a declaration names what is tested, and an untested platform is either left out or listed in the README as untested. No recommendation was given. ### Debian code paths - `roles/network_interfaces/README.md:7`: "Debian-based hosts using `ifupdown2` (`ifreload`), such as Proxmox hosts". Its scenario stubs the validate and reload commands and "does not test `ifreload`". - `sshd`, `system_baseline` and `systemd_hardening` carry a `pve` profile for "Debian 13 (trixie) Proxmox hosts". `roles/system_baseline/README.md:7` and `roles/systemd_hardening/README.md:7` both say Debian 13 is "not verified by a test". - So the rule, applied as written, would declare Ubuntu-only for a role whose only target is Debian. The platforms issue's escape ("a role that cannot pass on 26.04 yet keeps noble only") covers a failing Ubuntu role, not a Debian-only one. - Options seen: declare Debian trixie as untested and say so; add a Debian molecule image and test it; take those roles out of the rule; or remove the Debian paths. Recommendation: decide before an agent implements the platforms issue and drops Debian. Confidence high. ### Supported entry points - [system_baseline: tmux entry point and Debian support](https://git.rkdr.net/Mortis/Kamino/issues/186) asks for a tmux entry point on Debian 12 (bookworm), which no role declares. A consumer calls `tasks_from: tmux.yml` today; `roles/system_baseline/tasks/tmux.yml` is not a documented entry point. - `roles/system_baseline/tasks/main.yml:3` imports `validate.yml` first, so `tasks_from: tmux.yml` skips argument validation. - Some roles already document other entry points: `system_baseline` documents `tasks_from: update` and `tasks_from: reboot` as "a supported interface" under semver (`README.md:57-62`), and `ufw` documents `tasks_from: service_rules` (`roles/ufw/README.md:57`). Entry points are therefore already a role feature, with no rule on what each must do. - Risk if undecided: the rename and restructure in [refactor(roles): validate through spec keys and validate.yml, and prefix internal variables with __ROLE_](https://git.rkdr.net/Mortis/Kamino/issues/137) can break an undocumented `tasks/<name>.yml` silently. - Options seen: a supported entry point validates its own inputs, is documented under "Entry points" and has a test; or `tasks/<name>.yml` is never supported and the consumer's need gets a real entry point. Until decided, a note on the platforms issue keeps `tasks/tmux.yml` from being renamed.
Defame1297 was assigned by Claude 2026-11-16 14:06:44 +00:00
Author
Owner

Resolution

Decided with the maintainer (grilling session, 2026-11-16). Amends Role standard, "Platforms".

Platform declaration. galaxy_info.platforms in meta/main.yml lists only platforms on which the role passes Molecule in CI on a molecule image. A platform that is used but not tested is named only in the README, under "Untested platforms", never in meta. jammy and Ubuntu all are dropped everywhere.

  • Reason: no tool reads the declaration for a Collection not on Galaxy, so it is worth something only if it is true; the same reasoning as "a stated floor is a tested floor".
  • Held by: review, with the platform list in molecule.yml next to meta/main.yml.

Platforms follow the target hosts. A role declares the releases of the hosts it targets and passes Molecule on each. Ubuntu targets declare exactly noble and resolute; Proxmox targets declare Debian trixie. Each profile is tested on its own OS only.

  • Reason: testing a role on hosts it is never used on proves nothing; network_interfaces targets ifupdown2, which Ubuntu does not use.
  • Held by: review.
  • Aspirational: every role aims at all three releases; a role that covers fewer says why in one README line.

Debian is kept and tested. Removing the Debian code paths would change role behaviour, which the map rules out of scope. A molecule-debian13 image is added (under the existing image rules: added by hand, retired when no host runs it). The pve profiles of sshd, system_baseline and systemd_hardening and the whole of network_interfaces (with ifreload still stubbed) run on it, and those roles declare trixie. network_interfaces declares trixie only. A container does not reproduce /etc/pve or a cluster; the test covers the packages and files the role writes. CI cost: about four more converge-and-verify runs per full Molecule run, not measured.

Supported entry points. A role may have more than one. Each:

  1. has its own key in meta/argument_specs.yml and runs its validation (spec plus whatever validate.yml checks that a spec cannot) before any change;
  2. is listed under an "Entry points" README heading and is part of the semver interface;
  3. is exercised by at least one Molecule scenario.

Every tasks/*.yml without a spec key is internal and may be renamed in any release. Held by a control: the spec-defaults drift check also compares spec keys, README "Entry points" and tasks/<key>.yml (an extension of the accepted custom checker, not a new one).

The tmux and Debian 12 request (system_baseline: tmux entry point and Debian support) is not decided on the map: adding an entry point or a platform changes a role. It is triaged as an ordinary issue against these rules. Until then tasks/tmux.yml keeps its name, because a consumer calls it.

ADR: no; this is easily reversed.

Backlog: filed as two new issues (Debian 13 molecule image; supported entry points), plus corrections on #133, #135, #137, #164, #181 and #186.

## Resolution Decided with the maintainer (grilling session, 2026-11-16). Amends [Role standard](https://git.rkdr.net/Mortis/Kamino/issues/93), "Platforms". **Platform declaration.** `galaxy_info.platforms` in `meta/main.yml` lists only platforms on which the role passes Molecule in CI on a molecule image. A platform that is used but not tested is named only in the README, under "Untested platforms", never in `meta`. `jammy` and Ubuntu `all` are dropped everywhere. - Reason: no tool reads the declaration for a Collection not on Galaxy, so it is worth something only if it is true; the same reasoning as "a stated floor is a tested floor". - Held by: review, with the platform list in `molecule.yml` next to `meta/main.yml`. **Platforms follow the target hosts.** A role declares the releases of the hosts it targets and passes Molecule on each. Ubuntu targets declare exactly `noble` and `resolute`; Proxmox targets declare Debian `trixie`. Each profile is tested on its own OS only. - Reason: testing a role on hosts it is never used on proves nothing; `network_interfaces` targets `ifupdown2`, which Ubuntu does not use. - Held by: review. - Aspirational: every role aims at all three releases; a role that covers fewer says why in one README line. **Debian is kept and tested.** Removing the Debian code paths would change role behaviour, which the map rules out of scope. A `molecule-debian13` image is added (under the existing image rules: added by hand, retired when no host runs it). The `pve` profiles of `sshd`, `system_baseline` and `systemd_hardening` and the whole of `network_interfaces` (with `ifreload` still stubbed) run on it, and those roles declare `trixie`. `network_interfaces` declares `trixie` only. A container does not reproduce `/etc/pve` or a cluster; the test covers the packages and files the role writes. CI cost: about four more converge-and-verify runs per full Molecule run, not measured. **Supported entry points.** A role may have more than one. Each: 1. has its own key in `meta/argument_specs.yml` and runs its validation (spec plus whatever `validate.yml` checks that a spec cannot) before any change; 2. is listed under an "Entry points" README heading and is part of the semver interface; 3. is exercised by at least one Molecule scenario. Every `tasks/*.yml` without a spec key is internal and may be renamed in any release. Held by a control: the spec-defaults drift check also compares spec keys, README "Entry points" and `tasks/<key>.yml` (an extension of the accepted custom checker, not a new one). **The tmux and Debian 12 request** ([system_baseline: tmux entry point and Debian support](https://git.rkdr.net/Mortis/Kamino/issues/186)) is not decided on the map: adding an entry point or a platform changes a role. It is triaged as an ordinary issue against these rules. Until then `tasks/tmux.yml` keeps its name, because a consumer calls it. **ADR:** no; this is easily reversed. **Backlog:** filed as two new issues (Debian 13 molecule image; supported entry points), plus corrections on #133, #135, #137, #164, #181 and #186.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#207