Commit Graph
890 Commits
Author SHA1 Message Date
Defame1297 3124af964c chore(release): 3.3.0
Build / build (pull_request) Successful in 52s
Molecule / molecule (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 2m56s
Minor release: adds the nfs_client and pve_vm roles, a pinned checksum
for the Docker APT key, an hourly staleness window for the traefik APT
refresh, and fixes ufw and fail2ban failing under --check on a host
where they were not installed yet.

Assisted-by: Claude Code:claude-opus-5-5
2026-12-01 21:33:42 +00:00
Defame1297 ceaa43c7ab Merge pull request 'feat(pve_vm): add the pve_vm role' (#489) from feat/482-pve-vm-role into main
Reviewed-on: #489
2026-12-01 20:56:44 +00:00
Defame1297 773de8eba4 Merge branch 'main' into feat/482-pve-vm-role
Build / build (pull_request) Successful in 56s
Lint / lint (pull_request) Successful in 4m48s
Molecule / molecule (pull_request) Successful in 37m37s
2026-12-01 20:13:01 +00:00
Defame1297 a011f07d27 Merge pull request 'chore(deps): update own ci images' (#486) from renovate/own-ci-images into main
Reviewed-on: #486
2026-11-29 20:11:29 +00:00
Defame1297 f3cab37c7b feat(pve_vm): add the pve_vm role
Build / build (pull_request) Successful in 46s
Lint / lint (pull_request) Successful in 2m57s
Molecule / molecule (pull_request) Successful in 30m40s
Manage a Proxmox VE QEMU VM through the Proxmox API: clone from a
template, cloud-init user, SSH keys and network, update only on detected
drift, grow the boot disk, apply the power state, wait for SSH and
cloud-init, and delete behind pve_vm_allow_destroy. The role never sets
a cloud-init password and deletes a stored one with no_log.

Inputs are validated first under the always tag: the API credentials,
and pve_vm_disk_size while the disk is managed; the clone asserts
pve_vm_clone_vmid. Only pve_vm_exists is public, every other fact and
register is __pve_vm_.

The molecule scenario runs offline on noble and resolute: validation
with positive and refusal cases, drift detection over seeded VM configs,
and static checks over the role's task files that no proxmox_kvm task
or module_defaults entry carries cipassword and that the one task
deleting a stored cipassword is no_log. The API lifecycle and the
cloud-init wait are not exercised.

README Roadmap: the pve_vm wave 2 line and the opnsense and
proxmox_firewall line are removed; wave 3 stays.

Closes #482

Assisted-by: Claude Code:claude-opus-5-5
2026-11-29 20:10:33 +00:00
renovate-bot a60fb6407e chore(deps): update own ci images
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 30s
Lint / lint (pull_request) Successful in 3m7s
Molecule / molecule (pull_request) Successful in 54m56s
2026-11-29 19:15:35 +00:00
Defame1297 6e89e4d857 Merge pull request 'ci(images): stop baking ufw and fail2ban into the molecule images' (#485) from images/435-stop-baking-ufw-fail2ban into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 48s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 59s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Successful in 22s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 19s
Reviewed-on: #485
2026-11-29 19:11:40 +00:00
Defame1297 f1598486f0 test(molecule): stop saying the image ships ufw and fail2ban
Build / build (pull_request) Successful in 34s
Lint / lint (pull_request) Successful in 3m38s
Molecule / molecule (pull_request) Successful in 14m55s
Assisted-by: Claude Code
2026-11-29 18:53:24 +00:00
Defame1297 c64b4b932b ci(images): stop baking ufw and fail2ban into the molecule images
ADR 0002 keeps a package a role installs out of the molecule images, so its scenario exercises
the install. The ufw and fail2ban roles install their packages, so both images drop them; iptables,
openssh-server, python3-systemd and gnupg stay as fixtures. The labels, header comments, image
docs and image-smoke package lists no longer claim the packages are baked or that a converge
makes no network calls.

Refs: #435
Assisted-by: Claude Code
2026-11-29 18:53:24 +00:00
Defame1297 6e9709f0da test(molecule): refresh the APT cache where a scenario installs ufw or fail2ban
The molecule images keep no APT lists, and the ufw and fail2ban scenarios, and the gitea
scenario's remove path, relied on those packages being baked in. Their prepare now refreshes the
cache, so they keep working once the images stop shipping the packages.

Refs: #435
Assisted-by: Claude Code
2026-11-29 18:53:24 +00:00
Defame1297 ac9a11413d Merge pull request 'ci(images): build and publish the molecule-controller image' (#484) from ci/477-molecule-controller-image into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 18s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 21s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Successful in 1m36s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 16s
Reviewed-on: #484
Reviewed-by: Defame1297 <[email protected]>
2026-11-29 18:52:27 +00:00
Defame1297 1289da3104 Merge branch 'main' into ci/477-molecule-controller-image
Build / build (pull_request) Successful in 29s
Lint / lint (pull_request) Successful in 3m21s
Molecule / molecule (pull_request) Successful in 32m9s
2026-11-29 18:19:41 +00:00
Defame1297 7f28fccfe4 Merge pull request 'fix(ufw, fail2ban): pass --check on a host without the package' (#481) from fix/478-ufw-fail2ban-check-mode into main
Reviewed-on: #481
Reviewed-by: Defame1297 <[email protected]>
2026-11-29 18:08:26 +00:00
Defame1297 c402720376 Merge branch 'main' into fix/478-ufw-fail2ban-check-mode
Build / build (pull_request) Successful in 40s
Lint / lint (pull_request) Successful in 3m45s
Molecule / molecule (pull_request) Successful in 13m26s
2026-11-29 17:54:14 +00:00
Defame1297 468d167d3a Merge pull request 'docs(adr): say how a later ADR that changes part of an earlier one is recorded' (#480) from docs/453-adr-partial-change into main
Reviewed-on: #480
Reviewed-by: Defame1297 <[email protected]>
2026-11-29 17:53:47 +00:00
Defame1297 a1d42eadce Merge branch 'main' into docs/453-adr-partial-change
Build / build (pull_request) Successful in 58s
Molecule / molecule (pull_request) Successful in 16s
Lint / lint (pull_request) Successful in 1m50s
2026-11-29 17:50:49 +00:00
Defame1297 14c7dde464 Merge pull request 'ci(molecule): fail the run when a scenario has molecule's prerun on' (#479) from ci/452-prerun-check into main
Reviewed-on: #479
2026-11-29 17:49:40 +00:00
Defame1297 56c5c6dd72 ci(images): fail the controller self-check on an empty locked version
Build / build (pull_request) Successful in 33s
Lint / lint (pull_request) Successful in 3m25s
Molecule / molecule (pull_request) Canceled after 7m3s
The self-check reads the ansible-core and molecule versions from the
lock with sed; an empty result made the grep match any version. It now
fails the build instead.

Refs #477

Assisted-by: Claude Code
2026-11-29 17:34:17 +00:00
Defame1297 c3a7cef195 fix(scripts): give a repository not pushed yet no tags
The registry answers tags/list for a repository that does not exist yet
with 404 NAME_UNKNOWN (OCI distribution spec), which failed the Images
version step for the first build of a new image such as
molecule-controller. A 404 on the first tags/list page now reads as no
tags, so the image gets <base>.0; a 404 on a manifest stays an error.

Refs #477

Assisted-by: Claude Code
2026-11-29 17:34:01 +00:00
Defame1297 a9a973a523 fix(ufw, fail2ban): keep the check-mode guard out of vars and test service_rules
Build / build (pull_request) Successful in 38s
Lint / lint (pull_request) Successful in 4m29s
Molecule / molecule (pull_request) Canceled after 1m14s
vars/ holds constants only, so ufw's __ufw_can_configure is now a
set_fact after the install probe; the guards default it to true when the
install tasks were skipped by tags.

service_rules already skips its reconcile when `ufw status` fails under
check mode; the ufw check-absent scenario now calls it so CI holds that.
The fail2ban service jail task's tags sit with the task again, above the
comment of the configuration test.

Refs #478

Assisted-by: Claude Code
2026-11-29 17:10:25 +00:00
Defame1297 0fb4fd70ee ci(renovate): bump the molecule-controller pins like the ci ones
Renovate's pip-compile manager now reads requirements-molecule.lock, and
its uv manager reads the controller Dockerfile's uv pin. The bot-PR
guard holds the controller requirements and lock to the same rules as
requirements-dev.txt and its lock, so the bot's pull requests for them
are neither refused nor freer than the ci ones. The ansible tooling
group spans both locks, so one pull request moves both ansible-core
pins, which check_image_versions.py holds equal.

Checked with renovate 44.161.0 --platform=local: it extracts
requirements-molecule.txt with requirements-molecule.lock, and the uv
pin of images/molecule-controller/Dockerfile.

Refs #477

Assisted-by: Claude Code
2026-11-29 17:09:29 +00:00
Defame1297 fd448d7e9e ci(images): add the molecule-controller image
ADR 0003 moves Molecule out of the ci image, so a ci bump for a tool
only Lint uses stops selecting every scenario. This builds and publishes
the image; nothing pins it yet (#431).

It bakes requirements-molecule.lock (ansible-core, molecule,
molecule-plugins[docker]) on the Python of .python-version and the
collections of both requirements.yml files, and records their checksums
in /opt/molecule-pins.sha256. Its last RUN checks the tool versions
against the lock, the Docker driver, every pinned collection and the
pin record, so a broken image fails its build. It has no image-smoke
scenario: it is the controller of every scenario, and the full run of
its pin pull request proves it; images/AGENTS.md records the exception.

check_image_versions.py pins now checks the Python header of both locks
and fails when their ansible-core pins differ, so Lint and Molecule
judge the code with one ansible-core. The new requirements files stay
off the selector's IGNORED list, so a bump there runs every scenario.

Refs #477

Assisted-by: Claude Code
2026-11-29 17:03:35 +00:00
Defame1297 26c6026d1a ci(scripts): lock either root requirements file
The molecule-controller image gets a requirements file and lock of its
own (ADR 0003), so the lock script takes the file to lock:
requirements-dev.txt by default, as before, or requirements-molecule.txt.
Any other argument is a usage error, so a typo cannot write a lock
somewhere else.

The new test runs the script against a stub interpreter, so it needs
no network.

Refs #477

Assisted-by: Claude Code
2026-11-29 17:03:05 +00:00
Defame1297 2d338d4764 docs(adr): say where the pointer to a later ADR goes
Build / build (pull_request) Successful in 1m6s
Lint / lint (pull_request) Successful in 4m37s
Molecule / molecule (pull_request) Successful in 17s
Assisted-by: Claude Code
2026-11-29 17:00:45 +00:00
Defame1297 f31279f9f3 docs(adr): say how a later ADR that changes part of an earlier one is recorded
Neither `accepted` nor `superseded by NNNN` fits a partial change, so the
earlier ADR stays accepted with one sentence sending its reader on to the
later ADR. ADR 0002's sentence now names the part ADR 0003 changes.

Refs: #453
Assisted-by: Claude Code
2026-11-29 16:59:44 +00:00
Defame1297 49afd900dc ci(molecule): fail the run when a scenario has molecule's prerun on
Build / build (pull_request) Successful in 37s
Lint / lint (pull_request) Successful in 5m15s
Molecule / molecule (pull_request) Successful in 36m0s
check_scenarios_load_checkout.py now merges the base config the way
molecule's CLI does (its own lookup of .config/molecule/config.yml) and
fails a scenario whose merged prerun is not false, naming the base
config. Before, it built Config with no base config, so a scenario that
turned prerun back on, or a moved base config, slowed every run and
nothing failed.

Closes #452

Assisted-by: Claude Code
2026-11-29 16:56:29 +00:00
Defame1297 924a0ea7a7 fix(ufw, fail2ban): pass --check on a host without the package
Under --check the package task only reports a change, so on a fresh host
the tasks after it ran against a missing binary, /etc directory or unit
and failed. They now skip when the install would change in check mode.

fail2ban registers __fail2ban_install and guards its template, service,
config test, jail tasks and handler with the standard
`not ansible_check_mode or ... is not changed` guard. ufw registers
__ufw_install plus a command probe (ansible_check_mode is not set for a
play-level check_mode inside include_role), combined once in vars/main.yml
as __ufw_can_configure. flush_handlers is left unguarded: the handler it
runs is guarded itself.

A check-absent scenario per role purges the package, refreshes the APT
cache and runs only `check`, so each fix is tested; one scenario covering
both would make the ufw role a user of fail2ban and select the ufw and
traefik scenarios on every fail2ban change.

Fixes #478

Assisted-by: Claude Code
2026-11-29 16:39:45 +00:00
Defame1297 0173f6f226 Merge pull request 'chore(apm): update Holocron plugins to 219a084' (#476) from chore/apm-update into main
Reviewed-on: #476
2026-11-29 13:30:41 +00:00
Defame1297 dfc25640b6 chore(apm): update Holocron plugins to 219a084
Molecule / molecule (pull_request) Successful in 15s
Build / build (pull_request) Successful in 39s
Lint / lint (pull_request) Successful in 1m50s
Refresh git, mattpocock and plan to the current Holocron head. The plan
plugin moves from 0.1.0 to 0.4.0 and now deploys the plan-* agents, the
plan and ship commands, and the plan-track and research-docs skills.

Assisted-by: Claude Code
2026-11-29 13:17:45 +00:00
Defame1297 11b75d9014 Merge pull request 'ci(molecule): stop a scenario that runs past its own time limit' (#475) from ci/474-scenario-timeout into main
Reviewed-on: #475
2026-11-29 12:57:50 +00:00
Defame1297 258cbaf516 ci(molecule): say what a scenario time limit leaves running
Build / build (pull_request) Successful in 31s
Lint / lint (pull_request) Successful in 3m27s
Molecule / molecule (pull_request) Successful in 31m13s
A reader of the time limit needs to know its limits: on expiry only
molecule is signalled, so its ansible-playbook and workers run until the
run container ends, and the run-label cleanup step removes anything they
recreate. The default's reasoning holds at the default 2 lanes, and the
variable is for local runs and tests only.

The timeout test now runs on one lane, so beta running proves the stalled
lane was freed. The workflows rule gives the limit its reason and names
the two tests that hold it.

Refs #474

Assisted-by: Claude Code
2026-11-29 11:56:57 +00:00
Defame1297 41820fd9a7 ci(molecule): stop a scenario that runs past its own time limit
A hung scenario held its lane until the job's 90-minute timeout, and the
cancel then lost every scenario's log, since the groups print only after
the final wait. Each molecule test now runs under coreutils timeout with
MOLECULE_SCENARIO_TIMEOUT seconds (default 1800), so the hang fails by
itself, its log says it timed out, and the other lanes finish.

timeout runs with --foreground so it and molecule stay in the script's
process group: without it timeout leads a group of its own, which a
cancel that kills the step's group no longer reaches (the killed-group
test fails). On expiry molecule alone is signalled; anything it leaves
ends with the run container (docker run --init).

Closes #474

Assisted-by: Claude Code
2026-11-29 11:42:09 +00:00
Defame1297 e8f739904a Merge pull request 'ci(molecule): run two scenarios at a time by default' (#471) from ci/432-two-lanes into main
Reviewed-on: #471
2026-11-29 11:19:49 +00:00
Defame1297 040dd9fbf2 Merge branch 'main' into ci/432-two-lanes
Build / build (pull_request) Successful in 35s
Lint / lint (pull_request) Successful in 3m21s
Molecule / molecule (pull_request) Successful in 30m31s
2026-11-29 10:48:29 +00:00
Defame1297 edf31df045 Merge pull request 'refactor(system_baseline): give the role's internal registers the __ prefix' (#472) from fix/system-baseline-internal-register into main
Reviewed-on: #472
2026-11-29 09:46:02 +00:00
Defame1297 6070179126 Merge branch 'main' into fix/system-baseline-internal-register
Build / build (pull_request) Successful in 32s
Lint / lint (pull_request) Successful in 2m45s
Molecule / molecule (pull_request) Successful in 5m3s
2026-11-29 09:40:19 +00:00
Defame1297 2b221b69a5 Merge branch 'main' into ci/432-two-lanes
Build / build (pull_request) Successful in 28s
Lint / lint (pull_request) Successful in 2m44s
Molecule / molecule (pull_request) Successful in 29m36s
2026-11-29 08:07:17 +00:00
Defame1297 ec972b90a4 Merge pull request 'feat(traefik): skip a fresh apt refresh and trim the scenario's repeated work' (#470) from perf/458-traefik-scenario into main
Reviewed-on: #470
2026-11-29 08:06:45 +00:00
Defame1297 922a79a871 Merge branch 'main' into perf/458-traefik-scenario
Build / build (pull_request) Successful in 30s
Lint / lint (pull_request) Successful in 2m43s
Molecule / molecule (pull_request) Successful in 3m55s
2026-11-29 08:02:20 +00:00
Defame1297 ac8967f6a5 Merge pull request 'test(ufw): cover the service_rules cases with fewer owners' (#469) from test/457-ufw-fewer-owners into main
Reviewed-on: #469
2026-11-29 08:01:09 +00:00
Defame1297 8548ab8c9d Merge branch 'main' into test/457-ufw-fewer-owners
Build / build (pull_request) Successful in 27s
Lint / lint (pull_request) Successful in 3m58s
Molecule / molecule (pull_request) Successful in 12m25s
2026-11-29 07:48:10 +00:00
Defame1297 06853aa6f6 Merge pull request 'test(system_baseline): run the vzdump guard cases against the guard alone' (#468) from test/456-system-baseline-vzdump-guard into main
Reviewed-on: #468
2026-11-29 07:46:55 +00:00
Defame1297 035669c26f Merge branch 'main' into test/456-system-baseline-vzdump-guard
Build / build (pull_request) Successful in 31s
Lint / lint (pull_request) Successful in 2m37s
Molecule / molecule (pull_request) Successful in 5m2s
2026-11-29 07:41:17 +00:00
Defame1297 ca62d4aaa8 Merge pull request 'test(docker): merge the verify role runs and assert a unit change keeps dockerd running' (#467) from test/460-docker-verify-runs into main
Reviewed-on: #467
2026-11-28 23:36:56 +00:00
Defame1297 2b2e2c4021 ci(molecule): wrap the duration list comment
Build / build (pull_request) Successful in 1m3s
Lint / lint (pull_request) Successful in 2m57s
Molecule / molecule (pull_request) Successful in 41m21s
Part of #432

Assisted-by: Claude Code
2026-11-28 23:29:10 +00:00
Defame1297 876ff2ada5 Merge branch 'main' into test/460-docker-verify-runs
Build / build (pull_request) Successful in 42s
Lint / lint (pull_request) Successful in 4m41s
Molecule / molecule (pull_request) Successful in 8m7s
2026-11-28 23:28:03 +00:00
Defame1297 dbcbf3b02d ci(molecule): give the measured lane times as the reason for the default
Part of #432

Assisted-by: Claude Code
2026-11-28 23:26:10 +00:00
Defame1297 53f5df4378 Merge pull request 'test(gitea_runner): fold the disk-pressure run into the failed-download case' (#466) from test/459-gitea-runner-pressure into main
Reviewed-on: #466
2026-11-28 23:25:03 +00:00
Defame1297 40d5c49e33 ci(molecule): run two scenarios at a time by default
A full run on main took 34 minutes with 2 lanes and 35 with 4: with 4 every scenario ran
about twice as slowly, so the runner is full at two, and two leave it room for pull request
jobs. The duration list now holds the 2-lane run's times and adds nfs_client.

Closes #432

Assisted-by: Claude Code
2026-11-28 23:23:45 +00:00
Defame1297 4201300291 refactor(system_baseline): give the role's internal registers the __ prefix
Build / build (pull_request) Successful in 1m0s
Lint / lint (pull_request) Successful in 4m15s
Molecule / molecule (pull_request) Successful in 13m48s
The unattended-upgrades check and the reboot-required stat registered results under
names that read as role inputs. Internal register and set_fact results are
__system_baseline_; the documented system_baseline_reboot_required output keeps its name.

Assisted-by: Claude Code
2026-11-28 23:21:56 +00:00