Skip to content

refactor: file roles to chezmoi, secret roles to bash units - #332

Closed
hanthor wants to merge 6 commits into
feat/omp-auth-broker-clientfrom
feat/chezmoi-file-roles
Closed

hanthor wants to merge 6 commits into
feat/omp-auth-broker-clientfrom
feat/chezmoi-file-roles

Conversation

@hanthor

@hanthor hanthor commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Stacked on #331 (base feat/omp-auth-broker-client; retarget to master after #331 merges).

What

  • Removed Ansible roles: shell_dotfiles, git, neovim, shell_atuin, shell_ai (and their site.yml entries).
  • File roles -> chezmoi (home/, .chezmoiroot): shell, git, neovim, gh, ghostty, starship, tmux, inputrc and the atuin config file. Template data in home/.chezmoidata.yaml (alias_groups, user_name, user_email) and home/.chezmoi.toml.tmpl (machine, is_desktop from inventory.yml). unit:chezmoi runs apply --init --keep-going --force --no-tty; ghostty terminfo and nvim plugin sync are .chezmoiscripts/run_after_*.
  • Secret/procedural roles -> units: units/shell-ai.sh and units/atuin.sh (secrets are not chezmoi templates: bitwarden aborts a whole template on one missing item).
  • chezmoi moved to core_brews; scripts/run-units.sh tag map mirrors the removed roles' tags.
  • Everything else (incl. ssh_keys) stays on Ansible.

home/, units/, mise.toml, .chezmoiroot stay owner-reviewed (the fleet timer executes them). Termux not verified.

Verification

  • Rendered aliases.sh, aliases.fish, .zprofile, .gitconfig (desktop and non-desktop) and every static file are byte-identical to master's role output (aside from the managed-by comment lines).
  • On himachal-1: all four units ok, chezmoi status clean apart from the always-run run_after scripts, git email/aliases/abbreviations/nvim/broker verified, repeat run 1.7 s. Pre-change backup: ~/dotfiles-pre-chezmoi-*.tgz.
  • New tests: test_shell_ai_unit, test_atuin_unit, test_chezmoi_data; registry test covers the four units.

hanthor and others added 5 commits October 27, 2026 18:14
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>
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