Commit Graph
806 Commits
Author SHA1 Message Date
Defame1297 1be02c574b Merge pull request 'feat(cloudflared): add cloudflared_tunnel_lookup_delay input' (#441) from feat/cloudflared-lookup-delay into main
Reviewed-on: #441
2026-11-27 19:14:48 +00:00
Defame1297 084d2d592f Merge branch 'main' into feat/cloudflared-lookup-delay
Build / build (pull_request) Successful in 34s
Lint / lint (pull_request) Successful in 2m55s
Molecule / molecule (pull_request) Successful in 3m34s
2026-11-27 19:06:43 +00:00
Defame1297 90f27812eb Merge pull request 'test(tailscale): let apt reuse downloaded packages in the default scenario' (#440) from test/tailscale-reuse-debs into main
Reviewed-on: #440
2026-11-27 19:00:28 +00:00
Defame1297 a5c1426b25 Merge branch 'main' into test/tailscale-reuse-debs
Build / build (pull_request) Successful in 37s
Lint / lint (pull_request) Successful in 2m24s
Molecule / molecule (pull_request) Successful in 2m47s
2026-11-27 18:56:36 +00:00
Defame1297 4c1cba6e35 Merge pull request 'feat(traefik): add traefik_release_url for a release mirror' (#445) from feat/traefik-release-url into main
Reviewed-on: #445
2026-11-27 18:54:23 +00:00
Defame1297 6364445e3c Merge branch 'main' into feat/traefik-release-url
Build / build (pull_request) Successful in 38s
Lint / lint (pull_request) Successful in 2m36s
Molecule / molecule (pull_request) Successful in 5m10s
2026-11-27 18:48:13 +00:00
Defame1297 30352502dd Merge pull request 'feat: refresh the APT cache on distribution-only installs when stale' (#443) from feat/apt-cache-valid-time into main
Reviewed-on: #443
2026-11-27 18:43:54 +00:00
Defame1297 9ae5eca2a3 Merge branch 'main' into feat/apt-cache-valid-time
Build / build (pull_request) Successful in 31s
Lint / lint (pull_request) Successful in 4m10s
Molecule / molecule (pull_request) Successful in 11m57s
2026-11-27 18:31:05 +00:00
Defame1297 b3037273b7 Merge pull request 'ci: turn on Ansible pipelining for Molecule scenarios' (#446) from ci/molecule-pipelining into main
Reviewed-on: #446
2026-11-27 18:07:33 +00:00
Defame1297 34990718f0 Merge branch 'main' into ci/molecule-pipelining
Build / build (pull_request) Successful in 34s
Lint / lint (pull_request) Successful in 2m58s
Molecule / molecule (pull_request) Successful in 37m27s
2026-11-27 17:29:13 +00:00
Defame1297 47540320b6 Merge pull request 'ci: share a Molecule base config with prerun off and smart gathering' (#444) from ci/molecule-shared-config into main
Reviewed-on: #444
Reviewed-by: Defame1297 <[email protected]>
2026-11-27 17:28:18 +00:00
Defame1297 afd62a8cbb Merge branch 'main' into ci/molecule-shared-config
Build / build (pull_request) Successful in 30s
Lint / lint (pull_request) Successful in 3m4s
Molecule / molecule (pull_request) Successful in 47m44s
2026-11-27 16:35:18 +00:00
Defame1297 810a74d8e5 Merge pull request 'test: check refusals once on the controller in verify' (#442) from test/refusals-in-verify into main
Reviewed-on: #442
Reviewed-by: Defame1297 <[email protected]>
2026-11-27 16:32:23 +00:00
Defame1297 87738f65fd Merge branch 'main' into test/refusals-in-verify
Build / build (pull_request) Successful in 29s
Lint / lint (pull_request) Successful in 3m20s
Molecule / molecule (pull_request) Successful in 22m24s
2026-11-27 16:09:20 +00:00
Defame1297 48e6dcb543 Merge pull request 'ci(molecule): select by image pin for a molecule.yml change of only pins or comments' (#439) from ci/selector-narrow-pins into main
Reviewed-on: #439
Reviewed-by: Defame1297 <[email protected]>
2026-11-27 16:08:45 +00:00
Defame1297 7df98ea8c7 Merge branch 'main' into ci/selector-narrow-pins
Build / build (pull_request) Successful in 28s
Molecule / molecule (pull_request) Successful in 5s
Lint / lint (pull_request) Successful in 1m33s
2026-11-27 16:07:04 +00:00
Defame1297 4a6db3382c Merge pull request 'docs(adr): run Molecule in its own controller image' (#437) from docs/adr-molecule-controller-image into main
Reviewed-on: #437
2026-11-27 16:06:47 +00:00
Defame1297 5e230201e6 Merge branch 'main' into docs/adr-molecule-controller-image
Build / build (pull_request) Successful in 29s
Molecule / molecule (pull_request) Successful in 5s
Lint / lint (pull_request) Successful in 1m33s
2026-11-27 16:05:04 +00:00
Defame1297 114a21fc0f Merge pull request 'docs: update a branch from main only when it is next to merge' (#436) from docs/branch-update-rule into main
Reviewed-on: #436
Reviewed-by: Defame1297 <[email protected]>
2026-11-27 16:04:44 +00:00
Defame1297 c33da78633 Merge branch 'main' into docs/branch-update-rule
Build / build (pull_request) Successful in 29s
Molecule / molecule (pull_request) Successful in 7s
Lint / lint (pull_request) Successful in 1m33s
2026-11-27 16:03:01 +00:00
Defame1297 7dbf9a1bd0 Merge pull request 'ci(renovate): group updates and open them on Mondays' (#438) from ci/renovate-group-schedule into main
Reviewed-on: #438
2026-11-27 16:02:48 +00:00
Defame1297 6c031acc26 Merge branch 'main' into ci/renovate-group-schedule
Build / build (pull_request) Successful in 31s
Molecule / molecule (pull_request) Successful in 4s
Lint / lint (pull_request) Successful in 1m36s
2026-11-27 15:59:47 +00:00
Defame1297 380d52cd13 ci: turn on Ansible pipelining for Molecule scenarios
Molecule / molecule (pull_request) Canceled after 0s
Build / build (pull_request) Canceled after 7s
Lint / lint (pull_request) Canceled after 7s
Set connection.pipelining in the shared Molecule base config. Without
it, every remote task over the community.docker.docker connection pays
extra docker exec and docker cp calls to create a temp dir, copy the
module in and clean up; with it, the module goes over stdin.

The docker connection declares has_pipelining and has no pipelining
option of its own, so core's global setting applies. No role or image
sets requiretty.

Closes #423

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 15:44:34 +00:00
Defame1297 ab0ce421cc feat(traefik): add traefik_release_url for a release mirror
Build / build (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 0s
Molecule / molecule (pull_request) Canceled after 0s
The archive and checksums URLs were hardcoded to the GitHub releases.
traefik_release_url (default: the GitHub release directory of
traefik_version, as before) lets a host download from a mirror.

The Molecule scenario uses it: verify's update path now downloads
stand-in releases that prepare.yml builds under /opt/molecule-download
(a stub binary answering `version`, its archive and a sha256sum
checksums file), so it no longer fetches two more real releases per
host. The converge still downloads the real release from GitHub, which
keeps the default URL proven. traefik_verify_other_version moves to the
scenario's group vars so prepare and verify share it. The update path
leaves the stub installed, which the README and verify now state.

Verify replaces the fixed 15 s pause with a poll (30 x 2 s) for an
"Unable to obtain ACME certificate" log line stamped at or after the
running process's ExecMainStartTimestamp, so a line left by the
process converge restarted does not count. It fails closed on a
missing start time, a missing line or an unparseable stamp. It then
asserts NRestarts
is 0, since Restart=always would hide a crash.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 15:36:34 +00:00
Defame1297 7d11d23294 ci: share a Molecule base config with prerun off and smart gathering
Build / build (pull_request) Successful in 50s
Lint / lint (pull_request) Successful in 5m11s
Molecule / molecule (pull_request) Canceled after 16m59s
Add .config/molecule/config.yml, which molecule merges under every
scenario's molecule.yml. prerun is off: the CI wrapper already puts the
checkout first on ANSIBLE_COLLECTIONS_PATH, so molecule's per-scenario
reinstall of mortis.kamino into ANSIBLE_HOME is redundant. gathering is
smart, so each host's facts are gathered once per playbook run instead
of in every play.

Add .config to build_ignore so scripts/check_tarball.py does not fail
the build, and reword the Molecule rule and the two script comments that
said molecule installs the collection into each scenario's ANSIBLE_HOME.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 15:20:18 +00:00
Defame1297 0973f39831 feat: refresh the APT cache on distribution-only installs when stale
Build / build (pull_request) Successful in 29s
Lint / lint (pull_request) Successful in 2m18s
Molecule / molecule (pull_request) Canceled after 26m49s
The docker prerequisites and the system_baseline packages install only
from the distribution's sources, yet refreshed the APT cache on every
run. They now pass cache_valid_time: 3600, as the system_baseline update
task and user_management already do.

The docker and tailscale installs from the role's own APT source keep
refreshing on every run, so a run that wrote the source line but failed
to fetch its lists heals on the next run. The update entry points are
unchanged.

The system_baseline README tells a consumer who adds a source just
before the role to refresh the cache themselves.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 15:10:32 +00:00
Defame1297 2e70980b44 test: check refusals once on the controller in verify
Build / build (pull_request) Successful in 1m10s
Lint / lint (pull_request) Successful in 2m54s
Molecule / molecule (pull_request) Successful in 18m44s
converge.yml is replayed by check, converge, check and idempotence on
both platforms, so the validation-only plays in it ran eight times per
scenario. They need no container: move them to the top of verify.yml,
on localhost in check mode, so they run once and a regressed refusal
cannot change the controller.

Applies to the default scenarios of system_baseline, docker, sshd and
systemd_hardening. The systemd_hardening refusal of a drop-in entry
that is not a mapping comes after the disable and mask tasks, so it
moves to verify.yml but stays on the container. The README Tests
sections say where each check now runs.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 15:05:34 +00:00
Defame1297 6eca2f4031 ci(molecule): select by image pin for a molecule.yml change of only pins or comments
Build / build (pull_request) Successful in 29s
Lint / lint (pull_request) Successful in 1m59s
Molecule / molecule (pull_request) Successful in 1m37s
A change to .gitea/workflows/molecule.yml selected every scenario, so a
molecule image pin bump or a comment edit ran the full set. The selector
now compares the merge-base and HEAD copies of the workflow:

- `#` and blank lines outside a block scalar are dropped; inside one
  (a `run: |` script, where they may be heredoc content) they count;
- the line after each CI_IMAGE, MOLECULE_IMAGE and MOLECULE_IMAGE_2604
  `>-` key must be its value, deeper than the key and in the shape
  Renovate writes, in both copies;
- comments only select nothing; a MOLECULE_IMAGE* pin selects every
  scenario with a file naming it, or every scenario when a shared
  molecule file names it or a file is unreadable or a symlink;
- CI_IMAGE, any other difference or a git error selects everything.

reason_for() is split out of select() to stay under ruff's complexity
limit. The Molecule rule in .gitea/workflows/AGENTS.md describes the
new case.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 14:36:24 +00:00
Defame1297 16b1aa4136 ci(renovate): group updates and open them on Mondays
Build / build (pull_request) Successful in 23s
Molecule / molecule (pull_request) Successful in 1m13s
Lint / lint (pull_request) Successful in 2m11s
Updates, lock file maintenance included, open on Mondays (UTC) so any
Monday run can act, with no hourly pull request limit; the weekly window
and the groups bound the volume. Groups: own CI images (ci and both
molecule pins, exempt from the schedule), ubuntu base images (Dockerfile
FROM and image.yml job_image digests in one branch, so manual), lint
tooling and pre-commit hooks. osvVulnerabilityAlerts brings fixes from
osv.dev; they skip the schedule and the release-age wait, so
vulnerabilityAlerts.automerge false keeps a person on each one.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 14:25:23 +00:00
Defame1297 1048628cc4 feat(cloudflared): add cloudflared_tunnel_lookup_delay input
Build / build (pull_request) Successful in 41s
Lint / lint (pull_request) Successful in 3m27s
Molecule / molecule (pull_request) Successful in 4m11s
The tunnel lookup retries a 404 three times, 5 seconds apart, before it
trusts it. The new input sets that delay (default 5, as before), and
validate.yml refuses a negative value. The Molecule failure cases pass 0:
the stub API answers at once, and the three retries still run.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 14:14:56 +00:00
Defame1297 0eade70b56 test(tailscale): let apt reuse downloaded packages in the default scenario
Build / build (pull_request) Successful in 23s
Lint / lint (pull_request) Successful in 2m17s
Molecule / molecule (pull_request) Successful in 6m14s
The Ubuntu base image's /etc/apt/apt.conf.d/docker-clean deletes every
downloaded .deb after an install, so verify's downgrade, update and
reinstalls fetched tailscale from pkgs.tailscale.com again each time. A
prepare playbook removes it; the install from the real repository stays,
and apt still checks a cached .deb against the repository's hashes.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 14:10:53 +00:00
Defame1297 e4eb3bc656 Merge branch 'main' into docs/branch-update-rule
Build / build (pull_request) Successful in 34s
Molecule / molecule (pull_request) Successful in 7s
Lint / lint (pull_request) Successful in 1m29s
2026-11-27 14:09:00 +00:00
Defame1297 15c3731e7f Merge pull request 'chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.47' (#416) from renovate/git.rkdr.net-mortis-ci-0.x into main
Reviewed-on: #416
Reviewed-by: Defame1297 <[email protected]>
2026-11-27 14:02:47 +00:00
Defame1297 04259751ad docs(adr): point ADR 0002 to ADR 0003 and sharpen 0003
Build / build (pull_request) Successful in 51s
Lint / lint (pull_request) Canceled after 50s
Molecule / molecule (pull_request) Canceled after 8s
ADR 0002's image bullet now names ADR 0003 as the decision that adds
Molecule's controller image; its decision is unchanged. ADR 0003 states
the Lint-only share of ci pin pull requests as a count and lists the
push paths of image.yml among the files the implementation updates.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 13:50:55 +00:00
Defame1297 699179674f docs: bring a renovate/ branch up to date through its rebase checkbox
Build / build (pull_request) Successful in 1m19s
Lint / lint (pull_request) Successful in 3m38s
Molecule / molecule (pull_request) Successful in 2m37s
A Renovate pull request is not always rebased just for falling
behind main, so forbidding every update would leave it stuck. Never
use the update button on it; tick the rebase/retry checkbox instead,
and say why a hand-made update commit is excluded.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 13:45:55 +00:00
Defame1297 bf604a1af2 docs(adr): run Molecule in its own controller image
Record ADR 0003: Molecule runs in a molecule-controller image that bakes
only Molecule's tools, from a requirements file and hash-pinned lock of
its own, so a ci pin pull request no longer moves molecule.yml and runs
no scenario. The ADR lists the files the implementation updates and the
alternatives not taken.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 13:38:09 +00:00
Defame1297 3d2fab5388 docs: update a branch from main only when it is next to merge
main blocks an outdated branch, so every update re-runs Lint, Build
and Molecule and cancels the run in progress. Limit updates to the
pull request that is next to merge, schedule its merge afterwards,
and leave renovate/ branches to Renovate's own rebase.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 13:37:49 +00:00
renovate-bot 042051b3e5 chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.48
renovate/stability-days Updates have met minimum release age requirement
Gitea release key / check (pull_request) Successful in 24s
Build / build (pull_request) Successful in 1m28s
Lint / lint (pull_request) Successful in 2m13s
Molecule / molecule (pull_request) Successful in 57m8s
2026-11-27 13:02:52 +00:00
Defame1297 6e3ea4521b Merge pull request 'chore(deps): update dependency community.docker to v5.4.1' (#414) from renovate/community.docker-5.x into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 19s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 44s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 5m52s
Reviewed-on: #414
2026-11-27 12:54:31 +00:00
renovate-bot 7433a37697 chore(deps): update dependency community.docker to v5.4.1
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 25s
Lint / lint (pull_request) Successful in 2m26s
Molecule / molecule (pull_request) Successful in 1h15m2s
2026-11-27 11:39:00 +00:00
Defame1297 0b8c45a19c Merge pull request 'chore(deps): update ubuntu:24.04 docker digest to 562111b' (#412) from renovate/job-container-ubuntu-24.04 into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 15s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 1m7s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 12s
Reviewed-on: #412
Reviewed-by: Defame1297 <[email protected]>
2026-11-27 11:29:50 +00:00
renovate-bot 2d4d44b871 chore(deps): update ubuntu:24.04 docker digest to 562111b
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 22s
Molecule / molecule (pull_request) Successful in 56s
Lint / lint (pull_request) Successful in 2m3s
2026-11-27 11:27:28 +00:00
Dragonish d862097b9c Merge pull request 'fix: read facts through ansible_facts and run Molecule with fact injection off' (#405) from fix/364-ansible-facts into main
Reviewed-on: #405
2026-11-27 11:23:39 +00:00
Defame1297 6670ab664f Merge branch 'main' into fix/364-ansible-facts
Build / build (pull_request) Successful in 26s
Lint / lint (pull_request) Successful in 2m5s
Molecule / molecule (pull_request) Successful in 1h25m40s
2026-11-27 09:56:11 +00:00
Defame1297 1372c257c2 Merge pull request 'Fix/mole timeout' (#417) from fix/mole-timeout into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:9c7f200c07e3d4a03e7249d2c16bf66a51120fb876aa2242cf31451412543289, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 1m21s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 17s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 18s
Reviewed-on: #417
2026-11-27 09:54:22 +00:00
Dragonish 18475ea0a5 fix(ci): give the molecule job a 90 minute timeout
Lint / lint (pull_request) Failing after 5m36s
Build / build (pull_request) Successful in 26s
Molecule / molecule (pull_request) Successful in 49m28s
Removing timeout-minutes left the sweep step's 45 minute bound without
the job timeout it must equal, and the script test that holds the two
equal failed with a KeyError. Restore the key at 90 minutes, which also
leaves a full run under load (PR #405 took 44m53s) real margin, and move
the sweep bound to match so a live run's containers are never removed.

Assisted-by: Claude Code
2026-11-27 08:47:25 +00:00
Defame1297 e2df672be7 remove molecule.yml timeout
Build / build (pull_request) Successful in 1m13s
Lint / lint (pull_request) Failing after 6m27s
Molecule / molecule (pull_request) Canceled after 26m38s
2026-11-27 08:15:45 +00:00
Defame1297 2e92b11cbc remove image.yml timeout 2026-11-27 08:15:18 +00:00
Defame1297 7311a27e43 Merge pull request 'chore(deps): update ubuntu:24.04 docker digest to 562111b' (#411) from renovate/ubuntu-24.04 into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:9c7f200c07e3d4a03e7249d2c16bf66a51120fb876aa2242cf31451412543289, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 40s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 14s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 15s
Reviewed-on: #411
2026-11-27 08:08:29 +00:00
renovate-bot 19449f7e93 chore(deps): update ubuntu:24.04 docker digest to 562111b
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 23s
Molecule / molecule (pull_request) Successful in 55s
Lint / lint (pull_request) Successful in 2m5s
2026-11-27 07:50:27 +00:00