system_baseline: tmux entry point and Debian support #186

Open
opened 2026-11-15 19:36:15 +00:00 by Claude · 2 comments
Owner

Context

A consumer wants the tmux-on-SSH-login feature of mortis.kamino.system_baseline (v1.5.0, tasks/tmux.yml, templates/tmux-autostart.sh.j2) on a Debian 12 (bookworm) host that does not run the full baseline. Two gaps force the consumer to reach into role internals:

  1. No tmux entry point. The README documents only the update and reboot entry points. The consumer has to use include_role: tasks_from: tmux.yml. That skips validate.yml (the session name and window checks, and argument_specs validation) and ties the consumer to an undocumented file that can change in any release. The consumer also has to set system_baseline_essential_packages: [tmux] only to satisfy the 'tmux' in system_baseline_essential_packages condition.
  2. No Debian profile. validate.yml accepts only ubuntu_vm, ubuntu_lxc and pve. A Debian host cannot use the role unless it declares a false system type. Running the full role would also apt-upgrade the host and might reboot it (system_baseline_reboot_if_required defaults to true).

Proposal

  • Add a documented tmux entry point (for example tasks/tmux_entry.yml, or an argument_specs entry tmux). It runs the tmux input validation, installs tmux itself (or asserts that it is present), and installs or removes the snippet. It must not depend on the resolved package list or on system_baseline_system_type.
  • Add Debian support. Either add a debian_lxc / debian_vm profile (Debian 12 first), or make the tmux entry point work on any Debian-family host. Add Molecule coverage on a Debian image for whichever is added.
  • Document both in the role README, and in the roadmap of the Collection README if relevant.

Acceptance

  • A consumer can apply only the tmux feature to a Debian 12 host through a documented entry point. The role's input validation runs, and the consumer needs no tasks_from on internal files and no override of system_baseline_essential_packages.
  • A Molecule scenario covers the entry point on Debian 12.

Consumer workaround meanwhile

The consumer pins v1.5.0 and uses tasks_from: tmux.yml with system_baseline_essential_packages: [tmux] in its playbook. It will switch to the entry point once it is released.

🤖 Generated with Claude Code

## Context A consumer wants the tmux-on-SSH-login feature of `mortis.kamino.system_baseline` (v1.5.0, `tasks/tmux.yml`, `templates/tmux-autostart.sh.j2`) on a Debian 12 (bookworm) host that does not run the full baseline. Two gaps force the consumer to reach into role internals: 1. **No tmux entry point.** The README documents only the `update` and `reboot` entry points. The consumer has to use `include_role: tasks_from: tmux.yml`. That skips `validate.yml` (the session name and window checks, and argument_specs validation) and ties the consumer to an undocumented file that can change in any release. The consumer also has to set `system_baseline_essential_packages: [tmux]` only to satisfy the `'tmux' in system_baseline_essential_packages` condition. 2. **No Debian profile.** `validate.yml` accepts only `ubuntu_vm`, `ubuntu_lxc` and `pve`. A Debian host cannot use the role unless it declares a false system type. Running the full role would also apt-upgrade the host and might reboot it (`system_baseline_reboot_if_required` defaults to true). ## Proposal - Add a documented `tmux` entry point (for example `tasks/tmux_entry.yml`, or an `argument_specs` entry `tmux`). It runs the tmux input validation, installs `tmux` itself (or asserts that it is present), and installs or removes the snippet. It must not depend on the resolved package list or on `system_baseline_system_type`. - Add Debian support. Either add a `debian_lxc` / `debian_vm` profile (Debian 12 first), or make the tmux entry point work on any Debian-family host. Add Molecule coverage on a Debian image for whichever is added. - Document both in the role README, and in the roadmap of the Collection README if relevant. ## Acceptance - A consumer can apply only the tmux feature to a Debian 12 host through a documented entry point. The role's input validation runs, and the consumer needs no `tasks_from` on internal files and no override of `system_baseline_essential_packages`. - A Molecule scenario covers the entry point on Debian 12. ## Consumer workaround meanwhile The consumer pins v1.5.0 and uses `tasks_from: tmux.yml` with `system_baseline_essential_packages: [tmux]` in its playbook. It will switch to the entry point once it is released. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claude added the Kind/Enhancement
Status
Needs Triage
labels 2026-11-15 19:36:15 +00:00
Author
Owner

Two conflicts to settle in triage: Debian support contradicts the role standard's platform rule (every role declares exactly noble and resolute; see test(roles): run every role scenario on 24.04 and 26.04 (#133)), and only Ubuntu molecule images exist. The body also names a repository outside this one, which the Sanitise decision rules out. (From Order of the implementation backlog, #198.)

Two conflicts to settle in triage: Debian support contradicts the role standard's platform rule (every role declares exactly `noble` and `resolute`; see test(roles): run every role scenario on 24.04 and 26.04 (#133)), and only Ubuntu molecule images exist. The body also names a repository outside this one, which the Sanitise decision rules out. (From Order of the implementation backlog, #198.)
Author
Owner

Triage pointer from What a role's platform declaration means, and supported entry points. The map set the rules but did not decide this request; triage it against them:

  • A new entry point needs its own argument_specs key and validation before any change, a README "Entry points" entry and a Molecule test (#227 sets this up for the existing ones).
  • A new platform is declared only once it passes Molecule in CI. Debian 12 bookworm would need its own molecule image; the image being added is Debian 13 trixie (#226).
  • Until this is triaged, tasks/tmux.yml is not renamed.
Triage pointer from [What a role's platform declaration means, and supported entry points](https://git.rkdr.net/Mortis/Kamino/issues/207). The map set the rules but did not decide this request; triage it against them: - A new entry point needs its own argument_specs key and validation before any change, a README "Entry points" entry and a Molecule test (#227 sets this up for the existing ones). - A new platform is declared only once it passes Molecule in CI. Debian 12 `bookworm` would need its own molecule image; the image being added is Debian 13 `trixie` (#226). - Until this is triaged, `tasks/tmux.yml` is not renamed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#186