Commit Graph
322 Commits
Author SHA1 Message Date
Defame1297 7e7e92268e Merge pull request 'chore(deps): update ubuntu:26.04 docker digest to 065aa86' (#149) from renovate/job-container-ubuntu-26.04 into main
Build / build (push) Successful in 12s
Lint / lint (push) Successful in 35s
Images / image (Dockerfile, ubuntu:24.04@sha256:2198e4c65076e9cb0b3d695219df667c0e3b0072da64ca3c2648aca17dcecaf5, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.7) (push) Successful in 9s
Images / image (Dockerfile, ubuntu:26.04@sha256:065aa8626841f16057b78b027b464cd59c4fac36c204c72dcbf48d66f5fa8a96, molecule-ubuntu2604, images/molecule-ubuntu2604, 0.1.4) (push) Successful in 12s
Images / image (images/ci/Dockerfile, ubuntu:26.04@sha256:065aa8626841f16057b78b027b464cd59c4fac36c204c72dcbf48d66f5fa8a96, ci, , 0.2.22) (push) Successful in 8s
Reviewed-on: #149
2026-11-15 09:20:34 +00:00
Defame1297 459e2d1cd2 Merge branch 'main' into renovate/job-container-ubuntu-26.04
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 37s
Molecule / molecule (pull_request) Successful in 2s
2026-11-15 09:18:50 +00:00
kamino-renovate Bot 8870d63878 Merge pull request 'chore(deps): update ubuntu:26.04 docker digest to 065aa86' (#148) from renovate/ubuntu-26.04 into main
Build / build (push) Successful in 11s
Images / image (Dockerfile, ubuntu:24.04@sha256:2198e4c65076e9cb0b3d695219df667c0e3b0072da64ca3c2648aca17dcecaf5, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.7) (push) Successful in 9s
Lint / lint (push) Successful in 35s
Images / image (Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, molecule-ubuntu2604, images/molecule-ubuntu2604, 0.1.4) (push) Successful in 36s
Images / image (images/ci/Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, ci, , 0.2.22) (push) Successful in 3m33s
2026-11-15 09:17:56 +00:00
renovate-bot a962315976 chore(deps): update ubuntu:26.04 docker digest to 065aa86
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 37s
Molecule / molecule (pull_request) Successful in 1s
2026-11-15 09:17:06 +00:00
renovate-bot 28679187a7 chore(deps): update ubuntu:26.04 docker digest to 065aa86
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 34s
Molecule / molecule (pull_request) Successful in 1s
2026-11-15 09:17:04 +00:00
Defame1297 6f08217d77 Merge pull request 'chore(deps): update ubuntu:24.04 docker digest to 2198e4c' (#147) from renovate/job-container-ubuntu-24.04 into main
Build / build (push) Successful in 13s
Images / image (Dockerfile, ubuntu:24.04@sha256:2198e4c65076e9cb0b3d695219df667c0e3b0072da64ca3c2648aca17dcecaf5, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.7) (push) Successful in 13s
Lint / lint (push) Successful in 38s
Images / image (Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, molecule-ubuntu2604, images/molecule-ubuntu2604, 0.1.3) (push) Successful in 9s
Images / image (images/ci/Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, ci, , 0.2.21) (push) Successful in 10s
Reviewed-on: #147
2026-11-15 07:43:19 +00:00
Defame1297 5b016a743d Merge branch 'main' into renovate/job-container-ubuntu-24.04
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 37s
Molecule / molecule (pull_request) Successful in 3s
2026-11-15 07:42:24 +00:00
Defame1297 d1abdc7c3a Merge pull request 'feat(system_baseline): add an update toggle and pin the pve unattended-upgrades origins' (#142) from feat/system-baseline-update-toggle into main
Build / build (push) Successful in 11s
Lint / lint (push) Successful in 34s
Molecule / molecule (push) Successful in 8m16s
Reviewed-on: #142
2026-11-15 07:16:33 +00:00
Defame1297 5655a37bbd Merge branch 'main' into feat/system-baseline-update-toggle
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 36s
Molecule / molecule (pull_request) Successful in 1m46s
2026-11-15 07:13:57 +00:00
kamino-renovate Bot 4f8d2ba639 Merge pull request 'chore(deps): update ubuntu:24.04 docker digest to 2198e4c' (#146) from renovate/ubuntu-24.04 into main
Build / build (push) Successful in 10s
Images / image (Dockerfile, ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.7) (push) Successful in 28s
Lint / lint (push) Successful in 41s
Images / image (Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, molecule-ubuntu2604, images/molecule-ubuntu2604, 0.1.3) (push) Successful in 10s
Images / image (images/ci/Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, ci, , 0.2.21) (push) Successful in 9s
2026-11-15 03:18:42 +00:00
renovate-bot 68caf729b8 chore(deps): update ubuntu:24.04 docker digest to 2198e4c
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 45s
Molecule / molecule (pull_request) Successful in 1s
2026-11-15 03:17:52 +00:00
renovate-bot af65d47a3d chore(deps): update ubuntu:24.04 docker digest to 2198e4c
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 36s
Molecule / molecule (pull_request) Successful in 1s
2026-11-15 03:17:50 +00:00
kamino-renovate Bot 525dee6be2 Merge pull request 'chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.20' (#141) from renovate/git.rkdr.net-mortis-ci-0.x into main
Build / build (push) Successful in 12s
Lint / lint (push) Successful in 33s
2026-11-14 22:28:44 +00:00
Defame1297andClaude Opus 5.5 4d02dbbe60 fix(system_baseline): refuse a mapping as origins and document the pin's reach
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 34s
Molecule / molecule (pull_request) Successful in 1m43s
The origins check now refuses a dict, which Jinja's sequence test accepts.
The changelog states that the pve drop-in drops origins added in earlier
apt.conf.d files and names the opt-out; the README and the drop-in header
note that /etc/apt/apt.conf, read after apt.conf.d, can still add origins;
the verify play notes that the pve run rewrites the 50unattended-upgrades
keys and the ubuntu_lxc re-run restores them.

Refs defame1297/ansible-homelab-mono#349

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-11-14 22:23:49 +00:00
Defame1297 b7bdcf71a3 Merge branch 'main' into renovate/git.rkdr.net-mortis-ci-0.x
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 33s
Molecule / molecule (pull_request) Successful in 1s
2026-11-14 22:23:20 +00:00
kamino-renovate Bot 423e1e47c1 Merge pull request 'chore(deps): update dependency community.general to v14.0.1' (#140) from renovate/community.general-14.x into main
Build / build (push) Successful in 11s
Images / image (Dockerfile, ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.6) (push) Successful in 9s
Lint / lint (push) Successful in 33s
Molecule / molecule (push) Successful in 8m1s
Images / image (Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, molecule-ubuntu2604, images/molecule-ubuntu2604, 0.1.3) (push) Successful in 10s
Images / image (images/ci/Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, ci, , 0.2.21) (push) Successful in 3m32s
2026-11-14 22:15:26 +00:00
Defame1297andClaude Opus 5.5 52d06204bb feat(system_baseline): add an update toggle and pin the pve unattended-upgrades origins
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 35s
Molecule / molecule (pull_request) Successful in 1m46s
system_baseline_update (default true) lets the main flow skip the package
update for hosts patched by a separate, operator-run flow. The update entry
point does not read it: calling it is the request to update.

The new profile key unattended_upgrade_origins is rendered into
/etc/apt/apt.conf.d/90unattended-upgrades-origins, which #clears both
origin lists before setting the pinned patterns, because apt appends list
entries across files and a plain drop-in could only widen them. The pve
profile pins Debian's point-release and security origins, never the
Proxmox repository; the ubuntu profiles pin nothing and are unchanged.

Refs defame1297/ansible-homelab-mono#349

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-11-14 22:11:36 +00:00
renovate-bot 426dc9ff29 chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.20
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 31s
Lint / lint (pull_request) Successful in 26s
Molecule / molecule (pull_request) Successful in 1s
2026-11-14 22:06:26 +00:00
renovate-bot b5990a4e21 chore(deps): update dependency community.general to v14.0.1
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 35s
Molecule / molecule (pull_request) Successful in 8m7s
2026-11-14 22:06:24 +00:00
Defame1297 8a3c7d0fc2 Merge pull request 'ci(deps): make Renovate read the lock and look the hooks up without a token' (#132) from fix/renovate-lock-and-hooks into main
Build / build (push) Successful in 11s
Images / image (Dockerfile, ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.6) (push) Successful in 11s
Lint / lint (push) Successful in 34s
Images / image (Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, molecule-ubuntu2604, images/molecule-ubuntu2604, 0.1.3) (push) Successful in 8s
Images / image (images/ci/Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, ci, , 0.2.20) (push) Successful in 3m24s
Reviewed-on: #132
2026-11-14 21:53:11 +00:00
Defame1297andClaude Sonnet 5.5 1c6a80d3d5 ci(deps): make Renovate read the lock and look the hooks up without a token
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 34s
Molecule / molecule (pull_request) Successful in 8m7s
Dry run 3880 showed that since #124 Renovate proposed no bump at all:

- pip-compile: the manager refused the lock's header ("Option --newline=LF
  not supported (yet)"), extracted nothing and only logged a WARN, so the
  Python tools were never bumped. Drop --newline from
  scripts/lock-requirements.sh and the lock header (the 81 entries and
  hashes are unchanged); the manager now reads 81 dependencies. The lock is
  an image input: ci 0.2.19 -> 0.2.20.
- pre-commit: every hook was skipped (skipReason github-token-required, no
  GitHub token exists), and with the warning off the GitHub GraphQL lookup is
  refused at once (403 rate limit). Look the hooks up with git ls-remote
  (packageRule overrideDatasource git-tags, which needs
  RENOVATE_GITHUB_TOKEN_WARN=false because the token check runs before
  package rules apply). Renovate dereferences annotated tags, so the new rev
  is the commit (checked against git ls-remote for conventional-pre-commit
  v4.5.0). git-tags has no release timestamps, so hook bumps are not
  automerged.

Tested with [email protected].0 --platform=local against this checkout. Not
tested: the real job (renovate.json is read from main), the lock replay by
Renovate's pip-compile artifact step, and the ci 0.2.20 image build.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTRacjtXvmKxHr5TM5G
2026-11-14 21:43:21 +00:00
Defame1297 588ba2a3ea Merge pull request 'chore(deps): move the ci image pins to 0.2.19' (#131) from chore/ci-image-0.2.19 into main
Build / build (push) Successful in 11s
Lint / lint (push) Successful in 27s
Reviewed-on: #131
2026-11-14 21:09:39 +00:00
Defame1297andClaude Sonnet 5.5 06e638c918 chore(deps): move the ci image pins to 0.2.19
Build / build (pull_request) Successful in 45s
Lint / lint (pull_request) Successful in 26s
Molecule / molecule (pull_request) Successful in 2s
Second PR of the two-PR loop for the ci image: 0.2.19 (hashed dev-tools
lock, SHA-pinned hook revisions, #124) is built and published. Its first
build on main failed with "disk quota exceeded" on the runner's 16 GB
rootfs; after the runner's Docker data was pruned the re-run succeeded and
printed this digest.

Pinned reference:
git.rkdr.net/mortis/ci:0.2.19@sha256:c3fbebe64520281218295169f2228558a125ed573237b5dafd2533ba55606fd7

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-14 20:49:45 +00:00
Defame1297 fd3fceeabb Merge pull request 'ci(deps): pin hook revisions by SHA and install dev tools from a hashed lock' (#124) from feat/supply-chain-pins into main
Build / build (push) Successful in 11s
Lint / lint (push) Successful in 1m33s
Molecule / molecule (push) Successful in 8m9s
Images / image (Dockerfile, ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.6) (push) Successful in 8s
Images / image (Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, molecule-ubuntu2604, images/molecule-ubuntu2604, 0.1.3) (push) Successful in 9s
Images / image (images/ci/Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, ci, , 0.2.19) (push) Successful in 4m32s
Reviewed-on: #124
2026-11-14 20:08:41 +00:00
Defame1297 6e8f5bed10 Merge branch 'main' into feat/supply-chain-pins
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 1m34s
Molecule / molecule (pull_request) Successful in 8m0s
2026-11-14 19:57:50 +00:00
Defame1297 653669ff66 Merge pull request 'feat(system_baseline): optional tmux session on SSH login' (#122) from feat/system-baseline-tmux into main
Build / build (push) Successful in 11s
Lint / lint (push) Successful in 25s
Molecule / molecule (push) Successful in 8m0s
Reviewed-on: #122
2026-11-14 19:50:16 +00:00
Defame1297 873a40c48d Merge branch 'main' into feat/system-baseline-tmux
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 28s
Molecule / molecule (pull_request) Successful in 1m28s
2026-11-14 19:48:07 +00:00
Defame1297 d98c48edc3 Merge pull request 'chore(release): 1.4.0' (#130) from chore/release-1.4.0 into main
Lint / lint (push) Successful in 24s
Molecule / molecule (push) Successful in 8m38s
Build / build (push) Successful in 13s
Reviewed-on: #130
v1.4.0
2026-11-14 18:41:54 +00:00
Defame1297andClaude Opus 5.5 d4f4d748a4 chore(release): 1.4.0
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 24s
Molecule / molecule (pull_request) Successful in 8m7s
Adds the ufw role (main, service_rules and orphan_rules entry points),
copied from the environment repository's role with unchanged
behaviour. Existing roles are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-11-14 18:31:16 +00:00
Defame1297 1e42d48ba9 Merge pull request 'feat(ufw): add the ufw role' (#129) from feat/ufw-role into main
Build / build (push) Successful in 10s
Lint / lint (push) Successful in 24s
Molecule / molecule (push) Successful in 7m57s
Reviewed-on: #129
2026-11-14 17:02:08 +00:00
Dragonish 4058978353 ci(deps): pin hook revisions by SHA and install dev tools from a hashed lock
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 1m42s
Molecule / molecule (pull_request) Successful in 5m23s
Refs #113.

- .pre-commit-config.yaml: every hook repo is pinned by commit SHA with the release in a
  `# frozen:` comment, so a moved tag cannot change the code a hook environment is built from.
- requirements-dev.lock: hashed lock of requirements-dev.txt. Installs use
  `pip install --require-hashes -r requirements-dev.lock -r requirements-dev.txt` (dev-setup.sh,
  the ci image, the fallback install of Lint and Build): pip refuses an unhashed package and any
  disagreement between the two files.
- scripts/lock-requirements.sh regenerates the lock (pinned pip and pip-tools, --upgrade mode).
- renovate.json: the pip-compile manager replaces pip_requirements for the lock, plus a weekly,
  never automerged lock-file maintenance PR for transitive packages. Not yet dry-run on Renovate.
- check_bot_pr_diff.py accepts `rev: <sha>  # frozen: <tag>` and lock entries, hashes and plain
  comments, but not a changed pip-compile header command.
- ci image 0.2.18 -> 0.2.19 (image inputs changed).
2026-11-14 16:52:38 +00:00
Defame1297andClaude Opus 5.5 077d8715bf fix(ufw): install the ufw package in prepare and name system_baseline without its FQCN
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 25s
Molecule / molecule (pull_request) Successful in 7m55s
The rename to mortis.kamino.ufw also caught the package name in the scenario's prepare
step, so the package install failed. The role's docs named mortis.kamino.system_baseline,
which the role-independence test refuses; they now name the system_baseline role of this
Collection, and the README example no longer lists it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-11-14 16:52:22 +00:00
Defame1297andClaude Opus 5.5 e18db424ec feat(ufw): add the ufw role
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Failing after 25s
Molecule / molecule (pull_request) Failing after 5m42s
Copied from the environment repository's local role. The files are
identical except: galaxy namespace mortis; comments, argument_specs
descriptions and the README scrubbed of environment references (issue
numbers, CI runs, playbooks, inventory paths and groups, scripts and
caller roles by name), with the technical explanation kept and reworded
generically; the stray-variable guard's fail message drops its issue
reference; the molecule scenario calls the role by its FQCN
(mortis.kamino.ufw), follows the Kamino scenario conventions
(kamino-molecule header, scenario.test_sequence) and no longer sets
ANSIBLE_COLLECTIONS_PATH or ANSIBLE_ROLES_PATH. No variable, default,
argument_specs type or task logic changed; the test coverage is the same.

The README follows the other Kamino roles: purpose, the main,
service_rules and orphan_rules entry points, variables, and example
plays with the FQCN and tasks_from. The meta licence stays
GPL-3.0-or-later AND GPL-3.0-only (templates/before.rules.j2 is derived
from ufw's own file, already annotated in REUSE.toml and NOTICE).
galaxy.yml's dependency comment names ufw as a community.general user.

Not verified locally: the molecule scenario (it runs on the
kamino-molecule runner in CI) and ansible-test sanity.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-11-14 16:43:29 +00:00
Dragonish da3389eac1 fix(system_baseline): keep tmux autostart from ending or swallowing logins
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 21s
Molecule / molecule (pull_request) Successful in 1m30s
Review of #122.

- A failed attach no longer closes the connection: the snippet does not exec tmux, it
  prints a line and leaves the plain shell (a client TERM without terminfo made every
  login fail). A clean detach still ends the connection.
- The snippet acts only for an interactive shell (case $-): a login shell that is not
  interactive, such as `ssh -t host 'bash -lc cmd'`, is left alone. Docs corrected.
- Validation anchors with \Z, so a trailing newline from a YAML block scalar is refused.
  It moves to validate.yml (tag always); argument_specs already covers types.
- Install keys on tmux being in the resolved package list, not a second profile list.
- verify.yml: the snippet does nothing without a terminal, the trailing-newline refusals,
  and the removal path. The vacuous pve assert is gone.
- README and argument_specs: window commands start with a minimal environment (use absolute
  paths), zsh and fish do not read /etc/profile.d, detach ends the connection.
2026-11-14 16:34:14 +00:00
Defame1297 d3d39097b0 Merge branch 'main' into feat/system-baseline-tmux
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 20s
Molecule / molecule (pull_request) Successful in 1m26s
2026-11-14 16:12:31 +00:00
Defame1297 7fa6c6754d Merge pull request 'ci(images): use ci 0.2.18' (#127) from ci/ci-image-pin-0.2.18 into main
Build / build (push) Successful in 10s
Lint / lint (push) Successful in 20s
Reviewed-on: #127
2026-11-14 16:07:39 +00:00
Defame1297andClaude Sonnet 5.5 4cf442df92 ci(images): use ci 0.2.18
Build / build (pull_request) Successful in 24s
Lint / lint (pull_request) Successful in 21s
Molecule / molecule (pull_request) Successful in 1s
Move the ci pins of lint.yml and build.yml to the image the Images run built on main for #126 (the digest is the one the build printed and the registry serves for the 0.2.18 tag). PR 2 of the loop for the ansible-test sanity pre-push hook: the pin files of this repository match the checksums baked into the image again, so Lint takes the baked tools and collections instead of installing them.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 16:06:08 +00:00
Defame1297 8e66a1154c Merge pull request 'ci: resolve the Collection's own roles in lint and run ansible-test sanity before a push' (#126) from ci/lint-resolve-own-collection into main
Build / build (push) Successful in 10s
Images / image (Dockerfile, ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.6) (push) Successful in 9s
Lint / lint (push) Successful in 29s
Images / image (Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, molecule-ubuntu2604, images/molecule-ubuntu2604, 0.1.3) (push) Successful in 10s
Images / image (images/ci/Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, ci, , 0.2.18) (push) Successful in 4m16s
Reviewed-on: #126
2026-11-14 15:59:29 +00:00
Defame1297andClaude Sonnet 5.5 18a7e26e4f ci(hooks): run ansible-test sanity before a push
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 30s
Molecule / molecule (pull_request) Successful in 5m22s
Add a pre-push hook that runs scripts/ansible-test-sanity.sh, so the Build job's sanity check, which ruff and the other hooks do not cover (it failed on a name only its pylint disallows), stops a push instead of the pull request. It is pre-push and not pre-commit because a cold run builds virtualenvs and needs the network; CI's pre-commit run does not run that stage, and a local system hook builds no environment. pre-push joins default_install_hook_types, and dev-setup.sh and its test treat it like the other two hook types, so its hook script also gets the virtualenv on PATH.

Verified through git push --dry-run in a throwaway clone: a commit with a disallowed name inside a function is blocked (exit 1, the same pylint message as CI, failed to push), and the push passes once it is removed.

Image input: .pre-commit-config.yaml is baked into the ci image, so ci 0.2.17 -> 0.2.18 (scripts/bump_image_versions.py). The new hook adds no hook environment and no layer size; the merge builds 0.2.18 and a pin PR follows.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 15:52:35 +00:00
Defame1297andClaude Sonnet 5.5 574c0d00f9 ci(scripts): add a wrapper that runs ansible-test sanity on HEAD
ansible-test only runs a collection from an ansible_collections/<namespace>/<name> directory, so scripts/ansible-test-sanity.sh copies HEAD (git archive: the committed files only) into a temporary one, applies the Build job's ignore-file step and runs ansible-test sanity --requirements, passing extra arguments through. The sanity tests carry their own pylint, pep8 and shellcheck settings and also scan the Python under tests/, which ruff and the other hooks do not (the Build check failed on a name only that pylint disallows). The hook that runs it before a push follows in the next commit.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 15:49:51 +00:00
Defame1297andClaude Sonnet 5.5 6b930a0f7e fix(tests): drop a name that ansible-test sanity pylint disallows
The Build check failed in ansible-test sanity: pylint reported tests/scripts/test_ansible_lint_wrapper.py:37:13 disallowed-name for `_`, from unpacking the middle of str.partition. Ruff accepts the name, but the pylint configuration of ansible-test, which also scans the Python under tests/, does not. Index the partition result instead. Reproduced locally with ansible-test sanity --test pylint on a copy of the tree under ansible_collections/mortis/kamino: the committed file fails with the same message, this one passes.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 15:44:11 +00:00
Defame1297andClaude Sonnet 5.5 3289c0d430 ci(lint): resolve the Collection's own roles and drop mock_roles
Build / build (pull_request) Failing after 11s
Lint / lint (pull_request) Successful in 20s
Molecule / molecule (pull_request) Successful in 1s
Step 5 of #118. The scenarios' converge plays call the roles by FQCN (mortis.kamino.<role>), which only resolves from an ansible_collections/<namespace>/<name> directory, and a checkout is not one, so .ansible-lint listed the five roles in mock_roles and ansible-lint never checked those plays against the real roles.

scripts/ansible-lint.sh, which the ansible-lint hook runs in CI and locally, now links the checkout as ansible_collections/<namespace>/<name> in a temporary root (namespace and name read from galaxy.yml), puts that root first on ANSIBLE_COLLECTIONS_PATH and removes it on exit, so ansible-lint reads the checkout itself. Removing mock_roles reproduced five syntax-check[specific] role-not-found errors; with the link the run passes with no warnings, locally and with CI's preset path. A bare ansible-lint, outside the hook, does not get the link; .ansible-lint says so.

No image input changes: .pre-commit-config.yaml, requirements and images/** are untouched, so no version bump or second pull request. Closes the last open item of #118.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 15:38:34 +00:00
Defame1297 8c743c125a Merge pull request 'ci(images): use ci 0.2.17' (#125) from ci/ci-image-pin-0.2.17 into main
Build / build (push) Successful in 11s
Lint / lint (push) Successful in 19s
Reviewed-on: #125
2026-11-14 15:32:59 +00:00
Defame1297andClaude Sonnet 5.5 462a2d24f3 ci(images): use ci 0.2.17
Build / build (pull_request) Successful in 24s
Lint / lint (pull_request) Successful in 20s
Molecule / molecule (pull_request) Successful in 1s
Move the ci pins of lint.yml and build.yml to the image the Images run built on main for #123 (the digest is the one the build printed and the registry serves for the 0.2.17 tag). This is PR 2 of the loop for the ruff and shellcheck hooks and the baked collections (#112, #118): the pin files of this repository now match the checksums baked into the image, so Lint takes the baked tools and collections instead of installing them.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 15:31:59 +00:00
Defame1297 c258a107fe Merge pull request 'fix(images): prune the unused Go binaries from the ci image' (#123) from ci/ci-image-prune-go-binaries into main
Build / build (push) Successful in 11s
Images / image (Dockerfile, ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.6) (push) Successful in 9s
Lint / lint (push) Successful in 48s
Images / image (Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, molecule-ubuntu2604, images/molecule-ubuntu2604, 0.1.3) (push) Successful in 11s
Images / image (images/ci/Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, ci, , 0.2.17) (push) Successful in 3m42s
Reviewed-on: #123
2026-11-14 15:17:49 +00:00
Defame1297andClaude Sonnet 5.5 cd5c2353fc fix(images): prune the unused Go binaries from the ci image
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 48s
Molecule / molecule (pull_request) Successful in 2s
The push of ci 0.2.16 failed with 413 Payload Too Large from Cloudflare: its /opt/pre-commit layer, 75.5 MB compressed in 0.2.15, grew past the 100 MB limit with the ruff and shellcheck-py environments. About half of that layer was binaries no hook runs: pre-commit installs every main package of a Go hook repository, which leaves gitleaks' config and actionlint's check-checks and generate-* next to the gitleaks and actionlint binaries the hooks call.

Delete everything in each golangenv-*/bin except those two, before the smoke test that runs all six hooks, so a wrongly deleted binary fails the image build. Replicated locally with this repository's hook config: the pre-commit home goes from 89.9 MB to 57.3 MB compressed (gzip -6, about 9% under what the registry stores) and all six hooks still pass. The build now also prints the compressed size of each directory a later COPY turns into a layer, the figure the limit applies to.

ci 0.2.16 was never published (the push failed), so it is skipped: 0.2.16 -> 0.2.17, which the bump check requires because the matrix on main already says 0.2.16.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 15:14:53 +00:00
Defame1297 de0d636002 Merge branch 'main' into feat/system-baseline-tmux
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 41s
Molecule / molecule (pull_request) Successful in 1m24s
2026-11-14 14:45:30 +00:00
Defame1297 212dd7aea8 Merge pull request 'ci: lint scripts with ruff and shellcheck, bake pinned collections into the ci image' (#121) from ci/ruff-shellcheck-and-baked-collections into main
Build / build (push) Successful in 14s
Images / image (Dockerfile, ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.6) (push) Successful in 10s
Lint / lint (push) Successful in 42s
Molecule / molecule (push) Successful in 5m27s
Images / image (Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, molecule-ubuntu2604, images/molecule-ubuntu2604, 0.1.3) (push) Successful in 11s
Images / image (images/ci/Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, ci, , 0.2.16) (push) Failing after 3m17s
Reviewed-on: #121
2026-11-14 14:45:22 +00:00
Defame1297andClaude Sonnet 5.5 068bec93a9 fix(molecule): install community.docker for the Docker driver
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 43s
Molecule / molecule (pull_request) Successful in 6m19s
Every scenario failed in its create step (couldn't resolve module community.docker.docker_login): molecule's Docker driver runs community.docker modules in its own create and destroy playbooks, and the collection came from the runner-provisioned /opt/molecule-collections that the previous commit stopped reading. The roles do not call it, so it is not in requirements.yml, which the ci image bakes for Lint and which Renovate would rebuild the image for. It is pinned in extensions/molecule/requirements.yml instead; the Molecule job installs both files, cached by their combined checksum. Renovate tracks the new file and the bot-diff gate allows only its version: lines.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 14:30:11 +00:00
DragonishandClaude Sonnet 5.5 dcdc9133f6 feat(system_baseline): optional tmux session on SSH login
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 20s
Molecule / molecule (pull_request) Successful in 1m40s
Adds tmux to the ubuntu_lxc and ubuntu_vm profiles and an opt-in
/etc/profile.d snippet that attaches an interactive SSH login to a tmux
session, created with configurable windows when it does not exist.

- system_baseline_tmux_autostart (default false), _session (default main)
  and _windows ([{name, command}]); only ubuntu_lxc and ubuntu_vm install
  the snippet, pve never does, and false removes it.
- profile.d is read only by an interactive login shell, so scp, sftp,
  ssh host command and automation are unaffected. ~/.no-tmux opts a user
  out. ForceCommand is not used: it would affect every session type.
- Names and commands are validated and shell-quoted; the script is
  root-owned. Commands run as the logging-in user and are world-readable,
  so they must hold no secret.
- Molecule converge enables it, verify checks ownership, mode, the attach
  line, the quoting and sh -n.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q72rsMEKREGMfB9DH3T9mR
2026-11-14 14:26:19 +00:00