Commit Graph
738 Commits
Author SHA1 Message Date
Defame1297 e1a46fcdb1 Merge pull request 'chore(release): 3.1.0' (#407) from chore/release-3.1.0 into main
Reviewed-on: #407
2026-11-26 22:57:41 +00:00
Defame1297 a659e83e6b chore(release): 3.1.0
Build / build (pull_request) Successful in 1m3s
Lint / lint (pull_request) Successful in 5m4s
Molecule / molecule (pull_request) Successful in 19s
Minor release: adds the tailscale role, and fixes six roles that failed
under --check on a host where they were not installed yet.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-26 21:56:10 +00:00
Defame1297 1afce962a0 Merge pull request 'docs(adr): record self-built CI and molecule images, versioned by CI, pinned by version and digest' (#404) from docs/167-image-adr into main
Reviewed-on: #404
Reviewed-by: Defame1297 <[email protected]>
2026-11-26 21:45:53 +00:00
Defame1297 e3d5c35fcd Merge branch 'main' into docs/167-image-adr
Build / build (pull_request) Successful in 1m3s
Molecule / molecule (pull_request) Successful in 6s
Lint / lint (pull_request) Successful in 3m26s
2026-11-26 21:41:16 +00:00
Defame1297 aa4e8c68a7 Merge pull request 'feat(tailscale): add the tailscale role' (#398) from feat/tailscale-role into main
Reviewed-on: #398
2026-11-26 21:41:00 +00:00
Defame1297 4f9b96b2f4 Merge branch 'main' into feat/tailscale-role
Build / build (pull_request) Successful in 30s
Lint / lint (pull_request) Successful in 2m25s
Molecule / molecule (pull_request) Successful in 4m58s
2026-11-26 21:32:08 +00:00
Defame1297 87280a2f60 docs(security): date the no-failure evidence of the post-merge entry
Build / build (pull_request) Successful in 28s
Molecule / molecule (pull_request) Successful in 9s
Lint / lint (pull_request) Successful in 1m56s
Assisted-by: Claude Code
2026-11-26 21:27:39 +00:00
Defame1297 2b1301d838 docs(adr): date each measurement and give the recorded Dockerfile reason
Assisted-by: Claude Code
2026-11-26 21:26:34 +00:00
Defame1297 288cea47a9 docs(adr): record self-built CI and molecule images, versioned by CI, pinned by version and digest
ADR 0002 records the decision with its measured saving and build cost.
The two risks it leaves (no Molecule run after a merge, and pin bumps
first behaviour-tested after they merge) go to the Accepted risks
register in SECURITY.md, as docs/adr/AGENTS.md requires.

Closes #167

Assisted-by: Claude Code
2026-11-26 21:24:28 +00:00
Defame1297 731bc022cd fix(tailscale): tolerate an unloaded tailscaled unit in reset-failed
Build / build (pull_request) Successful in 26s
Lint / lint (pull_request) Canceled after 2m8s
Molecule / molecule (pull_request) Canceled after 1m37s
After a removal without purge the role has disabled tailscaled, so the
reinstall's postinst does not start it. systemd then unloads the inactive,
unreferenced unit, and `systemctl reset-failed tailscaled` exits 1 with
"Unit tailscaled.service not loaded.", failing the configure step on both
noble and resolute. An unloaded unit has no failure state to clear, and the
restart that follows loads it, so that one error is not a failure.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-26 21:24:10 +00:00
Defame1297 29165a610f fix(tailscale): harden removal, restarts and the auth key check
Build / build (pull_request) Successful in 29s
Lint / lint (pull_request) Successful in 2m25s
Molecule / molecule (pull_request) Failing after 3m23s
- Removal passes on a host without a tailscaled unit, and the
  best-effort logout reports a change only when it succeeded.
- Under --check the service tasks run only when the unit exists, also
  with --tags configure on a host without the package.
- The auth key is required before any change only when the run includes
  the configure tasks; --tags remove, install and update need none. The
  assert in the up block stays as the hard guard.
- When the flags change or tailscaled is not active, the role clears its
  failure state and restarts it at once, so a daemon the package started
  without a TUN device does not stay in the start limit.
- The health tag is back on the configure include.
- The scenario tests removal without purge (state and defaults kept, a
  second removal passes) and a purge with a state directory the package
  does not delete itself, and waits for tailscaled to be active.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-26 20:47:49 +00:00
Defame1297 9c415ee347 Merge pull request 'ci(lint): enable and gate ansible-lint's complexity rule' (#397) from ci/138-complexity-gate into main
Reviewed-on: #397
2026-11-26 19:30:30 +00:00
Defame1297 3b20a1b6c6 ci(lint): enable and gate ansible-lint's complexity rule
Build / build (pull_request) Successful in 29s
Molecule / molecule (pull_request) Successful in 5s
Lint / lint (pull_request) Successful in 1m31s
Enable complexity at the default max_tasks and empty warn_list so
experimental findings fail Lint. Replace the repository-wide role-name
skip with an ignore line for the internal role _binary_update, so a
misnamed public role fails.

Closes #138

Assisted-by: Claude Code:claude-opus-5-5
2026-11-26 19:19:15 +00:00
Defame1297 80c76b16ee feat(tailscale): add the tailscale role
Installs Tailscale from the upstream APT repository with the keyring
pinned by sha256, enables tailscaled and, with tailscale_up (default
true), runs tailscale up with tailscale_auth_key while the node is not
Running. It can also update to the APT candidate version and remove or
purge.

The role asserts Ubuntu and follows the host's release, and requires a
non-empty auth key before any change whenever tailscale up will run.
tailscale_userspace_networking now sets --tun=userspace-networking in
the FLAGS of /etc/default/tailscaled, where tailscaled reads it, instead
of passing it to tailscale up.

The molecule scenario installs the real package on noble and resolute
without joining a tailnet, and covers the update and purge paths and
the refusal cases.

Closes #396

Assisted-by: Claude Code:claude-opus-5-5
2026-11-26 19:08:25 +00:00
Defame1297 31634c4eef Merge pull request 'test(roles): run molecule's check step before and after converge' (#395) from test/134-check-before-after-converge into main
Reviewed-on: #395
Reviewed-by: Defame1297 <[email protected]>
2026-11-26 15:22:51 +00:00
Defame1297 6b99ac9ca0 Merge branch 'main' into test/134-check-before-after-converge
Build / build (pull_request) Successful in 32s
Lint / lint (pull_request) Successful in 2m59s
Molecule / molecule (pull_request) Successful in 42m34s
2026-11-26 14:39:35 +00:00
Defame1297 9ce0fbd433 fix(roles): refresh apt in the docker and traefik scenarios and apply review round 2
Build / build (pull_request) Successful in 22s
Lint / lint (pull_request) Successful in 2m1s
Molecule / molecule (pull_request) Successful in 44m6s
The molecule images ship without apt lists, and --check does not
refresh them, so the fresh-host check of docker and traefik could not
find curl and wget. Their prepare now refreshes the cache, as pihole's
and system_baseline's already do by installing fixtures.

The sequence test gets its own class after the platform tests, the
check-mode rule is split into guards and README, and the
user_management comment sits on the task it explains.

Assisted-by: Claude Code
2026-11-26 12:18:48 +00:00
Defame1297 3afff00b9b fix(roles): apply review findings to the check-mode change
Build / build (pull_request) Successful in 25s
Lint / lint (pull_request) Successful in 2m13s
Molecule / molecule (pull_request) Failing after 34m3s
Guard gitea_runner's docker group membership like its Docker start, run
user_management's getent probe unconditionally, and state the
play-level check_mode limit in every touched README. The check-mode
rule now allows the pihole guard form and names roles whose --check
needs their package installed.

Assisted-by: Claude Code
2026-11-26 11:11:19 +00:00
Defame1297 824456ea65 Merge pull request 'chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.46' (#393) from renovate/git.rkdr.net-mortis-ci-0.x into main
Reviewed-on: #393
2026-11-26 10:46:04 +00:00
Defame1297 cf2286b7a7 test(roles): run molecule's check step before and after converge
Every role scenario with a converge now runs check right before it (a
fresh host) and right after it (a configured host), and a script test
fails a scenario without both. pihole and pve_lxc move their second
check from after idempotence to after converge to match.

The roles that failed under --check on a fresh host get the two allowed
guards: cloudflared, docker, gitea, gitea_runner, traefik and
user_management. ufw and fail2ban preview only a host where their
package is installed, as their READMEs now say.

Closes #134

Assisted-by: Claude Code
2026-11-26 10:11:54 +00:00
Defame1297 b8ad7fc0a6 Merge branch 'main' into renovate/git.rkdr.net-mortis-ci-0.x
Gitea release key / check (pull_request) Successful in 24s
Build / build (pull_request) Successful in 27s
Lint / lint (pull_request) Successful in 3m18s
Molecule / molecule (pull_request) Successful in 43m39s
2026-11-26 10:01:44 +00:00
Defame1297 51b38211e7 Merge pull request 'chore(release): 3.0.0' (#394) from chore/release-3.0.0 into main
Build / build (push) Successful in 23s
Reviewed-on: #394
v3.0.0
2026-11-26 09:18:12 +00:00
Defame1297 27c4ca14c4 chore(release): 3.0.0
Build / build (pull_request) Successful in 1m11s
Lint / lint (pull_request) Successful in 5m26s
Molecule / molecule (pull_request) Successful in 1m56s
Major release: the roles declare exactly the Ubuntu releases they pass
Molecule on in CI. Ubuntu 26.04 (resolute) is added next to 24.04
(noble); 22.04 (jammy) is dropped from five roles and docker narrows
from every Ubuntu release to noble and resolute.

Assisted-by: Claude Code
2026-11-26 08:11:04 +00:00
renovate-bot ff13f2d3a4 chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.46
renovate/stability-days Updates have met minimum release age requirement
Gitea release key / check (pull_request) Successful in 52s
Build / build (pull_request) Successful in 1m15s
Lint / lint (pull_request) Successful in 3m9s
Molecule / molecule (pull_request) Successful in 35m49s
2026-11-26 08:10:58 +00:00
Defame1297 7a4e9f161e Merge pull request 'chore(deps): update dependency apm-cli to v0.38.0' (#392) from renovate/apm-cli-0.x into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:9c7f200c07e3d4a03e7249d2c16bf66a51120fb876aa2242cf31451412543289, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 53s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 2m20s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 7m37s
Reviewed-on: #392
2026-11-26 07:59:18 +00:00
Defame1297 11c5e1987f Merge branch 'main' into renovate/apm-cli-0.x
Build / build (pull_request) Successful in 24s
Molecule / molecule (pull_request) Successful in 56s
Lint / lint (pull_request) Successful in 1m49s
2026-11-26 07:57:23 +00:00
Defame1297 6fe3970f23 Merge pull request 'test(roles): run the Ubuntu roles on 24.04 and 26.04 and declare exactly those' (#381) from test/133-ubuntu-2404-2604 into main
Reviewed-on: #381
2026-11-26 07:46:31 +00:00
Defame1297 042c926058 Merge remote-tracking branch 'origin/main' into test/133-ubuntu-2404-2604
Build / build (pull_request) Successful in 32s
Lint / lint (pull_request) Successful in 3m10s
Molecule / molecule (pull_request) Successful in 35m55s
2026-11-26 06:40:49 +00:00
renovate-bot 6ab8b82fba chore(deps): update dependency apm-cli to v0.38.0
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 21s
Molecule / molecule (pull_request) Successful in 1m2s
Lint / lint (pull_request) Successful in 1m52s
2026-11-26 03:18:34 +00:00
Defame1297 cda8677256 Merge pull request 'chore(release): 2.2.0' (#391) from chore/release-2.2.0 into main
Build / build (push) Successful in 15s
Reviewed-on: #391
v2.2.0
2026-11-26 00:07:33 +00:00
Defame1297 84ea8213e7 chore(release): 2.2.0
Build / build (pull_request) Successful in 29s
Molecule / molecule (pull_request) Successful in 4s
Lint / lint (pull_request) Successful in 1m30s
Minor release: adds the pve_lxc role and declares community.proxmox
(>=2.1.0) as a Collection dependency; its modules need proxmoxer 2.3 or
later on the controller.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 23:44:22 +00:00
Defame1297 7f05d067c8 Merge pull request 'feat(pve_lxc): add the pve_lxc role' (#389) from feat/386-pve-lxc-role into main
Reviewed-on: #389
2026-11-25 23:41:14 +00:00
Defame1297 02d6f9a83e Merge branch 'main' into feat/386-pve-lxc-role
Build / build (pull_request) Successful in 28s
Molecule / molecule (pull_request) Successful in 1m5s
Lint / lint (pull_request) Successful in 1m53s
2026-11-25 23:39:16 +00:00
Defame1297 875e97ff3e Merge pull request 'chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.45' (#390) from renovate/git.rkdr.net-mortis-ci-0.x into main
Reviewed-on: #390
2026-11-25 23:37:58 +00:00
renovate-bot 0e15b3457e chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.45
renovate/stability-days Updates have met minimum release age requirement
Gitea release key / check (pull_request) Successful in 48s
Build / build (pull_request) Successful in 59s
Lint / lint (pull_request) Successful in 2m39s
Molecule / molecule (pull_request) Successful in 18m29s
2026-11-25 23:18:24 +00:00
Defame1297 7d1f6df3d6 Merge pull request 'build(deps): add community.proxmox and proxmoxer for pve_lxc' (#388) from build/386-proxmox-deps into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:9c7f200c07e3d4a03e7249d2c16bf66a51120fb876aa2242cf31451412543289, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 12s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 12s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 5m13s
Reviewed-on: #388
Reviewed-by: Defame1297 <[email protected]>
2026-11-25 23:12:16 +00:00
Defame1297 318229bdb3 feat(pve_lxc): add the pve_lxc role
Build / build (pull_request) Successful in 48s
Lint / lint (pull_request) Failing after 3m17s
Molecule / molecule (pull_request) Failing after 4m2s
Add pve_lxc, which manages the lifecycle of a Proxmox VE LXC container
through the Proxmox API (community.proxmox), reconciles the raw lxc.*
lines of its config on the node and, opt-in, writes its guest firewall
file. It keeps the pve_lxc_* interface and carries no legacy-name guard.
The input asserts run from tasks/validate.yml before any change, and the
API token secret has no default.

The molecule scenario runs the validation and the node-side task files
against a container standing in for the node; the API lifecycle is not
exercised. Debian trixie is declared, untested.

Refs #386

Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 22:55:25 +00:00
Defame1297 ee129a2982 Merge branch 'main' into build/386-proxmox-deps
Build / build (pull_request) Successful in 22s
Lint / lint (pull_request) Successful in 2m2s
Molecule / molecule (pull_request) Successful in 20m23s
2026-11-25 22:50:40 +00:00
Defame1297 35cedf5163 Merge pull request 'chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.44' (#387) from renovate/git.rkdr.net-mortis-ci-0.x into main
Reviewed-on: #387
2026-11-25 22:50:13 +00:00
Defame1297 a6b8bc150d test(roles): run docker and gitea on 26.04 and check become in its smoke scenario
Build / build (pull_request) Successful in 46s
Molecule / molecule (pull_request) Canceled after 30s
Lint / lint (pull_request) Canceled after 44s
molecule-ubuntu2604 0.1.7 lets become from root through and ships gnupg,
so docker and gitea declare resolute like the other Ubuntu roles and the
accepted exception goes. The 26.04 image-smoke scenario now checks
become and gnupg, so a regression fails the image's own pin pull request.

Assisted-by: Claude Code
2026-11-25 22:33:59 +00:00
Defame1297 bb0bf78964 build(deps): add community.proxmox and proxmoxer for pve_lxc
Build / build (pull_request) Successful in 59s
Lint / lint (pull_request) Successful in 4m2s
Molecule / molecule (pull_request) Canceled after 13m29s
The pve_lxc role (#386) manages Proxmox VE guests through community.proxmox,
whose modules import proxmoxer on the controller.

- galaxy.yml: depend on community.proxmox >=2.1.0 (the X.Y.0 of the tested pin,
  like the other dependencies); requirements.yml pins 2.1.0.
- requirements-dev.txt/.lock: pin proxmoxer 2.3.0, the floor community.proxmox
  2.1.0 enforces, so the dev venv and the ci image carry it.
- README: name the new dependency and the controller-side proxmoxer floor.
- ci image: label and doc list the new contents; the changed pin files
  rebuild it on main.

Refs #386

Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 22:29:21 +00:00
Defame1297 5f936962e0 Merge remote-tracking branch 'origin/main' into test/133-ubuntu-2404-2604 2026-11-25 22:26:07 +00:00
renovate-bot dc7d3bdfd9 chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.44
renovate/stability-days Updates have met minimum release age requirement
Gitea release key / check (pull_request) Successful in 45s
Build / build (pull_request) Successful in 1m13s
Lint / lint (pull_request) Successful in 2m36s
Molecule / molecule (pull_request) Successful in 26m4s
2026-11-25 22:22:48 +00:00
Defame1297 6f73021d3f Merge pull request 'chore(deps): update dependency antsibull-changelog to v0.38.0' (#385) from renovate/antsibull-changelog-0.x into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:9c7f200c07e3d4a03e7249d2c16bf66a51120fb876aa2242cf31451412543289, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 20s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 18s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 5m5s
Reviewed-on: #385
2026-11-25 22:16:17 +00:00
Defame1297 9d365f14ae Merge branch 'main' into renovate/antsibull-changelog-0.x
Build / build (pull_request) Successful in 27s
Molecule / molecule (pull_request) Successful in 1m8s
Lint / lint (pull_request) Successful in 1m50s
2026-11-25 22:14:07 +00:00
Defame1297 44cd287d41 Merge pull request 'chore(deps): update git.rkdr.net/mortis/molecule-ubuntu2604 docker tag to v0.1.7' (#384) from renovate/git.rkdr.net-mortis-molecule-ubuntu2604-0.x into main
Reviewed-on: #384
Reviewed-by: Defame1297 <[email protected]>
2026-11-25 22:12:40 +00:00
renovate-bot 8def6cf274 chore(deps): update dependency antsibull-changelog to v0.38.0
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 43s
Lint / lint (pull_request) Successful in 3m49s
Molecule / molecule (pull_request) Successful in 2m20s
2026-11-25 21:52:13 +00:00
renovate-bot da76e995b6 chore(deps): update git.rkdr.net/mortis/molecule-ubuntu2604 docker tag to v0.1.7
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 21s
Lint / lint (pull_request) Successful in 2m37s
Molecule / molecule (pull_request) Successful in 20m12s
2026-11-25 21:51:52 +00:00
Defame1297 0d0fc3d1ec Merge pull request 'fix(images): let become work on molecule-ubuntu2604 and add gnupg' (#382) from fix/376-2604-become into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:9c7f200c07e3d4a03e7249d2c16bf66a51120fb876aa2242cf31451412543289, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 12s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 40s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 15s
Reviewed-on: #382
Reviewed-by: Defame1297 <[email protected]>
2026-11-25 21:50:14 +00:00
Defame1297 87b87dbcef test(images): check become on 26.04 after the fixed image is pinned
Build / build (pull_request) Successful in 30s
Molecule / molecule (pull_request) Successful in 38s
Lint / lint (pull_request) Successful in 1m40s
The 26.04 smoke checks run against the pinned image, which gains the
fix only after this change is built and pinned; they follow with the
pin.

Assisted-by: Claude Code
2026-11-25 21:47:15 +00:00