Skip to content

refactor: fonts, github, kube, forgejo-registry roles -> bash units - #334

Closed
hanthor wants to merge 4 commits into
feat/chezmoi-file-rolesfrom
feat/units-batch-2
Closed

hanthor wants to merge 4 commits into
feat/chezmoi-file-rolesfrom
feat/units-batch-2

Conversation

@hanthor

@hanthor hanthor commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Stacked on #332 (parallel to #333).

What

Moves four more Ansible roles to bash units run by mise: shell_fonts -> fonts, github, kube, forgejo_registry -> forgejo-registry. The roles and their site.yml entries are removed; tag map in scripts/run-units.sh keeps just apply-tags kube|github|forgejo|registry|fonts|secrets|shell|dotfiles working.

  • units/lib.sh gains host_var, is_desktop (DOTFILES_IS_DESKTOP, host_vars, then the inventory desktop group), skipped_by_profile (host_vars skip_* flag or vm-test) and write_atomic (moved from shell-ai). The chezmoi unit now uses the same is_desktop, so host_vars overrides apply to it too.
  • Behaviour kept: gating (kube: desktop + not skip_kube; forgejo: not skip_forgejo; fonts: desktop), locked vault leaves existing files, missing items warn, kubectl tls-server-name pin after each home kubeconfig write, key registration only with the right token scopes.
  • The github unit runs after the playbook, so a first apply gets ssh_keys and GitHub registration in one pass.
  • Docs pages rewritten as unit pages; architecture/index/CLAUDE/CONTEXT updated.

Tests

New test_kube_unit, test_github_unit, test_forgejo_registry_unit, test_fonts_unit (stubbed bw/gh/podman/kubectl/curl), registry test covers the 8 units. Not yet run on a real host with a vault; the secrets paths are exercised with stubs only.

hanthor and others added 3 commits October 27, 2026 18:22
Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: James Reilly <5840441+hanthor@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: James Reilly <5840441+hanthor@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: James Reilly <5840441+hanthor@users.noreply.github.com>
@hanthor

hanthor commented Nov 18, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #348: every commit in this PR is also in #348 (refactor: migrate fleet configuration to native units).

Closed during the 2026-11-18 cleanup. The branch is kept, so this can be reopened.

@hanthor hanthor closed this Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant