Author SHA1 Message Date
Defame1297 7511d40ff8 fix(openbao): follow TLS symlinks and keep :: on one listener
Molecule / Result (pull_request) Waiting for needed jobs
Molecule / select (pull_request) Successful in 3s
Molecule / scenarios (pull_request) In progress
Build / build (pull_request) Successful in 21s
Lint / renovate-config (pull_request) Successful in 4s
Lint / lint (pull_request) Successful in 5m20s
Go opens a :: listener dual-stack, so it already serves 127.0.0.1 and a
second loopback listener failed to bind with "address already in use".
:: again gets no loopback listener.

The TLS file checks did not follow symlinks, so a certbot-style live/
path was refused as not a regular file; the stat now follows them, and
the scenario reaches its certificate and key through symlinks.

Also:
- an owner or group with no name gives the readability message, not a
  templating error
- openbao_port and openbao_cluster_port must be 1024 or higher: the
  unit grants no capability to bind a lower port
- SystemCallErrorNumber=EPERM, so a filtered syscall fails instead of
  killing the server with SIGSYS
- a warning when the installed binary differs from openbao_version,
  since main does not change an installed binary
- the TLS file inputs are type path in the argument spec

Refs: #536
Assisted-by: Claude Code
2026-12-06 22:51:40 +00:00
Defame1297 c450cb7c37 fix(openbao): refuse an unreadable key before any change
The readability check of the TLS certificate and key ran after the role
had created the user and directories and installed the binary, so a
fresh host with a key the service user cannot read was changed and then
failed. It now runs in validation, from the files' owner, group and
mode against openbao_user and openbao_group, before anything changes;
prepare proves it on the fresh host.

Also from review:
- a seal status read that fails names the 127.0.0.1 IP SAN and
  openbao_tls_ca_file instead of a raw SSL error
- :: gets the loopback listener too: it reaches 127.0.0.1 only while
  net.ipv6.bindv6only is 0
- the listen address check rejects strings such as ... or :::
- the TLS-disabled warning is registered, and verify asserts it
- a missing binary under --skip-tags install fails with a clear message
- the README names openbao_user and openbao_group and says the always
  tagged prereqs run under --tags health too

Refs: #536
Assisted-by: Claude Code
2026-12-06 22:22:50 +00:00
Defame1297 421e30c5da test(openbao): add the default molecule scenario
Runs the role against a real OpenBao 2.7.3 on the noble and resolute
containers, with check before and after converge and idempotence.

Prepare builds a throwaway CA and a server certificate covering
127.0.0.1 with the openssl CLI, so no crypto collection is needed, and
adds a drop-in that resets the namespace sandboxing and the service user,
which the unprivileged container cannot provide.

Verify asserts the effect on the host: the service is active with the
unit's type, stop signal, MemorySwapMax and reload; the service user and
the private data directory; the installed version; seal status over TLS
on loopback reporting uninitialised and sealed; a reload that keeps the
same process. Every input check has a negative case matched on its
message, and the run ends with the switch to plain HTTP and back.

Refs: #536
Assisted-by: Claude Code
2026-12-06 21:38:40 +00:00
Defame1297 eda69bcbf5 feat(openbao): add the role's main entry point
A consumer gets a running single-node OpenBao server on integrated raft
storage, listening on TLS they supply, left uninitialised and sealed.

The role installs the pinned 2.7.3 release tarball, checked by get_url
against the sha256 of each architecture from the release's checksums.txt
(its GPG signature checks out against OpenBao's release key). It creates
its own system user, data directory, configuration and sandboxed unit:
Type=notify, SIGINT stop, MemorySwapMax=0 instead of mlock, an empty
capability set, ProtectSystem=strict with the data directory writable,
and ExecReload sending SIGHUP. The directive set was tried against the
real binary under systemd before it was kept.

TLS certificate, key and CA paths are required unless openbao_tls_disable
is true, which warns; validation fails before any change when a file is
missing, and the role checks the service user can read the key and
certificate before writing the config. It reads its seal status over
https://127.0.0.1 validated against the CA file, so an address other
than a wildcard or loopback gets a second loopback listener.

The tasks are split by job (validate, prereqs, install, configure,
seal_status) so the init, unseal, audit and update work can reuse them.

Refs: #536
Assisted-by: Claude Code
2026-12-06 21:19:15 +00:00
Defame1297 ddfb1c6d0a Merge pull request 'docs(roles): allow a no_log output fact from an opt-in entry point; list openbao on the Roadmap' (#533) from docs/openbao-role-decisions into main
Renovate / renovate (push) Successful in 33s
Reviewed-on: #533
2026-12-06 20:41:43 +00:00
Defame1297 b2d29df657 docs(security): accept unseal keys in vaulted inventory for openbao
Molecule / select (pull_request) Successful in 4s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 1s
Build / build (pull_request) Successful in 23s
Lint / renovate-config (pull_request) Successful in 5s
Lint / lint (pull_request) Successful in 2m0s
Assisted-by: Claude Code
2026-12-06 20:38:48 +00:00
Defame1297 2f2d980ef7 Merge branch 'main' into docs/openbao-role-decisions
Molecule / select (pull_request) Successful in 4s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 1s
Build / build (pull_request) Successful in 34s
Lint / renovate-config (pull_request) Successful in 7s
Lint / lint (pull_request) Successful in 2m42s
2026-12-06 20:30:37 +00:00
Defame1297 3b91a40db1 Merge pull request 'ci: shift checks left (check-json, script tests, image pins) and name the meta-dependency check' (#527) from ci/187-246-shift-left-checks into main
Renovate / renovate (push) Successful in 44s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 23s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, molecule-controller, ) (push) Successful in 19s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, ci, ) (push) Successful in 7m7s
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:168a88cc61bdd95c8f871e3903d4e0a525e340c2b28a70dadd6d1503ecc7c391, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 22s
Reviewed-on: #527
2026-12-06 20:24:40 +00:00
Defame1297 fbdee5f778 docs(roles): count a no_log output fact from an opt-in entry point as handed to the consumer's store
Molecule / select (pull_request) Canceled after 0s
Molecule / scenarios (pull_request) Canceled after 0s
Molecule / Result (pull_request) Canceled after 0s
Build / build (pull_request) Successful in 45s
Lint / lint (pull_request) Successful in 3m12s
Lint / renovate-config (pull_request) Canceled after 7s
Also list openbao on the Roadmap, ahead of the role that removes it.

Assisted-by: Claude Code
2026-12-06 20:16:59 +00:00
Defame1297 26d7b4914c docs(agents): say that a push also runs the script tests
Molecule / select (pull_request) Successful in 8s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 1s
Build / build (pull_request) Successful in 30s
Lint / renovate-config (pull_request) Successful in 9s
Lint / lint (pull_request) Successful in 2m20s
Refs: #187

Assisted-by: Claude Code
2026-12-06 19:51:21 +00:00
Defame1297 6432eb52b0 docs(roles): name the test that fails a meta dependency
test_roles_call_each_other_by_full_name_only in
tests/scripts/test_select_molecule_scenarios.py already fails when a role's
meta/main.yml declares dependencies, and Lint runs it through the
script-tests hook. That test is the Lint check the rule waited for, so the
rule now names it as its control, and the workflow rules and the selector's
docstring no longer describe a meta dependency as allowed.

Refs: #246

Assisted-by: Claude Code
2026-12-06 19:15:36 +00:00
Defame1297 fac7ed47be ci(pre-commit): run check-json, the script tests and the image pins as hooks
A contributor learns about a broken renovate.json, a failing script test or
a bad image pin from Lint today; as hooks they fail before the push.

- check-json from pre-commit-hooks covers renovate.json.
- script-tests runs the suite at pre-push, since it takes minutes. Its
  GIT_DIR points at an uncreatable path, so a fixture that keeps the
  caller's git environment fails instead of writing to this repository.
  Lint runs it by id; the suite now runs under the network guard.
- check-image-pins runs check_image_versions.py pins on every commit: its
  inputs span workflows, Dockerfiles and docs/images, and it fails when one
  is missing. Lint's pre-commit run replaces its separate step.

Adding hooks changes .pre-commit-config.yaml, an input of the ci image, so
this pull request takes Lint's slow path and the next Images run publishes
a new ci version.

Refs: #187

Assisted-by: Claude Code
2026-12-06 19:11:42 +00:00
Defame1297 b2e547edd5 test(scripts): reach the fake registry past Lint's dead proxy
Lint's fast path exports a dead proxy with an empty no_proxy, and
next_image_version.py uses urllib's default opener, which honours them, so
the RegistryClient tests could not reach their fake registry on 127.0.0.1.
Setting no_proxy for loopback in the tests lets the suite run under the
guard instead of the workflow unsetting it.

Refs: #187

Assisted-by: Claude Code
2026-12-06 19:11:16 +00:00
Defame1297 6c80ab7772 test(scripts): keep git fixtures off the caller's GIT_* variables
A git hook exports GIT_DIR (and often GIT_INDEX_FILE). A fixture that passes
the caller's environment to git would run its init, add and commit against
this repository instead of its temporary one once the suite runs as a hook.

tests/scripts/git_env.py gives each fixture a copy of the environment
without any GIT_* key and with no user or system config. The bot pull
request gate's repository tests also isolate os.environ, because the gate
runs git in-process.

Refs: #187

Assisted-by: Claude Code
2026-12-06 19:10:56 +00:00
Defame1297 d6037df6e4 Merge pull request 'ci(renovate): validate the config in Lint, bump Renovate's own image weekly, run on push to main' (#525) from ci/188-172-renovate-self-bump into main
Renovate / renovate (push) Successful in 29s
Reviewed-on: #525
Reviewed-by: Defame1297 <[email protected]>
2026-12-06 17:56:36 +00:00
Defame1297 2c9221ef45 ci(lint): give renovate-config room for a cold image pull
Molecule / select (pull_request) Successful in 6s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 1s
Build / build (pull_request) Successful in 36s
Lint / lint (pull_request) Successful in 3m7s
Lint / renovate-config (pull_request) Successful in 2m42s
Raise the renovate-config timeout to 15 minutes: after a self-bump the
runner pulls the large -full image first. The comment on the validator
step now says the clone credential is kept out of it, not the job token,
which the runner may still pass to every step. The workflow rules note
that renovate-config is the Lint job outside the ci image.

Refs: #188
Assisted-by: Claude Code
2026-12-06 17:35:28 +00:00
Defame1297 fc62e2e110 docs(renovate): state what holds Dockerfile automerge and the validator check
The dockerfile rule no longer claims the bump's own CI builds the new
image: Images builds it only after the merge, and the pin-follow pull
request's CI runs on it. The top-level description says code-owned files
automerge only once a code owner approves.

making-a-change.md quotes the full validator command and marks it a
control only once Lint / renovate-config is a required check. The
renovate.yml concurrency comment drops an unverified queueing claim.

Refs: #172
Refs: #188
Assisted-by: Claude Code
2026-12-06 17:26:03 +00:00
Defame1297 9fb3cbd4fd ci(lint): keep the job token away from renovate.json and pin image lines in place
The renovate-config job clones in its own step and validates in a second
step, so the job token is not in the environment that reads the pull
request's renovate.json.

check_bot_pr_diff.py now refuses a moved image line in every workflow
whose pins a bot may move, lint.yml included, not only in image.yml and
renovate.yml. Tests cover a moved lint.yml line, an added second
Renovate line and a changed indentation.

Refs: #188
Assisted-by: Claude Code
2026-12-06 17:25:56 +00:00
Defame1297 076546f91b docs(contributing): point renovate.json syntax at Lint's validator job
Syntax is now checked by Lint's renovate-config job; a local
renovate --platform=local run stays for behaviour changes.
making-a-change.md also gains the two review-held rules for
renovate.json: descriptions of at most two short sentences, and a test or
check before an automerge exception.

Refs: #172
Refs: #188
Assisted-by: Claude Code
2026-12-06 17:02:21 +00:00
Defame1297 936e253af0 ci(renovate): run on push to main and let Renovate bump its own image
Renovate runs on every push to main, so after each merge the next bot
pull request is rebased without waiting for the daily schedule; the
renovate concurrency group still queues at most one run. The job timeout
drops from 30 to 10 minutes.

The rule that disabled updates to renovate.yml is replaced by a weekly
rule for renovate/renovate: a 3-day release age, never automerged, since
the job runs with the write-capable bot token. One pull request moves
the pin in renovate.yml and its copy in lint.yml. RENOVATE_DOCKER_MAX_PAGES
stays within Docker Hub's anonymous paging limit, so the image's release
timestamps are found and the wait applies.

Our own Docker images get an explicit zero release age. Every rule
description is cut to at most two sentences, and the top-level one now
says that an update with no release timestamp gets no wait.

Closes: #172
Closes: #188
Assisted-by: Claude Code
2026-12-06 17:02:10 +00:00
Defame1297 763ec5dfd3 ci(lint): validate renovate.json in the pinned Renovate image
Add a renovate-config job to Lint that runs renovate-config-validator
--strict --no-global in a copy of renovate.yml's Renovate image, so the
config is checked by the Renovate that runs it and the check can be
required. The ci image stays without Node.

check_bot_pr_diff.py now lets a bot pull request move the tag and digest
of the renovate/renovate image line in renovate.yml and lint.yml, in
place, keeping the name and the -full flavour. A test holds the two pins
equal.

Refs: #188
Assisted-by: Claude Code
2026-12-06 17:01:55 +00:00
Defame1297 d1db4fb0db Merge pull request 'chore(renovate): update the apm pin in pyproject.toml and uv.lock' (#523) from chore/518-renovate-uv into main
Reviewed-on: #523
2026-12-06 08:40:12 +00:00
Defame1297 5a130f143f Merge branch 'main' into chore/518-renovate-uv
Molecule / select (pull_request) Successful in 4s
Molecule / scenarios (pull_request) Successful in 35m29s
Molecule / Result (pull_request) Successful in 1s
Build / build (pull_request) Successful in 31s
Lint / lint (pull_request) Successful in 3m37s
2026-12-06 08:03:56 +00:00
Defame1297 cce3e54e7f Merge pull request 'chore(release): 3.5.0' (#524) from chore/release-3.5.0 into main
Build / build (push) Successful in 1m0s
Reviewed-on: #524
2026-12-06 08:03:33 +00:00
Defame1297 33f4ee960e chore(release): 3.5.0
Molecule / select (pull_request) Successful in 6s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 2s
Build / build (pull_request) Successful in 51s
Lint / lint (pull_request) Successful in 4m46s
Minor release: the ufw role masks nftables.service, so an upgrade of the
nftables package can no longer flush the rules ufw and Docker loaded.

Assisted-by: Claude Code:claude-opus-5-5
2026-12-06 07:53:31 +00:00
Defame1297 6d054b0f8b Merge branch 'main' into chore/518-renovate-uv
Molecule / select (pull_request) Successful in 8s
Molecule / Result (pull_request) Canceled after 0s
Molecule / scenarios (pull_request) Canceled after 11m3s
Build / build (pull_request) Successful in 29s
Lint / lint (pull_request) Successful in 3m39s
2026-12-06 07:52:20 +00:00
Defame1297 9dba48a30d Merge pull request 'fix(ufw): mask nftables.service so an upgrade cannot flush the rules' (#522) from fix/ufw-mask-nftables into main
Reviewed-on: #522
2026-12-06 07:52:08 +00:00
Defame1297 2b0326801f chore(renovate): update the apm pin in pyproject.toml and uv.lock
Molecule / select (pull_request) Successful in 2s
Molecule / Result (pull_request) Canceled after 0s
Molecule / scenarios (pull_request) Canceled after 16m17s
Build / build (pull_request) Successful in 49s
Lint / lint (pull_request) Successful in 4m48s
Enable the pep621 manager for the root pyproject.toml, which updates
uv.lock with it. apm-cli gets its own pull request without automerge: CI
never runs apm, so a green run says nothing about a new version. The
manager also reads requires-python, a floor for ruff rather than a pin,
so it is disabled, and lock file maintenance is off for uv.lock, whose
check refuses a change to any package but apm-cli.

Closes: #518

Assisted-by: Claude Code
2026-12-06 07:22:02 +00:00
Defame1297 1e95d8cbdd chore(uv): rewrite uv.lock as the Renovate image's uv writes it
uv 0.13.1, the version in the pinned Renovate image, writes lock revision
5 and drops two markers on httpcore2's dependencies that uv 0.11 kept.
The bot-diff check refuses a change to any package but apm-cli, so the
lock is rewritten once here, with `uv lock --upgrade-package apm-cli` at
the unchanged pin. No package, version, source, file or hash changes, and
uv 0.11.24 reads the lock and leaves it as it is.

Refs: #518

Assisted-by: Claude Code
2026-12-06 07:21:56 +00:00
Defame1297 47641ae01d ci(lint): accept an apm-cli bump in the bot-diff check
A Renovate pull request may now change pyproject.toml and uv.lock, but
only together, so the pep621 manager can move the apm pin. In
pyproject.toml only the version of a quoted name==version pin may change.

uv.lock is parsed with tomllib in a module of its own, check_uv_lock.py,
because uv installs whatever the lock names and a line-shape rule cannot
tie a file to its package: a file of another package under apm-cli, an
added package, a marker that drops a dependency and a downgrade all passed
one. The parsed rule allows only apm-cli moving up to the pin in
pyproject.toml, as plain releases compared as numbers, with the same kinds
of file as before (an sdist if it had one, the same wheel tags), each on
files.pythonhosted.org under /packages/ without dot segments or escapes,
named for apm-cli at the pin, by sha256. Every other package, the root
project beyond its apm-cli specifier and the top level beyond `revision`
must stay as they are. Without the same file kinds, a lock could drop the
wheels and make uv build apm-cli from its sdist with a build backend
fetched at sync time. A bump that moves anything else is made by hand.

Refs: #518

Assisted-by: Claude Code
2026-12-06 07:21:44 +00:00
Defame1297 c617bee02a fix(ufw): mask nftables.service so an upgrade cannot flush the rules
Molecule / select (pull_request) Successful in 2s
Molecule / scenarios (pull_request) Successful in 12m51s
Molecule / Result (pull_request) Successful in 0s
Build / build (pull_request) Successful in 33s
Lint / lint (pull_request) Successful in 4m5s
When nftables.service is enabled, the nftables package's postinst
restarts it on upgrade. The stock /etc/nftables.conf begins with
`flush ruleset` and the unit's ExecStop flushes too, so every rule ufw
and Docker loaded was deleted until they reloaded.

The role now masks the unit without stopping it, gated on ufw_enabled
and the new opt-out input ufw_mask_nftables. systemd refuses every job
but a stop on a masked unit, so the postinst's try-restart fails
before anything runs (the postinst ignores the failure) and the unit
does not start at boot. Masking works when the unit is absent too.

Assisted-by: Claude Code:claude-opus-5-5
2026-12-05 22:33:26 +00:00
Defame1297 f7da80b326 Merge pull request 'chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.54' (#521) from renovate/own-ci-images into main
Reviewed-on: #521
2026-12-05 20:52:07 +00:00
renovate-bot 1029d8ecce chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.54
renovate/stability-days Updates have met minimum release age requirement
Gitea release key / check (pull_request) Successful in 47s
Molecule / select (pull_request) Successful in 11s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 1s
Lint / lint (pull_request) Successful in 2m3s
Build / build (pull_request) Successful in 1m8s
2026-12-05 20:38:02 +00:00
Defame1297 535926b36e Merge pull request 'chore(apm): pin apm with uv' (#520) from chore/517-apm-uv into main
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 16s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, molecule-controller, ) (push) Successful in 14s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, ci, ) (push) Successful in 4m7s
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:168a88cc61bdd95c8f871e3903d4e0a525e340c2b28a70dadd6d1503ecc7c391, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 13s
Reviewed-on: #520
2026-12-05 20:32:44 +00:00
Defame1297 595f517b49 chore(apm): pin apm with uv
Molecule / select (pull_request) Successful in 5s
Molecule / scenarios (pull_request) Successful in 34m33s
Molecule / Result (pull_request) Successful in 1s
Build / build (pull_request) Successful in 28s
Lint / lint (pull_request) Successful in 4m16s
A bare `apm` is whatever version a machine has. apm 0.37.0 to 0.39.1
refuse an apm.lock.yaml rewritten by 0.39.2 or later, and versions before
0.39.0 drop `disable-model-invocation` from the deployed Claude commands.
uv now runs one pinned version, from a .venv of its own.

apm-cli leaves requirements-dev.txt, so there is one pin. Its lock loses 40
packages and no other version moves. apm.lock.yaml is regenerated with the
pinned apm.

Refs: #517
Assisted-by: Claude Code
2026-12-04 21:48:53 +00:00
Defame1297 d732ac0a71 Merge pull request 'chore(dev): move the dev tools from .venv to .venv-dev' (#519) from chore/516-venv-dev into main
Reviewed-on: #519
Reviewed-by: Defame1297 <[email protected]>
2026-12-04 21:16:58 +00:00
Defame1297 f62097a748 chore(dev): move the dev tools from .venv to .venv-dev
Molecule / select (pull_request) Successful in 3s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 1s
Build / build (pull_request) Successful in 34s
Lint / lint (pull_request) Successful in 1m49s
uv uses .venv as its project environment, and `uv sync --frozen` removes
every package that is not in uv.lock. The tools the git hooks need would
go with it, so they get a directory of their own.

Re-running scripts/dev-setup.sh switches the hooks of an older clone and
leaves its .venv alone. Ignore rules and prunes cover both directories.

Refs: #516
Assisted-by: Claude Code
2026-12-04 20:45:49 +00:00
Defame1297 b7b763e1fa Merge pull request 'chore(release): 3.4.0' (#515) from chore/512-release-3.4.0 into main
Build / build (push) Successful in 16s
Reviewed-on: #515
2026-12-04 19:33:54 +00:00
Defame1297 1dfdaf48ec chore(release): 3.4.0
Molecule / select (pull_request) Successful in 8s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 1s
Lint / lint (pull_request) Successful in 2m10s
Build / build (pull_request) Successful in 41s
Minor release: system_baseline persists its sysctl hardening in its own
sysctl.d drop-in, so it survives a reboot on Debian 13, and refuses ICMP
redirects on every interface.

Refs #512

Assisted-by: Claude Code:claude-opus-5-5
2026-12-03 19:21:05 +00:00
Defame1297 3d7b66072e Merge pull request 'fix(system_baseline): refuse ICMP redirects on every interface' (#514) from fix/511-icmp-redirects into main
Reviewed-on: #514
2026-12-03 19:15:06 +00:00
Defame1297 83f4cc2c5b Merge branch 'main' into fix/511-icmp-redirects
Molecule / select (pull_request) Successful in 6s
Molecule / scenarios (pull_request) Successful in 5m33s
Molecule / Result (pull_request) Successful in 1s
Build / build (pull_request) Successful in 32s
Lint / lint (pull_request) Successful in 2m56s
2026-12-03 19:08:37 +00:00
Defame1297 eaece480c8 Merge pull request 'fix(system_baseline): persist sysctls in an own sysctl.d drop-in' (#513) from fix/510-sysctl-dropin into main
Reviewed-on: #513
2026-12-03 18:52:01 +00:00
Defame1297 191431a8e4 Merge branch 'main' into fix/510-sysctl-dropin
Molecule / select (pull_request) Successful in 4s
Lint / lint (pull_request) Successful in 3m2s
Molecule / scenarios (pull_request) Successful in 5m18s
Molecule / Result (pull_request) Successful in 1s
Build / build (pull_request) Successful in 32s
2026-12-03 18:45:52 +00:00
Defame1297 2158233241 Merge pull request 'chore(deps): update own ci images' (#507) from renovate/own-ci-images into main
Reviewed-on: #507
2026-12-03 17:48:32 +00:00
Defame1297 74e574ee80 fix(system_baseline): refuse ICMP redirects on every interface
Molecule / select (pull_request) Successful in 8s
Molecule / scenarios (pull_request) Successful in 10m38s
Molecule / Result (pull_request) Successful in 1s
Build / build (pull_request) Successful in 28s
Lint / lint (pull_request) Successful in 2m23s
With forwarding off the kernel accepts redirects when either `all` or the
interface's own value is 1, and over IPv6 only the interface's value counts.
The profiles now also set `default` and, with a wildcard, every existing
interface, over IPv4 and IPv6.

Refs #511

Assisted-by: Claude Code:claude-opus-5-5
2026-12-03 17:44:02 +00:00
Defame1297 d88e5d237a fix(system_baseline): persist sysctls in an own sysctl.d drop-in
Molecule / select (pull_request) Successful in 3s
Molecule / scenarios (pull_request) Successful in 18m54s
Molecule / Result (pull_request) Successful in 0s
Build / build (pull_request) Successful in 1m5s
Lint / lint (pull_request) Successful in 4m54s
systemd-sysctl on Debian 13 does not read /etc/sysctl.conf, so the
hardened values were lost on reboot. The role now applies the live values
on their own, writes them to a drop-in under /etc/sysctl.d and removes its
keys from /etc/sysctl.conf.

Refs #510

Assisted-by: Claude Code:claude-opus-5-5
2026-12-03 17:23:51 +00:00
renovate-bot e7eae3b219 chore(deps): update own ci images
renovate/stability-days Updates have met minimum release age requirement
Gitea release key / check (pull_request) Successful in 57s
Molecule / select (pull_request) Successful in 14s
Molecule / scenarios (pull_request) Successful in 42m10s
Molecule / Result (pull_request) Successful in 1s
Build / build (pull_request) Successful in 51s
Lint / lint (pull_request) Successful in 2m9s
2026-12-03 17:04:20 +00:00
Defame1297 cf99893855 Merge pull request 'fix(images): build when Ubuntu has upgraded a base package' (#509) from fix/images-base-upgrade into main
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 3m19s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, molecule-controller, ) (push) Successful in 3m54s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd, ci, ) (push) Successful in 6m12s
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:168a88cc61bdd95c8f871e3903d4e0a525e340c2b28a70dadd6d1503ecc7c391, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 2m55s
Reviewed-on: #509
Reviewed-by: Defame1297 <[email protected]>
2026-12-03 16:44:00 +00:00
Defame1297 508ed5ce12 docs(images): name the leftover check in the setup step comment
Molecule / select (pull_request) Successful in 2s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 0s
Build / build (pull_request) Successful in 22s
Lint / lint (pull_request) Successful in 2m14s
The check compares package names and unowned files now, not a pristine
filesystem.

Assisted-by: Claude Code
2026-12-03 08:38:26 +00:00
Defame1297 9127ac565a fix(images): build when Ubuntu upgrades a base package
Installing the job container's tools upgrades base packages once Ubuntu
has newer ones, and the purge does not downgrade them, so the version
check failed every image. Kaniko now empties the root filesystem and
unpacks the base image before its first snapshot (--pre-cleanup), so the
versions no longer matter. Extra packages and files no package owns
still fail the job.

With the filesystem emptied, a failed build can leave no rm for the last
step, so the build step empties the credential file itself.

The images also kept the base image's package versions. Each Dockerfile
now upgrades them, and the base digests move to the newest published.

Refs #508

Assisted-by: Claude Code
2026-12-03 08:30:16 +00:00
Defame1297 e446e1e09a Merge pull request 'ci: follow-ups after moving Molecule to the molecule-controller image' (#506) from ci/505-controller-followups into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Failing after 13s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Failing after 16s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Failing after 14s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Failing after 13s
Reviewed-on: #506
2026-12-03 08:11:51 +00:00
Defame1297 2f5a997dd7 Merge remote-tracking branch 'origin/main' into ci/505-controller-followups
Molecule / select (pull_request) Successful in 5s
Molecule / scenarios (pull_request) Successful in 35m31s
Molecule / Result (pull_request) Successful in 1s
Build / build (pull_request) Successful in 24s
Lint / lint (pull_request) Successful in 2m57s
# Conflicts:
#	requirements-dev.lock
2026-12-02 09:47:21 +00:00
Defame1297 8497af3407 Merge pull request 'chore(deps): update own ci images' (#504) from renovate/own-ci-images into main
Reviewed-on: #504
2026-12-02 09:29:37 +00:00
Defame1297 22f5bc33e9 chore: correct comments the ci image change left stale
Molecule / select (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 3m0s
Molecule / Result (pull_request) Canceled after 0s
Molecule / scenarios (pull_request) Canceled after 18m22s
Build / build (pull_request) Successful in 28s
image.yml's push paths listed extensions/molecule/requirements.yml under
the ci image, which no longer bakes it; it now sits with the
molecule-controller files. The list only triggers the build, so the paths
are unchanged. requirements-dev.txt no longer feeds Molecule, so the
proxmoxer comment names lint only. The ufw probe comments now say the
probe's stdout is empty in check mode, in two lines each, and two lines
in lint.yml and the workflow rules are re-wrapped.

Assisted-by: Claude Code
2026-12-02 09:26:03 +00:00
Defame1297 a48cd063ea fix(ci): treat only a NAME_UNKNOWN 404 as an image with no tags
next_image_version.py read any 404 on the first tags/list page as a
repository not pushed yet, so a wrong registry path or a proxy's 404 page
would restart the image at <base>.0 instead of failing. The OCI
distribution spec answers a missing repository with 404 and the error
code NAME_UNKNOWN, so only that answer now means no tags.

RegistryError carried only the readable text of the body, so it now also
carries the body's OCI error codes. The tests cover a plain 404 page and a
404 with another code, both of which now raise.

Assisted-by: Claude Code
2026-12-02 08:51:21 +00:00
renovate-bot 293e4f6f79 chore(deps): update own ci images
renovate/stability-days Updates have met minimum release age requirement
Gitea release key / check (pull_request) Successful in 51s
Molecule / select (pull_request) Successful in 18s
Molecule / scenarios (pull_request) Successful in 36m27s
Molecule / Result (pull_request) Successful in 3s
Build / build (pull_request) Successful in 1m14s
Lint / lint (pull_request) Successful in 4m46s
2026-12-02 08:51:09 +00:00
Defame1297 6fee0ea8b2 fix(ufw): detect check mode without a command's skipped result
The probes in install.yml, orphan_rules.yml, service_rules.yml and
sysctl.yml took a skipped `command` task as the sign of check mode.
ansible-core 2.22 deprecates that: command.py marks its check-mode
`r['skipped'] = True` for removal in 2.25, and the 2.22 changelog says
"Returning skipped from a module or action plugin is deprecated and will be
removed in ansible-core 2.25". The probe would then report ok, and the role
would delete rules and edit sysctl.conf under --check.

The probe now runs `echo ran` and reads its output: a command does not run
in check mode, under --check or the check_mode keyword, so the output is
empty there. Checked against ansible-core 2.22 and a copy with the skipped
return removed, in a normal play, a check_mode play and --check.
service_rules.yml had the same probe and is changed with the others.

Assisted-by: Claude Code
2026-12-02 08:44:38 +00:00
Defame1297 39ec8e5b3c build(ci): drop molecule's Docker driver and community.docker from the ci image
Molecule runs in the molecule-controller image. In the ci image, only
Lint's "Test the repository scripts" step uses molecule:
test_check_scenarios_load_checkout.py runs check_scenarios_load_checkout.py,
which imports molecule's config lookup, and test_run_molecule_scenarios.py
expands platform names with molecule's interpolator. Both skip silently
without molecule, so molecule stays, with a comment naming the step.

Nothing in Lint or Build uses the Docker driver (molecule-plugins[docker])
or the docker SDK it pulls in: those tests use molecule's default driver
and a stub docker module. No linted file calls a community.docker module,
and a local clone, which never installs extensions/molecule/requirements.yml,
passes ansible-lint. So the driver, docker, selinux and community.docker
leave the ci image, and extensions/molecule/requirements.yml leaves its
pin record: a community.docker bump no longer publishes a ci version.

The lock is regenerated with scripts/lock-requirements.sh. Every script
test passes, none skipped, in a venv installed from the new lock.

Assisted-by: Claude Code
2026-12-02 08:43:39 +00:00
Defame1297 722e81f233 Merge pull request 'chore(deps): update lint tooling' (#491) from renovate/lint-tooling into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Failing after 14s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 14s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Successful in 2m10s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 5m56s
Reviewed-on: #491
2026-12-02 08:42:42 +00:00
Defame1297 570d16d861 Merge branch 'main' into renovate/lint-tooling
Molecule / select (pull_request) Successful in 7s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 1s
Build / build (pull_request) Successful in 38s
Lint / lint (pull_request) Successful in 2m34s
2026-12-02 08:39:16 +00:00
Defame1297 891deec3a8 Merge pull request 'chore(deps): refresh pip-compile outputs' (#492) from renovate/pip-compile-refresh into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Failing after 18s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 19s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Successful in 17s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 7m47s
Reviewed-on: #492
2026-12-02 08:33:20 +00:00
Defame1297 ffa4cf5760 Merge branch 'main' into renovate/pip-compile-refresh
Molecule / select (pull_request) Successful in 6s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 2s
Build / build (pull_request) Successful in 36s
Lint / lint (pull_request) Successful in 3m35s
2026-12-02 08:29:28 +00:00
Defame1297 3414880d05 ci(molecule): rename the run script after the molecule-controller image
scripts/run_molecule_in_ci_image.sh runs inside the molecule-controller
image, not the ci image, so its name pointed readers at the wrong image.
Its test file and class follow, and every reference is updated. ADR 0003
keeps the old name: it records what that change touched.

main's selector sees the old and the new path (it diffs with
--no-renames) and neither is on IGNORED, so this pull request runs every
scenario through the renamed script of its own checkout.

Assisted-by: Claude Code
2026-12-02 08:27:57 +00:00
Defame1297 08c589e910 docs(requirements): name the molecule-controller image as Molecule's consumer
Molecule runs in the molecule-controller image, which bakes these
collections, and the run script installs them when a pull request changes
them. The header still said the ci image served Molecule and that the
workflow installed them itself.

Assisted-by: Claude Code
2026-12-02 08:21:41 +00:00
Defame1297 476239b119 Merge pull request 'ci(molecule): skip the Molecule runner when no scenario is selected' (#503) from ci/433-skip-empty-molecule into main
Reviewed-on: #503
2026-12-02 08:12:32 +00:00
renovate-bot 3aab89b637 chore(deps): update lint tooling
renovate/stability-days Updates have met minimum release age requirement
Molecule / molecule (pull_request) Successful in 59s
Build / build (pull_request) Successful in 1m6s
Lint / lint (pull_request) Successful in 5m29s
2026-12-02 03:17:49 +00:00
Defame1297 e4039871a6 Merge branch 'main' into ci/433-skip-empty-molecule
Molecule / select (pull_request) Successful in 8s
Molecule / scenarios (pull_request) Successful in 39m25s
Molecule / Result (pull_request) Successful in 3s
Build / build (pull_request) Successful in 26s
Lint / lint (pull_request) Successful in 4m27s
2026-12-02 00:00:32 +00:00
Defame1297 69ed7776b0 Merge pull request 'chore(deps): update dependency molecule to v26.11.1' (#490) from renovate/molecule-26.x into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Failing after 15s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 18s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Successful in 1m55s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 9m2s
Reviewed-on: #490
2026-12-01 23:44:22 +00:00
Defame1297 479efe1ddc ci(molecule): fail the Molecule result when select's output is lost
Molecule / select (pull_request) Successful in 21s
Molecule / Result (pull_request) Canceled after 0s
Molecule / scenarios (pull_request) Canceled after 10m23s
Build / build (pull_request) Successful in 25s
Lint / lint (pull_request) Successful in 2m26s
An empty select output meant "nothing selected", so an output lost on
the way from select to result also passed the required check. select now
writes `none` for an empty selection; scenarios runs for neither `none`
nor an empty output, and result passes a skipped scenarios only for
`none`.

The result-logic test runs under sh, as act runs a job container's step
without a shell, and a new test parses what select writes to
GITHUB_OUTPUT. The fork-guard test compares each job with the literal
guard.

Assisted-by: Claude Code
2026-12-01 23:42:59 +00:00
Defame1297 2d1f142662 ci(molecule): skip the Molecule runner when no scenario is selected
A pull request that selects no scenario still took the single Molecule
runner slot to pull the controller image, select nothing and exit.

The workflow now has three jobs. select runs the selector from main's
copy in a job container on kamino-docker, in the molecule-controller pin,
and outputs the selected list. scenarios runs it on kamino-molecule and
is skipped when the list is empty. result runs always() and is the one
job to require: it fails unless select passed and scenarios passed or
was skipped for an empty list, because Gitea counts a skipped job as
passing. Scheduled and dispatched runs still select every scenario.

container.image cannot read env, so the controller pin is written in all
three jobs; a test holds the copies equal. The pin moves to 0.1.1, which
has git for the select job's checkout. Branch protection must then
require "Molecule / Result (pull_request)".

Closes #433

Assisted-by: Claude Code
2026-12-01 23:20:01 +00:00
Defame1297 d2db03b48d Merge branch 'main' into renovate/pip-compile-refresh
Molecule / molecule (pull_request) Successful in 15s
Build / build (pull_request) Canceled after 1m15s
Lint / lint (pull_request) Successful in 7m13s
2026-12-01 23:13:04 +00:00
Defame1297 12cc3b8ef4 Merge branch 'main' into renovate/molecule-26.x
Lint / lint (pull_request) Successful in 4m8s
Molecule / molecule (pull_request) Successful in 39m35s
Build / build (pull_request) Successful in 23s
2026-12-01 23:04:09 +00:00
Defame1297 492a68395e Merge pull request 'ci(images): add git to the molecule-controller image' (#502) from ci/488-controller-git into main
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 15s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Successful in 1m42s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 15s
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Failing after 44s
Reviewed-on: #502
2026-12-01 22:53:29 +00:00
Defame1297 75f9d27329 ci(images): add git to the molecule-controller image
Molecule / molecule (pull_request) Successful in 11s
Build / build (pull_request) Successful in 39s
Lint / lint (pull_request) Successful in 2m3s
The Molecule select job runs the selector in this image, and the
selector diffs the checkout with git.

Closes #488

Assisted-by: Claude Code
2026-12-01 22:42:23 +00:00
Defame1297 2ad2fe6060 Merge pull request 'ci(molecule): run Molecule in the molecule-controller image' (#487) from ci/431-pin-molecule-controller into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Failing after 17s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 17s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Successful in 17s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 5m25s
Reviewed-on: #487
Reviewed-by: Defame1297 <[email protected]>
2026-12-01 22:23:40 +00:00
Defame1297 70adc0de29 Merge branch 'main' into ci/431-pin-molecule-controller
Molecule / molecule (pull_request) Successful in 36m15s
Build / build (pull_request) Successful in 39s
Lint / lint (pull_request) Successful in 3m32s
2026-12-01 21:46:31 +00:00
Defame1297 f842cd16b9 Merge pull request 'chore(release): 3.3.0' (#501) from chore/483-release-3.3.0 into main
Build / build (push) Successful in 1m0s
Reviewed-on: #501
2026-12-01 21:45:30 +00:00
Defame1297 3124af964c chore(release): 3.3.0
Molecule / molecule (pull_request) Successful in 8s
Build / build (pull_request) Successful in 52s
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 5fd5d63984 Merge branch 'main' into ci/431-pin-molecule-controller
Molecule / molecule (pull_request) Canceled after 19m49s
Build / build (pull_request) Successful in 40s
Lint / lint (pull_request) Successful in 3m27s
2026-12-01 21:23:38 +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
Molecule / molecule (pull_request) Successful in 37m37s
Build / build (pull_request) Successful in 56s
Lint / lint (pull_request) Successful in 4m48s
2026-12-01 20:13:01 +00:00
Defame1297 bdf2cd8e59 Merge branch 'main' into ci/431-pin-molecule-controller
Molecule / molecule (pull_request) Canceled after 9m7s
Build / build (pull_request) Successful in 33s
Lint / lint (pull_request) Successful in 4m4s
2026-12-01 20:09:19 +00:00
renovate-bot 5c9c5fb713 chore(deps): refresh pip-compile outputs
renovate/stability-days Updates have met minimum release age requirement
Molecule / molecule (pull_request) Successful in 1m33s
Build / build (pull_request) Successful in 1m6s
Lint / lint (pull_request) Successful in 5m27s
2026-11-30 03:19:42 +00:00
renovate-bot 25c9772726 chore(deps): update dependency molecule to v26.11.1
renovate/stability-days Updates have met minimum release age requirement
Molecule / molecule (pull_request) Successful in 36m29s
Build / build (pull_request) Successful in 21s
Lint / lint (pull_request) Successful in 2m25s
2026-11-30 03:18:26 +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
Molecule / molecule (pull_request) Successful in 30m40s
Build / build (pull_request) Successful in 46s
Lint / lint (pull_request) Successful in 2m57s
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
Defame1297 91cc633665 docs(molecule): say the profile callbacks come from the molecule-controller image
Molecule / molecule (pull_request) Successful in 52m5s
Build / build (pull_request) Successful in 1m11s
Lint / lint (pull_request) Successful in 5m7s
Assisted-by: Claude Code
2026-11-29 19:25:33 +00:00
Defame1297 4db1a2b3c9 docs: describe Molecule running in the molecule-controller image
The ci image's labels and doc, the consumer lists, the Molecule rules in
.gitea/workflows/AGENTS.md and the accepted risk on pin bumps in SECURITY.md said Molecule
runs in the ci image. They now name the molecule-controller image, its pin files and which
pin files select scenarios.

Closes #431

Assisted-by: Claude Code
2026-11-29 19:25:33 +00:00
Defame1297 89bd579e87 ci(molecule): run Molecule in the molecule-controller image
Molecule ran in the ci image, so a ci pin bump for a tool only Lint uses selected every
scenario (ADR 0003). The workflow now pins molecule-controller 0.1.0 by digest as
CONTROLLER_IMAGE, the hand-made first pin the ADR calls for.

- The run script checks /opt/molecule-pins.sha256 and installs requirements-molecule.lock
  when a pull request changed a pin file.
- The selector reads CONTROLLER_IMAGE: a controller pin change selects every scenario; a ci
  pin bump touches only lint.yml and build.yml, which are on IGNORED, so it selects none.
- Tests show requirements-molecule.* selects every scenario and requirements-dev.* none.
- Renovate's molecule.yml regex matches CONTROLLER_IMAGE.

Closes #434

Assisted-by: Claude Code
2026-11-29 19:25:33 +00:00
renovate-bot a60fb6407e chore(deps): update own ci images
renovate/stability-days Updates have met minimum release age requirement
Molecule / molecule (pull_request) Successful in 54m56s
Build / build (pull_request) Successful in 30s
Lint / lint (pull_request) Successful in 3m7s
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
Molecule / molecule (pull_request) Successful in 14m55s
Build / build (pull_request) Successful in 34s
Lint / lint (pull_request) Successful in 3m38s
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
Lint / lint (pull_request) Successful in 3m21s
Molecule / molecule (pull_request) Successful in 32m9s
Build / build (pull_request) Successful in 29s
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
Molecule / molecule (pull_request) Successful in 13m26s
Build / build (pull_request) Successful in 40s
Lint / lint (pull_request) Successful in 3m45s
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
Molecule / molecule (pull_request) Successful in 16s
Build / build (pull_request) Successful in 58s
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
Molecule / molecule (pull_request) Canceled after 7m3s
Build / build (pull_request) Successful in 33s
Lint / lint (pull_request) Successful in 3m25s
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
Molecule / molecule (pull_request) Canceled after 1m14s
Build / build (pull_request) Successful in 38s
Lint / lint (pull_request) Successful in 4m29s
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
Molecule / molecule (pull_request) Successful in 17s
Build / build (pull_request) Successful in 1m6s
Lint / lint (pull_request) Successful in 4m37s
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
Molecule / molecule (pull_request) Successful in 36m0s
Build / build (pull_request) Successful in 37s
Lint / lint (pull_request) Successful in 5m15s
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
Lint / lint (pull_request) Successful in 3m27s
Molecule / molecule (pull_request) Successful in 31m13s
Build / build (pull_request) Successful in 31s
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
Lint / lint (pull_request) Successful in 3m21s
Molecule / molecule (pull_request) Successful in 30m31s
Build / build (pull_request) Successful in 35s
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
Molecule / molecule (pull_request) Successful in 5m3s
Build / build (pull_request) Successful in 32s
Lint / lint (pull_request) Successful in 2m45s
2026-11-29 09:40:19 +00:00
Defame1297 2b221b69a5 Merge branch 'main' into ci/432-two-lanes
Molecule / molecule (pull_request) Successful in 29m36s
Build / build (pull_request) Successful in 28s
Lint / lint (pull_request) Successful in 2m44s
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
Molecule / molecule (pull_request) Successful in 3m55s
Build / build (pull_request) Successful in 30s
Lint / lint (pull_request) Successful in 2m43s
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
Molecule / molecule (pull_request) Successful in 12m25s
Build / build (pull_request) Successful in 27s
Lint / lint (pull_request) Successful in 3m58s
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
Lint / lint (pull_request) Successful in 2m37s
Molecule / molecule (pull_request) Successful in 5m2s
Build / build (pull_request) Successful in 31s
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
Molecule / molecule (pull_request) Successful in 41m21s
Build / build (pull_request) Successful in 1m3s
Lint / lint (pull_request) Successful in 2m57s
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
Molecule / molecule (pull_request) Successful in 8m7s
Build / build (pull_request) Successful in 42s
Lint / lint (pull_request) Successful in 4m41s
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
Molecule / molecule (pull_request) Successful in 13m48s
Build / build (pull_request) Successful in 1m0s
Lint / lint (pull_request) Successful in 4m15s
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
Defame1297 0779e8b5c7 test(ufw): cover the service_rules cases with fewer owners
Lint / lint (pull_request) Successful in 2m46s
Molecule / molecule (pull_request) Successful in 18m9s
Build / build (pull_request) Successful in 37s
The scenario called service_rules once per owner, eight times, about 30 tasks each, on every
check, converge and idempotence pass. Three owners keep every case.

- svc_a (no purge): the old svc_a (8001, 8002 with from), svc_b (8003, the 8004 deny with no
  comment or proto), svc_g (8022 with a comment mentioning 22), svc_e (7201 and the stale
  7003 kept because purging is off).
- svc_c (purge): the old svc_c (7101, stale 7001 deleted), svc_h (7301, the stale SSH
  lookalike kept), svc_p (7602, stale 7601 deleted, no-port, source-only and range rules
  kept). svc_a's stale 7003 surviving svc_c's purge proves owner isolation.
- svc_d (absent): unchanged.

The tagged total stays at 20 (svc_a 7, svc_c 7, svc_m 1, svc_o2 1, svc_o3 4) and the untagged
at 5. Converge keeps two orphan checks, one after the three cases without a purge and one after
the purge; the check after the invalid managed owner in verify goes, as the Verify play asserts
the same state. Converge gathers no facts: the role reads none.

Closes #457

Assisted-by: Claude Code
2026-11-28 21:52:36 +00:00
Defame1297 f766666476 test(system_baseline): run the vzdump guard cases against the guard alone
Molecule / molecule (pull_request) Successful in 7m39s
Build / build (pull_request) Successful in 31s
Lint / lint (pull_request) Successful in 2m36s
Each of the seven vzdump cases ran the whole update entry point in check
mode, when they assert only the guard's decision. The guard now lives in
an internal tasks/vzdump_guard.yml, imported by update.yml so the update
tag, when and main-flow vars still reach it. Six cases include it
alone; the ubuntu_lxc case keeps running tasks_from: update end to end,
and a static check asserts the guard is imported before the upgrade and
that the upgrade's when reads its fact.

The purge of unwanted packages becomes one apt call over the installed
ones, skipped when none is installed. The scenario's gathering plays
use gather_subset min: the role reads only os_family and package_facts.

Closes #456

Assisted-by: Claude Code
2026-11-28 21:47:17 +00:00
Defame1297 7bc3cc6bdf feat(traefik): skip a fresh apt refresh and trim the scenario's repeated work
Molecule / molecule (pull_request) Successful in 8m58s
Build / build (pull_request) Successful in 1m16s
Lint / lint (pull_request) Successful in 5m47s
The prerequisites install takes only distribution packages and runs
before any source is added, yet refreshed the APT cache on every run.
It now passes cache_valid_time: 3600, as docker, system_baseline and
user_management already do; the README tells a consumer who adds a
source just before the role to refresh the cache themselves.

The default scenario repeated work other steps already cover. Verify
now exercises the update path once, to the other release, so prepare
builds only that stand-in; the role default's stand-in was used only
by the way back. mortis.kamino.ufw moves to prepare, as the ufw
scenario tests it, so converge and idempotence run only traefik, with
fact gathering off since none of the roles reads facts.

Closes #458

Assisted-by: Claude Code
2026-11-28 21:39:33 +00:00
Defame1297 2865573429 test(gitea_runner): fold the disk-pressure run into the failed-download case
Molecule / molecule (pull_request) Successful in 3m43s
Build / build (pull_request) Successful in 38s
Lint / lint (pull_request) Successful in 2m30s
The verify step ran the whole role once only to set the disk threshold to 0. Prune runs
before update in tasks/main.yml, so the failed-download run can carry that input: the
pressure units are removed before the download fails at staging. The exact staging
message the rescue asserts comes only from update.yml, so a prune error still fails it.
The run with the scenario's inputs stays before the remove path, which needs the units back.

The forced re-registration child runs now start once instead of per host: they check only
controller state and group_vars, and run_once gives every host the registered results.

Closes #459

Assisted-by: Claude Code
2026-11-28 20:39:32 +00:00
Defame1297 be8c3f2ed9 test(docker): merge the verify role runs and assert a unit change keeps dockerd running
Molecule / molecule (pull_request) Successful in 7m0s
Build / build (pull_request) Successful in 34s
Lint / lint (pull_request) Successful in 3m36s
The verify ran the role four times to switch the unit, daemon and restart
inputs, and each run refreshed apt against the stand-in repository. Nothing
showed that removing a unit leaves dockerd running.

The daemon-settings check now runs before any role run; those runs set no
daemon input until the last play, so daemon.json still holds converge's
content. One play then runs the role twice: first with the boot unit off, a
daemon change and no restart, asserting the units, the new value and an
unchanged dockerd start time; then with both units on and a restart,
asserting the boot unit is back, the value and a new start time.

Closes #460

Assisted-by: Claude Code
2026-11-28 20:39:19 +00:00
Defame1297 716baa19c7 Merge pull request 'revert(molecule): connect with the docker CLI again' (#465) from ci/455-revert-docker-api into main
Reviewed-on: #465
Reviewed-by: Defame1297 <[email protected]>
2026-11-28 19:52:16 +00:00
Defame1297 0961dfdff4 revert(molecule): connect with the docker CLI again
Lint / lint (pull_request) Successful in 3m46s
Molecule / molecule (pull_request) Successful in 36m57s
Build / build (pull_request) Successful in 34s
Two full runs on the docker_api connection took 45 and 49 minutes against 35 on the
CLI connection, with the same tasks a median 13% slower. The fixed Python interpreter
from the same change stays.

Refs #455

Assisted-by: Claude Code
2026-11-28 19:12:18 +00:00
Defame1297 cdc5937e45 Merge pull request 'chore(apm): install the plan package' (#464) from feat/install-plan into main
Reviewed-on: #464
2026-11-28 18:46:25 +00:00
Defame1297 cd46e9dfb4 chore(apm): install holocron plan package
Molecule / molecule (pull_request) Successful in 12s
Build / build (pull_request) Successful in 1m6s
Lint / lint (pull_request) Successful in 4m29s
Adds the plan package, which turns a ticket or idea into a validated
spec and agent-ready tickets and ships the /next command. Its deployed
command is ignored like the deployed skills and agents.

The lock moves to lockfile_version 4 because apm-cli 0.38.1, the
version pinned in requirements-dev.txt, upgrades it on install.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-28 18:37:12 +00:00
Defame1297 8c3f9c4594 Merge pull request 'ci(molecule): connect over the Docker API with a fixed Python interpreter' (#463) from ci/455-docker-api-connection into main
Reviewed-on: #463
2026-11-28 17:55:54 +00:00
Defame1297 c109d24229 ci(molecule): name the issue that removes the docker CLI mount
Molecule / molecule (pull_request) Successful in 17s
Build / build (pull_request) Successful in 38s
Lint / lint (pull_request) Successful in 3m24s
Part of #455

Assisted-by: Claude Code
2026-11-28 16:27:24 +00:00
Defame1297 faf1c7e36f ci(molecule): connect over the Docker API with a fixed Python interpreter
The docker driver's community.docker.docker connection starts the docker CLI for every task
on every host, and each playbook run discovers the interpreter on every container although
both molecule images ship /usr/bin/python3. The shared base config now sets
provisioner.connection_options, which molecule merges over the driver's own connection vars
for the container hosts only, so localhost keeps the controller's Python.

community.docker 5.4.1's docker_api connection supports pipelining and become and needs only
requests, which requirements-dev.lock already pins. The docker CLI bind mount in molecule.yml
stays until a green run shows nothing needs it; its comment and two others that named the
CLI's calls now describe the API connection.

Closes #455

Assisted-by: Claude Code
2026-11-28 15:51:17 +00:00
Defame1297 b5a5a4efa1 Merge pull request 'ci(molecule): start the longest scenarios first and pass the lane count in' (#461) from ci/432-molecule-order-lanes into main
Reviewed-on: #461
Reviewed-by: Defame1297 <[email protected]>
2026-11-28 15:01:59 +00:00
Defame1297 c0c1485470 Merge branch 'main' into ci/432-molecule-order-lanes
Molecule / molecule (pull_request) Successful in 38m42s
Build / build (pull_request) Successful in 29s
Lint / lint (pull_request) Successful in 4m8s
2026-11-28 14:22:43 +00:00
Defame1297 92cf7257d4 test(molecule): wrap the runner stub under the sanity line limit
Molecule / molecule (pull_request) Successful in 34m54s
Build / build (pull_request) Successful in 30s
Lint / lint (pull_request) Successful in 3m51s
Part of #432

Assisted-by: Claude Code
2026-11-28 08:48:29 +00:00
Defame1297 e34a0eb2e0 test(molecule): derive the order test from the duration list
Part of #432. The start-order test now reads its scenarios and their seconds
from the run script's list, so a refreshed list does not break it; the
empty-lanes test only asserts the value is accepted, and the script's header
and duration-list comments are rewrapped and say the list is keyed by
scenario directory.

Assisted-by: Claude Code
2026-11-28 08:45:05 +00:00
Defame1297 ef840c8952 ci(molecule): start the longest scenarios first and pass the lane count in
Part of #432. A long scenario started late sets the end of a full run, so
run_molecule_scenarios.sh now starts scenarios by the durations of the last
full run, longest first, with an unlisted scenario first; the log groups keep
the selection order. A workflow_dispatch input `lanes` reaches the script as
MOLECULE_LANES, so full runs with different lane counts can be compared; an
empty value keeps the default of 4.

The shared molecule config enables ansible.posix.profile_tasks (summary only)
and ansible.posix.timer, so each scenario's log shows where its time goes.

Assisted-by: Claude Code
2026-11-28 08:36:20 +00:00
Defame1297 29db4985fe Merge pull request 'feat(nfs_client): add a role that manages NFS client entries in fstab' (#451) from feat/402-nfs-client into main
Reviewed-on: #451
2026-11-28 08:25:06 +00:00
Defame1297 1fedced1d3 Merge branch 'main' into feat/402-nfs-client
Molecule / molecule (pull_request) Successful in 1m42s
Lint / lint (pull_request) Successful in 2m29s
Build / build (pull_request) Successful in 30s
2026-11-28 08:22:32 +00:00
Defame1297 a2ab13a6e1 Merge pull request 'feat(docker): pin the Docker apt key by checksum' (#454) from feat/448-docker-keyring-checksum into main
Reviewed-on: #454
2026-11-28 08:22:23 +00:00
Defame1297 a185a301db docs(docker): say the keyring checksum follows an overridden key URL
Molecule / molecule (pull_request) Successful in 7m29s
Build / build (pull_request) Successful in 28s
Lint / lint (pull_request) Successful in 3m37s
Set docker_keyring_checksum together with docker_gpg_url, and state that
the checksum is the hex digest without the sha256: prefix.

Assisted-by: Claude Code
2026-11-27 22:25:00 +00:00
Defame1297 c7c38c6bc0 feat(docker): pin the Docker apt key by checksum
The key that signs the Docker repository was trusted as whatever the URL served. It is now checked
against a pinned sha256, so a changed key stops the install until a person has verified it.

Assisted-by: Claude Code
2026-11-27 22:09:56 +00:00
Dragonish fcd2290e14 test(nfs_client): refresh the apt cache in the scenario's prepare
Molecule / molecule (pull_request) Successful in 2m5s
Build / build (pull_request) Successful in 31s
Lint / lint (pull_request) Successful in 2m47s
The molecule image ships without apt lists, and --check does not refresh
them, so the fresh-host check found no nfs-common to install and failed
with "No package matching 'nfs-common' is available". The docker, pihole,
system_baseline and traefik scenarios refresh the cache in prepare for the
same reason.

Refs #402

Assisted-by: Claude Code
2026-11-27 21:55:02 +00:00
Dragonish 5ce5e3c932 feat(nfs_client): add a role that manages NFS client entries in fstab
Molecule / molecule (pull_request) Failing after 43s
Build / build (pull_request) Successful in 31s
Lint / lint (pull_request) Successful in 1m53s
Installs nfs-common and manages NFS mount entries from nfs_client_mounts
(src, path, optional opts, state present or absent). Each mount point is
created without owner, group or mode, because once a share is mounted a
chown or chmod there changes the permissions on the NFS server. The role
writes only the fstab line and reloads systemd; it never mounts or
unmounts. An absent entry maps to ansible.posix.mount's absent_from_fstab,
which removes the line and leaves the share and the directory alone.

The default options are _netdev,nofail. x-systemd.automount is left out.

Verified locally: yamllint, ansible-lint (production profile), syntax check
of the scenario playbooks, the controller-side refusals of verify.yml (14
cases, each matched on its own message), and the module's fstab behaviour
against a scratch fstab (replacement, absent_from_fstab, idempotence).
Not verified: Molecule, which runs only in CI; the apt install and the
daemon-reload handler; that systemd generates the mount units in the
scenario's containers.

Refs #402

Assisted-by: Claude Code
2026-11-27 21:47:09 +00:00
190 changed files with 10442 additions and 2092 deletions

No files matched your search

+1
View File
@@ -6,6 +6,7 @@ profile: production
exclude_paths:
- .gitea
- .venv
- .venv-dev
- apm_modules
- apm.lock.yaml
- changelogs
+11
View File
@@ -3,6 +3,11 @@
# first on ANSIBLE_COLLECTIONS_PATH, so molecule's per-scenario install is unused.
prerun: false
provisioner:
# Merged over the docker driver's own connection vars, for the container hosts only: localhost
# keeps the controller's Python.
connection_options:
# Both molecule images ship it; a fixed path skips interpreter discovery in every playbook run.
ansible_python_interpreter: /usr/bin/python3
config_options:
connection:
# Pipe each module over stdin: without it every task pays extra docker exec and docker cp
@@ -11,3 +16,9 @@ provisioner:
defaults:
# Gather each host's facts once per playbook run, not in every play.
gathering: smart
# Per-task timings, to see what a scenario's time goes to; ansible.posix is in the molecule-controller image
# and in requirements.yml, so the controller always has these callbacks.
callbacks_enabled: ansible.posix.profile_tasks, ansible.posix.timer
callback_profile_tasks:
summary_only: true
task_output_limit: 20
+78 -32
View File
@@ -39,55 +39,87 @@ issue.
while a content check must see the content it is given. *Held:* review (`CODEOWNERS`).
- **A pull request from a `renovate/` branch changes only version, tag, digest and pin lines**
(tool pins with their lock entries and hashes, hook `rev:` lines, Dockerfile `FROM` tags and
digests, `job_image:` pins, consumer image pins).
digests, `job_image:` pins, consumer image pins, and the tag and digest of the Renovate image
line of `renovate.yml` and of its copy in `lint.yml`). In `pyproject.toml` only a pin's version
moves; in `uv.lock` only apm-cli moves, to that pin, with its files from PyPI by sha256, and
every other package stays as it is.
*Why:* the bot's minor and patch pull requests automerge, so they must not be able to change
anything else. *Held:* control: the Lint check's "Check a bot pull request only moves pins"
step, `scripts/check_bot_pr_diff.py` run from `main`'s copy. The branch name is chosen by the
pusher, so this constrains only the bot's own pull requests.
anything else; uv installs whatever `uv.lock` names, so it is parsed, not read line by line.
*Held:* control: the Lint check's "Check a bot pull request only moves pins" step,
`scripts/check_bot_pr_diff.py` with `scripts/check_uv_lock.py`, run from `main`'s copy. The
branch name is chosen by the pusher, so this constrains only the bot's own pull requests.
- **Workflows never mention the image namespace this repository's CI must not use** (the string
is in `scripts/check_image_versions.py`). *Why:* this repository's images are built and pulled
only under its own organisation's namespace. *Held:* control: the Lint check's "Check image
pins" step.
only under its own organisation's namespace. *Held:* control: the `check-image-pins` hook,
run by the Lint check.
## Lint and Build
- **Lint and Build run in the pinned `ci` image and compare the pin files with the checksums
baked into it (`/opt/ci-pins.sha256`).** A pull request that changes `requirements-dev.txt`,
`requirements-dev.lock`, `requirements.yml`, `extensions/molecule/requirements.yml` or
`.pre-commit-config.yaml` takes the slow path, which installs the pinned tools and collections.
baked into it (`/opt/ci-pins.sha256`)**, except Lint's `renovate-config` job (below). A pull request that changes `requirements-dev.txt`,
`requirements-dev.lock`, `requirements.yml` or `.pre-commit-config.yaml` takes the slow path,
which installs the pinned tools and collections.
*Why:* a pull request is tested on its own pins, and an unchanged one starts in seconds.
*Held:* control: the "Check the baked tooling against the pins" step.
- **On the fast path the network is cut by environment**: `PIP_NO_INDEX=1`, the proxy variables
set to a dead local port and `no_proxy` empty, for every later step except "Test the repository
scripts", which unsets them for its fake registry on loopback; the slow path keeps network.
set to a dead local port and `no_proxy` empty, for every later step; the slow path keeps
network. The script tests set `no_proxy` to `127.0.0.1` for their fake registry on loopback.
*Why:* a runtime download is a bake-in defect and must fail the job, not silently slow it.
*Held:* control, set by the "Check the baked tooling against the pins" step, for pip, curl, git
over HTTPS and Python's urllib or requests (anything honouring `PIP_NO_INDEX` or the proxy
variables); review for a raw socket or a tool that ignores the proxy variables, and for the
script tests.
variables); review for a raw socket or a tool that ignores the proxy variables.
- **Triggers:** both run on pull requests to `main` and on manual dispatch; Build also runs on
`v*` tags, where it checks the tag against `galaxy.yml`. *Why:* the tag is what consumers
install. *Held:* review.
- **Lint's `renovate-config` job runs `renovate-config-validator --strict --no-global` on
`renovate.json`, in the same Renovate image as `renovate.yml`, on every run with no `if:`.**
Renovate moves both pins in one pull request. *Why:* the config is checked by the Renovate
that runs it, and a check that always reports can be required. *Held:* control:
`test_the_renovate_image_pins_are_the_same` in `tests/scripts/test_check_bot_pr_diff.py` for
the equal pins; review for the job.
## Renovate
- **Triggers:** a push to `main`, the daily schedule and a successful Images run are live; a
manual dispatch is a dry run unless its input says otherwise. Runs share the `renovate`
group without cancelling. *Why:* a run after each merge rebases the next bot pull request,
and an Images run's pin pull request opens within minutes. *Held:* review.
## Molecule
- **Molecule runs on every same-repository pull request, Renovate's included, with no path
filter.** A fork pull request is skipped by the job's `if:`, which is a convenience, not a
filter.** A fork pull request is skipped by the jobs' shared `if:` guard, which is a convenience, not a
boundary: a fork controls its own workflow file. Gitea's approval gate keeps a fork's runs from
starting, and the fork rule in [reviewing.md](../../docs/contributing/reviewing.md) keeps it
shut. *Why:* a check that always reports can be required, and a new image is tested by its own
pin pull request. *Held:* review.
- **Molecule has three jobs: `select`, `scenarios` and `result`.** `select` runs the selector in
a job container on `kamino-docker`, in the `molecule-controller` pin (never the `ci` pin, whose
bumps would then select every scenario), and outputs the selected directories, or `none`.
`scenarios` runs them on `kamino-molecule` and is skipped for `none` or an empty output.
`result` (check `Molecule / Result (pull_request)`) is the required check: it runs
`if: always()` and fails unless `select` passed and `scenarios` passed or was skipped for
`none`, so a lost output fails it. The
controller pin is written in all three jobs, because `container.image` cannot read `env`.
*Why:* a pull request that selects nothing takes no Molecule runner slot, and a skipped job
counts as passing in Gitea, so only a job that always runs can be required. *Held:* control:
`WorkflowJobsTest` in `tests/scripts/test_run_molecule_scenarios.py` for the jobs, runners,
guard and result logic, and `test_every_controller_pin_is_the_same` in
`tests/scripts/test_select_molecule_scenarios.py` for the pin copies.
- **What a pull request runs is chosen by `scripts/select_molecule_scenarios.py`:** the scenarios
of the roles it changes and of the roles that use them (any file naming
`mortis.kamino.<role>`, transitively), none for a diff of only IGNORED paths, a failure for a
changed role with no scenario, for a `.gitea/workflows/molecule.yml` diff of only comments
(outside `run:` scripts) or image pins the scenarios that name a changed `MOLECULE_IMAGE*` pin
(every scenario for `CI_IMAGE`, or when a shared molecule file names the pin), and every
scenario for any other file. *Why:* a full run takes
the single runner slot for a long time. *Held:* control: the selector and its tests.
- **A role named in an include, import, play `roles:` entry or meta dependency is written out in
full**, never bare or templated. *Why:* the selector finds dependent roles by their FQCN.
*Held:* control: a selector test fails a bare or templated name.
(every scenario for `CONTROLLER_IMAGE`, or when a shared molecule file names the pin), and every
scenario for any other file, `requirements-molecule.*` included; `requirements-dev.*`, and
`lint.yml` and `build.yml` with their `ci` pins, are on IGNORED. *Why:* a full run takes the
single runner slot for a long time. *Held:* control: the selector and its tests.
- **A role named in an include, import or play `roles:` entry is written out in full**, never
bare or templated, and no role declares `meta/main.yml` `dependencies`
([roles/AGENTS.md](../../roles/AGENTS.md)). *Why:* the selector finds dependent roles by their
FQCN. *Held:* control: a selector test fails a bare or templated name and a non-empty
`dependencies`.
- **Scenarios load `mortis.kamino` from the checkout, never from an installed copy, so
`galaxy.yml` is on IGNORED.** *Why:* the checkout is first on `ANSIBLE_COLLECTIONS_PATH` and the
shared base config `.config/molecule/config.yml` turns off molecule's install of the collection
@@ -95,8 +127,10 @@ issue.
(release versions, `build_ignore`) do not change what a scenario runs, and the Build check
proves the collection builds; they had caused about a third of full pull request runs and their
minutes (#338). *Held:* control: `scripts/check_scenarios_load_checkout.py`, which
`run_molecule_in_ci_image.sh` runs on the selected scenarios before they start, fails the run
when the environment molecule gives `ansible-playbook` resolves `mortis.kamino` anywhere else.
`run_molecule_in_controller.sh` runs on the selected scenarios before they start, fails the run
when the environment molecule gives `ansible-playbook` resolves `mortis.kamino` anywhere else,
or when `prerun` is not off once the base config is merged as molecule's CLI merges it (a
scenario turns it on, or the base config is moved or turns it on).
A pull request that selects no scenario runs no check; the next one that does, and the nightly
run, catch a change that broke the rule.
- **A new file outside `roles/<role>/` runs every scenario until it is added to IGNORED, and it
@@ -110,17 +144,29 @@ issue.
concurrency group of its own.** Runs may overlap on the runner's Docker daemon: every container
is named and labelled by its run (`KAMINO_RUN_ID`). The job first removes labelled containers
older than its timeout, which a cancelled run left, and finally its own. The scenarios of one
run overlap (`scripts/run_molecule_scenarios.sh`, `MOLECULE_LANES` at a time), so no two
scenarios may share a platform name. *Why:* a cancelled run is killed before it can remove its
instances, and a younger container may belong to a run still going. *Held:* review; control:
the names and labels by the test the `test_sequence` rule below names, and the sweep's age bound
equal to the job timeout by `test_the_sweep_spares_containers_younger_than_the_job_timeout` in
`tests/scripts/test_run_molecule_scenarios.py`.
run overlap (`scripts/run_molecule_scenarios.sh`, `MOLECULE_LANES` at a time, 2 unless a manual
dispatch sets its `lanes` input), so no two scenarios may share a platform name. They start
longest first by the script's list of last full-run times, an unlisted one first; the logs stay
in selection order. A scenario still running at the script's per-scenario limit is stopped and
fails. *Why:* a cancelled run is killed before it can remove its instances, a younger container
may belong to a run still going, a long scenario started late sets the end of the run, and a
hang that fails alone inside the job timeout still lets every scenario's log print. *Held:*
review; control: the start order by `test_the_longest_scenarios_start_first` and the input by
`LanesInputTest`, both in `tests/scripts/test_run_molecule_scenarios.py`; control: the names and
labels by the test the `test_sequence` rule below names, and the sweep's age bound equal to the
job timeout by `test_the_sweep_spares_containers_younger_than_the_job_timeout` in
`tests/scripts/test_run_molecule_scenarios.py`; control: the limit by
`test_a_scenario_past_its_time_limit_fails_alone` and
`test_the_default_time_limit_is_inside_the_job_timeout`, in the same file.
- **Molecule tests the pull request's pins, as Lint and Build do.** It runs molecule in the pinned
`ci` image and, when a pin file differs from `/opt/ci-pins.sha256`, installs the pull request's
tools and the collections of `requirements.yml` and `extensions/molecule/requirements.yml` first.
*Why:* a pull request that raises the ansible-core floor must run its scenarios on the new core
before it automerges. *Held:* control: the pin comparison in `molecule.yml`.
`molecule-controller` image ([ADR 0003](../../docs/adr/0003-molecule-controller-image.md)) and,
when a pin file differs from `/opt/molecule-pins.sha256`, installs the pull request's tools from
`requirements-molecule.lock` and the collections of `requirements.yml` and
`extensions/molecule/requirements.yml` first. A change to `requirements-molecule.txt` or
`requirements-molecule.lock` selects every scenario; `requirements-dev.*` pins only Lint's tools
and selects none. *Why:* a pull request that bumps ansible-core or molecule must run its
scenarios on them before it automerges. *Held:* control: the pin comparison in
`run_molecule_in_controller.sh`, and the selector's tests for which pin files select what.
- **Every scenario sets `scenario.test_sequence` to molecule's default minus both `destroy`
steps, with a role scenario's `check` right before and right after `converge`, names each
platform `${KAMINO_RUN_ID:-local}-<name>` and labels it
+6 -6
View File
@@ -28,7 +28,7 @@ jobs:
timeout-minutes: 30
# The ci image (images/ci, built by image.yml): tag for the release, digest enforced.
container:
image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
image: git.rkdr.net/mortis/ci:0.2.54@sha256:2742be4ba03f71f00b06f1d2b318e8fd3866a800247bbd7e52508dfb0da6312c
env:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
steps:
@@ -66,8 +66,8 @@ jobs:
HTTP_PROXY=http://127.0.0.1:9 HTTPS_PROXY=http://127.0.0.1:9 no_proxy= NO_PROXY= >> "$GITHUB_ENV"
echo "::notice::Later steps run with a dead proxy; a download fails the job (bake it into images/ci)."
else
echo "::warning::requirements-dev.txt, requirements-dev.lock, requirements.yml," \
"extensions/molecule/requirements.yml or .pre-commit-config.yaml differ from the ci image;" \
echo "::warning::requirements-dev.txt, requirements-dev.lock, requirements.yml" \
"or .pre-commit-config.yaml differ from the ci image;" \
"installing the pinned tools for this run."
/opt/venv/bin/pip install --quiet --require-hashes -r requirements-dev.lock -r requirements-dev.txt
fi
@@ -94,13 +94,13 @@ jobs:
# ansible-galaxy dereferences symlinks when it builds, so a symlink in the source tree
# reaches the archive as a regular file with the target's content, where
# scripts/check_tarball.py cannot see it. Refuse them in the tree instead: this step
# is the only guard against a file symlink. The two -prune paths below (./.venv,
# ./.git) are skipped only because the build skips them too (galaxy.yml build_ignore,
# is the only guard against a file symlink. The -prune paths below (./.git, ./.venv,
# ./.venv-dev) are skipped only because the build skips them too (galaxy.yml build_ignore,
# and ansible-galaxy's own .git exclusion): the two lists must stay in step, and
# tests/scripts/test_check_tarball.py fails when a pruned directory is not ignored.
- name: Refuse symlinks in the source tree
run: |
links="$(find . -path ./.git -prune -o -path ./.venv -prune -o -type l -print)"
links="$(find . -path ./.git -prune -o -path ./.venv -prune -o -path ./.venv-dev -prune -o -type l -print)"
if [ -n "$links" ]; then
echo "::error::symlinks in the source tree would be dereferenced into the Collection archive:"
echo "$links"
+1 -1
View File
@@ -44,7 +44,7 @@ jobs:
# The ci image (images/ci, built by image.yml), at the pin of lint.yml: tag for the
# release, digest enforced. Only its /opt/venv Python (with PyYAML) is used here.
container:
image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
image: git.rkdr.net/mortis/ci:0.2.54@sha256:2742be4ba03f71f00b06f1d2b318e8fd3866a800247bbd7e52508dfb0da6312c
steps:
# The container has no Node, so JavaScript actions such as actions/checkout
# cannot run; clone with git and the job token.
+38 -31
View File
@@ -2,7 +2,8 @@ name: Images
# Builds the images under images/ with kaniko (osscontainertools fork, v1.28.6) and
# pushes them to git.rkdr.net/mortis/<name>: the molecule
# test targets (molecule-ubuntu2404, molecule-ubuntu2604) and the lint/build tooling (ci).
# test targets (molecule-ubuntu2404, molecule-ubuntu2604), the lint/build tooling (ci) and
# the Molecule controller (molecule-controller).
#
# Never on pull_request: a workflow file comes from the PR head, so a fork PR could
# otherwise push to the registry. This workflow has no pull_request trigger, and the job
@@ -38,12 +39,15 @@ on: # yamllint disable-line rule:truthy
- main
paths:
- 'images/**'
# The ci image bakes these files' contents in (images/ci/Dockerfile).
# The ci image bakes these files' contents in (images/ci/Dockerfile); requirements.yml too.
- 'requirements-dev.txt'
- 'requirements-dev.lock'
- 'requirements.yml'
- 'extensions/molecule/requirements.yml'
- '.pre-commit-config.yaml'
# The molecule-controller image bakes these, and requirements.yml (its Dockerfile).
- 'requirements-molecule.txt'
- 'requirements-molecule.lock'
- 'extensions/molecule/requirements.yml'
- '.gitea/workflows/image.yml'
workflow_dispatch: {}
@@ -79,17 +83,22 @@ jobs:
base: "0.1"
subpath: images/molecule-ubuntu2404
dockerfile: Dockerfile
job_image: ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b
job_image: ubuntu:24.04@sha256:168a88cc61bdd95c8f871e3903d4e0a525e340c2b28a70dadd6d1503ecc7c391
- name: molecule-ubuntu2604
base: "0.1"
subpath: images/molecule-ubuntu2604
dockerfile: Dockerfile
job_image: ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
job_image: ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd
- name: ci
base: "0.2"
subpath: ""
dockerfile: images/ci/Dockerfile
job_image: ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
job_image: ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd
- name: molecule-controller
base: "0.1"
subpath: ""
dockerfile: images/molecule-controller/Dockerfile
job_image: ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd
container:
image: ${{ matrix.job_image }}
# Keeps a runaway build from taking the whole runner down with it.
@@ -98,21 +107,17 @@ jobs:
DEBIAN_FRONTEND: noninteractive
IMAGE_PATH: mortis/${{ matrix.name }}
steps:
# One step, in this order, so the filesystem the build starts from is the pristine
# base image. Kaniko unpacks the base image into the job container's own root
# filesystem and snapshots from there, so anything installed in the job container
# first (curl and its libraries) would count as "already present" and be missing
# from the layers that install the same packages (ca-certificates, libkrb5 ...).
# Kaniko unpacks the base image into the job container's own root filesystem and
# snapshots from there, so anything left in it (curl and its libraries) would count
# as "already present" and be missing from the layers that install the same packages.
# The build's --pre-cleanup empties that filesystem first; this step also cleans up
# after itself, so a leftover fails the job instead of relying on that flag alone.
# The tools are therefore installed, used, and exactly the packages the install
# added are purged (not `autoremove`, which would also drop base packages that
# are marked auto-installed). The result is compared with what was recorded
# before the install: the package names and versions must be identical, and any
# file difference under /usr, /lib, /bin, /sbin, /opt or /etc fails the job.
# Names only, no sizes or modes, and /var/log, /run and dpkg's *-old files are
# not compared: logs and dpkg state the install touched may end up in the first
# layer as modified files. That is cosmetic. Not yet checked: listing the layers
# (crane export | tar t, looking for run/act, root/ and var/log/apt) needs a
# read:package token, which the Claude token lacks.
# are marked auto-installed). The package names must then equal those recorded before
# the install, and a new file under /usr, /lib, /bin, /sbin, /opt or /etc that no
# package owns fails the job. Versions may differ: the install upgrades a base package
# when Ubuntu has a newer one, and the build starts from the base image's copy again.
#
# The pinned kaniko v1.28.6 image has index digest
# sha256:2fa20b0a4b40c7db72b479d57e55c2cf79f2178533b2d3bcbd129d6bd3c087ed and
@@ -154,7 +159,6 @@ jobs:
snapshot > /kaniko/fs.before
pkgs() { dpkg-query -W -f='${Package}:${Architecture}\n' | LC_ALL=C sort; }
pkgs > /kaniko/pkgs.before
dpkg-query -W -f='${Package}:${Architecture} ${Version}\n' | LC_ALL=C sort > /kaniko/pkgv.before
apt-get update
apt-get install -y --no-install-recommends ca-certificates curl python3
@@ -164,7 +168,7 @@ jobs:
printf 'header = "Authorization: token %s"\n' "$JOB_TOKEN" \
| curl -fsSL -K - "${SERVER_URL}/api/v1/repos/${REPO}/archive/${SHA}.tar.gz" \
| tar -xz -C /tmp/src --strip-components=1
# -B: no bytecode left behind to break the pristine-filesystem check below.
# -B: no bytecode left behind to break the leftover check below.
env -u PAT_USER -u PAT_TOKEN -u JOB_TOKEN python3 -B -E -s \
/tmp/src/scripts/next_image_version.py /tmp/src "$IMAGE_NAME" "$SERVER_URL" > /kaniko/image-version
if [ -s /kaniko/image-version ]; then
@@ -234,25 +238,24 @@ jobs:
fi
fi
# Back to the pristine base image (see above): purge exactly what the install
# added, then compare packages (names and versions) and files with the record.
# Purge exactly what the install added, then compare packages and files with the record (see above).
pkgs > /kaniko/pkgs.installed
comm -13 /kaniko/pkgs.before /kaniko/pkgs.installed | xargs apt-get purge -y
apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/*
dpkg-query -W -f='${Package}:${Architecture} ${Version}\n' | LC_ALL=C sort > /kaniko/pkgv.after
if ! diff /kaniko/pkgv.before /kaniko/pkgv.after; then
echo "::error::The installed packages differ from the pristine base image (listed above): the install" \
"upgraded or left packages behind, so the build would start from a modified filesystem."
pkgs > /kaniko/pkgs.after
if ! diff /kaniko/pkgs.before /kaniko/pkgs.after; then
echo "::error::The installed packages are not those of the base image (differences above)."
exit 1
fi
snapshot > /kaniko/fs.after
diff /kaniko/fs.before /kaniko/fs.after > /kaniko/fs.diff || true
if grep -E '^[<>] /(usr|lib|bin|sbin|opt|etc)/' /kaniko/fs.diff; then
echo "::error::The job container differs from the pristine base image (listed above); the build would produce wrong layers."
comm -13 /kaniko/fs.before /kaniko/fs.after > /kaniko/fs.new
# dpkg -S fails on a path no package owns; an upgraded base package may bring new files of its own.
if ! sed -nE '\#^/(usr|lib|bin|sbin|opt|etc)/#p' /kaniko/fs.new | xargs -r -d '\n' dpkg -S > /dev/null; then
echo "::error::The install left files behind that no package owns (listed above)."
exit 1
fi
echo "Package and filesystem check passed ($(grep -c '^[<>]' /kaniko/fs.diff || true) unrelated file differences outside the checked directories)"
echo "Package and filesystem check passed"
- name: Build and push with kaniko
env:
@@ -270,6 +273,9 @@ jobs:
set +x
set -eu
export DOCKER_CONFIG=/kaniko/.docker
# A build that fails right after --pre-cleanup leaves no rm for the last step, so empty the
# credential file with a shell builtin.
trap '{ : > "$DOCKER_CONFIG/config.json"; } 2> /dev/null || true' EXIT
# The CA bundle from the kaniko image: the base image has none.
export SSL_CERT_DIR=/kaniko/ssl/certs
registry="${SERVER_URL#https://}"
@@ -322,6 +328,7 @@ jobs:
"${ctx[@]}" \
"${dests[@]}" \
"${labels[@]}" \
--pre-cleanup \
--snapshot-mode=redo \
--cache=false \
--push-retry 3 \
+42 -18
View File
@@ -3,11 +3,11 @@ name: Lint
# Runs only on the Collection's own runner (label kamino-docker, scoped to the mortis org).
# No org secret is used: the only credential is the
# job token (secrets.GITHUB_TOKEN), which is read-only for a fork pull request. No pull_request_target.
# The tools come from the ci image (images/ci, built by image.yml): the pinned Python
# The lint job's tools come from the ci image (images/ci, built by image.yml): the pinned Python
# tools of requirements-dev.txt, the collections of requirements.yml and the hook
# environments of .pre-commit-config.yaml are baked in. When a PR changes one of those
# files or extensions/molecule/requirements.yml the checksum check below fails and the
# job installs the pinned tools and collections itself for this run (slower, same result).
# files the checksum check below fails and the job installs the pinned tools and
# collections itself for this run (slower, same result).
on: # yamllint disable-line rule:truthy
pull_request:
branches:
@@ -31,7 +31,7 @@ jobs:
# The tag says which release, the digest is what is enforced (bump both together
# when image.yml publishes a new version).
container:
image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
image: git.rkdr.net/mortis/ci:0.2.54@sha256:2742be4ba03f71f00b06f1d2b318e8fd3866a800247bbd7e52508dfb0da6312c
env:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
PRE_COMMIT_HOME: /opt/pre-commit
@@ -65,8 +65,8 @@ jobs:
HTTP_PROXY=http://127.0.0.1:9 HTTPS_PROXY=http://127.0.0.1:9 no_proxy= NO_PROXY= >> "$GITHUB_ENV"
echo "::notice::Later steps run with a dead proxy; a download fails the job (bake it into images/ci)."
else
echo "::warning::requirements-dev.txt, requirements-dev.lock, requirements.yml," \
"extensions/molecule/requirements.yml or .pre-commit-config.yaml differ from the ci image;" \
echo "::warning::requirements-dev.txt, requirements-dev.lock, requirements.yml" \
"or .pre-commit-config.yaml differ from the ci image;" \
"installing the pinned tools and collections for this run."
/opt/venv/bin/pip install --quiet --require-hashes -r requirements-dev.lock -r requirements-dev.txt
# --force: the baked copy of a changed pin is replaced, not kept as "already installed".
@@ -78,14 +78,6 @@ jobs:
export PATH="/opt/venv/bin:$PATH"
pre-commit run --all-files --show-diff-on-failure
# Image pins (scripts/check_image_versions.py): a pin in a workflow must name an
# image of the matrix. Not a pre-commit hook: a change to .pre-commit-config.yaml
# is itself an input of the ci image and would force an image rebuild.
- name: Check image pins
run: |
export PATH="/opt/venv/bin:$PATH"
python3 scripts/check_image_versions.py pins
# A pull request from a renovate/ branch may only move version, tag, digest and pin
# lines (scripts/check_bot_pr_diff.py), so the bot's automerge cannot change workflow
# logic or reach the org secrets. The branch name is attacker-controlled: this only
@@ -113,12 +105,11 @@ jobs:
fi
python3 -E -s "$guard" "$HEAD_REF" "$BASE_REF"
# Without the guard: an empty no_proxy would send the fake registry on 127.0.0.1 to the dead proxy.
- name: Test the repository scripts
# The script tests are a pre-push hook (they take minutes), so --all-files above skips them.
- name: Run the script tests hook
run: |
unset PIP_NO_INDEX http_proxy https_proxy HTTP_PROXY HTTPS_PROXY
export PATH="/opt/venv/bin:$PATH"
python3 -m unittest discover -s tests/scripts
pre-commit run --hook-stage pre-push script-tests --all-files --show-diff-on-failure
# The gitleaks hook scans --staged only, which is empty in a clean checkout,
# so scan the PR's commits explicitly with the binary pre-commit built.
@@ -148,3 +139,36 @@ jobs:
echo "Checking $sha"
pre-commit run --hook-stage commit-msg --commit-msg-filename "$MSG_FILE"
done
# renovate.json checked by the validator of the Renovate that runs it. The image is a copy of
# renovate.yml's pin (test_the_renovate_image_pins_are_the_same); the ci image has no Node.
renovate-config:
runs-on: kamino-docker
# Ceiling only: it includes a cold pull of the large -full image after a bump.
timeout-minutes: 15
container:
image: renovate/renovate:44.161.0-full@sha256:ddbf02e44b542343c9df696b88fd953f04cc3ee5f771221805ff8efb26595416
steps:
# The image runs as a non-root user, so the clone goes to the runner's temp directory.
- name: Checkout the commit under test
env:
GIT_CONFIG_COUNT: "1"
GIT_CONFIG_KEY_0: http.extraheader
GIT_CONFIG_VALUE_0: "AUTHORIZATION: bearer ${{ secrets.GITHUB_TOKEN }}"
SHA: ${{ github.event.pull_request.head.sha || github.sha }}
REF: ${{ github.ref }}
REPO_URL: ${{ github.server_url }}/${{ github.repository }}
run: |
src="${RUNNER_TEMP:-/tmp}/renovate-config"
git clone "$REPO_URL" "$src"
cd "$src"
git checkout "$SHA" || { git fetch origin "$REF" && git checkout "$SHA"; }
echo "Checked out $(git rev-parse HEAD)"
# A step of its own, so the clone credential (http.extraheader) is not in the environment
# that reads renovate.json.
# --no-global: renovate.json is a repository config, not the bot's global one.
- name: Validate renovate.json
run: |
cd "${RUNNER_TEMP:-/tmp}/renovate-config"
renovate-config-validator --strict --no-global renovate.json
+136 -38
View File
@@ -4,18 +4,25 @@ name: Molecule
# extensions/molecule/*/ and roles/*/molecule/*/. extensions/molecule/image-smoke and
# image-smoke-2604 test the test images themselves, so they run even before any role exists.
#
# It runs on the `kamino-molecule` label, a host executor that uses the runner's own
# Docker daemon; no job container is given the Docker socket. That makes the job
# Three jobs, so that a pull request that selects no scenario takes no Molecule runner slot:
# `select` chooses the scenarios in a job container on `kamino-docker`; `scenarios` runs them on
# `kamino-molecule`, and is skipped when none is selected; `result` is the required check and
# passes only when `select` passed and `scenarios` passed or was skipped for an empty selection.
#
# The scenarios job runs on the `kamino-molecule` label, a host executor that uses the runner's
# own Docker daemon; no job container is given the Docker socket. That makes the job
# root-equivalent on the runner, which is disposable and holds no secret from outside
# this repository. The `if:` guard is a convenience filter, not a boundary: a fork controls its
# own workflow file. The boundaries are write access, which only trusted people have, and Gitea's
# approval gate on fork runs, which the fork rule in docs/contributing/reviewing.md keeps shut.
#
# molecule runs in the pinned ci image via `docker run` with the runner's Docker socket, so the
# scenario containers start beside it on the runner's daemon; the job tree is mounted at the same
# path, so the paths molecule hands the daemon resolve. Like Lint and Build, it installs the pull
# request's pins when they differ from the image's. The images are pinned by tag and digest: bump
# them here when image.yml publishes a new ci, molecule-ubuntu2404 or molecule-ubuntu2604 version.
# molecule runs in the pinned molecule-controller image via `docker run` with the runner's Docker
# socket, so the scenario containers start beside it on the runner's daemon; the job tree is mounted
# at the same path, so the paths molecule hands the daemon resolve. Like Lint and Build, it installs
# the pull request's pins when they differ from the image's. The images are pinned by tag and
# digest: bump them here when image.yml publishes a new molecule-controller, molecule-ubuntu2404 or
# molecule-ubuntu2604 version. The molecule-controller pin is written three times, because
# `container.image` cannot read `env`; a script test holds the copies equal.
on: # yamllint disable-line rule:truthy
pull_request:
branches:
@@ -24,7 +31,13 @@ on: # yamllint disable-line rule:truthy
# drift in the others (a package mirror) would otherwise go unseen. After Renovate's 03:17 run.
schedule:
- cron: "43 4 * * *"
workflow_dispatch: {}
workflow_dispatch:
inputs:
lanes:
description: Scenarios run at a time (empty for the default of run_molecule_scenarios.sh)
required: false
type: string
default: ""
permissions:
contents: read
@@ -37,31 +50,99 @@ concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
molecule:
select:
# Same-repo branches only (bot branches included: a Renovate pin pull request is what tests a new
# image); the nightly run and a manual dispatch always run. No paths filter on pull requests, so
# that Molecule can be a required check: a required check that a pull request never starts would
# block it. A fork pull request is skipped by the guard below.
# block it. A fork pull request is skipped by the guard below, which all three jobs share.
if: >-
github.repository == 'mortis/kamino' &&
(github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository)
runs-on: kamino-docker
timeout-minutes: 10
# The molecule-controller pin, as CONTROLLER_IMAGE below: a ci pin here would make every ci
# bump select every scenario (ADR 0003).
container:
image: git.rkdr.net/mortis/molecule-controller:0.1.4@sha256:5658231afaff531161f02aef7a436ed875b1ad6c8d55a8d144e9763c71244420
outputs:
scenarios: ${{ steps.select.outputs.scenarios }}
steps:
# The selector's diff needs origin/main and the full history, so a clone, not a fetch of HEAD.
- name: Checkout the commit under test
env:
GIT_CONFIG_COUNT: "1"
GIT_CONFIG_KEY_0: http.extraheader
GIT_CONFIG_VALUE_0: "AUTHORIZATION: bearer ${{ secrets.GITHUB_TOKEN }}"
SHA: ${{ github.event.pull_request.head.sha || github.sha }}
REF: ${{ github.ref }}
REPO_URL: ${{ github.server_url }}/${{ github.repository }}
run: |
rm -rf ac
mkdir -p ac/ansible_collections/mortis
git clone "$REPO_URL" ac/ansible_collections/mortis/kamino
cd ac/ansible_collections/mortis/kamino
# A clone has no refs/pull/*: fetch the run's ref when the sha is not on a branch.
git checkout "$SHA" || { git fetch origin "$REF" && git checkout "$SHA"; }
echo "Checked out $(git rev-parse HEAD)"
# A pull request runs only the scenarios of the roles it changes (scripts/select_molecule_scenarios.py
# explains the rules); the nightly run and a manual dispatch run all of them, because the
# selector narrows only when EVENT_NAME is pull_request.
- name: Select the scenarios
id: select
working-directory: ac/ansible_collections/mortis/kamino
env:
EVENT_NAME: ${{ github.event_name }}
# The workflow only runs for pull requests to main; lint.yml uses the same constant.
BASE_REF: origin/main
run: |
# The selector comes from the base branch, so a pull request cannot edit the rules it is
# judged by (lint.yml does the same for check_bot_pr_diff.py); the first pull request that
# adds it has no base copy yet and uses its own.
sel=scripts/select_molecule_scenarios.py
if git cat-file -e "$BASE_REF:$sel" 2>/dev/null; then
sel_dir="$(mktemp -d)"
trap 'rm -rf "$sel_dir"' EXIT
git show "$BASE_REF:$sel" > "$sel_dir/select.py"
sel="$sel_dir/select.py"
else
echo "::notice::no base copy of $sel; running this checkout's copy"
fi
selected="$(python3 -I "$sel" "$BASE_REF")" || exit 1
# `none` marks an empty selection, so a lost or empty output fails result, never passes.
if [ -z "$selected" ]; then selected=none; fi
# One directory per line; a random delimiter, so no line of the list can end the value.
delim="scenarios-$(od -An -N16 -tx1 /dev/urandom | tr -d ' \n')"
printf 'scenarios<<%s\n%s\n%s\n' "$delim" "$selected" "$delim" >> "$GITHUB_OUTPUT"
scenarios:
needs: select
# Skipped, not failed, when select fails, selects nothing (`none`) or loses its output (empty);
# result passes only the second.
if: >-
needs.select.outputs.scenarios != 'none' &&
needs.select.outputs.scenarios != '' &&
github.repository == 'mortis/kamino' &&
(github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository)
runs-on: [kamino-molecule]
# A full run under load takes about 45 minutes (PR #405: 44m53s), so 45 left no margin. Also the
# age past which the sweep step removes a run's containers; a script test holds the two equal.
timeout-minutes: 90
env:
# The tools and collections molecule runs with: the image Lint and Build use.
CI_IMAGE: >-
git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
# The tools and collections molecule runs with, apart from Lint's (ADR 0003), so a tool
# bump only Lint uses selects no scenario.
CONTROLLER_IMAGE: >-
git.rkdr.net/mortis/molecule-controller:0.1.4@sha256:5658231afaff531161f02aef7a436ed875b1ad6c8d55a8d144e9763c71244420
# Used by the scenarios as `image: ${MOLECULE_IMAGE}`; set it the same way to run
# one locally.
MOLECULE_IMAGE: >-
git.rkdr.net/mortis/molecule-ubuntu2404:0.1.11@sha256:e7389be9c397ec50fcf7d433c99cb9da7b16b149384aaa543e3c21a3ada1a4e1
git.rkdr.net/mortis/molecule-ubuntu2404:0.1.13@sha256:536cc31bb5ef5d5912b50afa98dc080bdb583baa601027298ec5e90e5712e178
# The same for Ubuntu 26.04, the release the hosts are moving to; used by
# `image: ${MOLECULE_IMAGE_2604}` in extensions/molecule/image-smoke-2604.
MOLECULE_IMAGE_2604: >-
git.rkdr.net/mortis/molecule-ubuntu2604:0.1.7@sha256:86ee99fe77ab4c9af3911570ae7238ce525375cfaf923e9656860606c47488df
git.rkdr.net/mortis/molecule-ubuntu2604:0.1.9@sha256:8a9e75ecd53c630e56f4df3a2ced990bfcbd49c247103297114a2b9f30f75d62
# Names and labels this run's containers: the scenarios' as `${KAMINO_RUN_ID:-local}-<name>`
# with the label net.rkdr.mortis.molecule-run, and the one molecule runs in.
KAMINO_RUN_ID: ${{ github.run_id }}-${{ github.run_attempt }}
@@ -113,31 +194,15 @@ jobs:
for id in $old; do left="$left$(docker ps -aq --filter "id=$id")"; done
if [ -n "$left" ]; then echo "::error::could not remove ${left//$'\n'/ }"; exit 1; fi
# A pull request runs only the scenarios of the roles it changes (scripts/select_molecule_scenarios.py
# explains the rules); the nightly run and a manual dispatch run all of them, a few at a time.
# scripts/run_molecule_scenarios.sh runs them and removes each scenario's containers as soon as
# it ends.
# scripts/run_molecule_scenarios.sh runs the selected scenarios, a few at a time, and removes
# each scenario's containers as soon as it ends.
- name: Run the scenarios
working-directory: ac/ansible_collections/mortis/kamino
env:
EVENT_NAME: ${{ github.event_name }}
# The workflow only runs for pull requests to main; lint.yml uses the same constant.
BASE_REF: origin/main
SELECTED: ${{ needs.select.outputs.scenarios }}
# Empty outside a dispatch, which the run script reads as its default.
MOLECULE_LANES: ${{ inputs.lanes }}
run: |
# The selector comes from the base branch, so a pull request cannot edit the rules it is
# judged by (lint.yml does the same for check_bot_pr_diff.py); the first pull request that
# adds it has no base copy yet and uses its own.
sel=scripts/select_molecule_scenarios.py
if git cat-file -e "$BASE_REF:$sel" 2>/dev/null; then
sel_dir="$(mktemp -d)"
trap 'rm -rf "$sel_dir"' EXIT
git show "$BASE_REF:$sel" > "$sel_dir/select.py"
sel="$sel_dir/select.py"
else
echo "::notice::no base copy of $sel; running this checkout's copy"
fi
selected="$(python3 -I "$sel" "$BASE_REF")" || exit 1
# As the runner user, with the socket's group, so nothing in the job tree is left root-owned.
# HOME (ansible's temp and caches) is in the job tree; a mounted passwd entry points the user
# at it, because ansible's temp path is `~<user>/.ansible/tmp`. The driver's connection plugin
@@ -154,8 +219,8 @@ jobs:
-v /var/run/docker.sock:/var/run/docker.sock -v "$docker_cli:/usr/local/bin/docker:ro" \
-v "$ac_root:$ac_root" -v "$ac_root/passwd:/etc/passwd:ro" -w "$PWD" \
-e "AC_ROOT=$ac_root" -e "HOME=$ac_root/home" -e "USER=$(id -un)" \
-e MOLECULE_IMAGE -e MOLECULE_IMAGE_2604 -e KAMINO_RUN_ID \
"$CI_IMAGE" scripts/run_molecule_in_ci_image.sh <<< "$selected"
-e MOLECULE_IMAGE -e MOLECULE_IMAGE_2604 -e KAMINO_RUN_ID -e MOLECULE_LANES \
"$CONTROLLER_IMAGE" scripts/run_molecule_in_controller.sh <<< "$SELECTED"
# A cancelled run can leave its containers running when the docker client is killed.
- name: Remove this run's containers
@@ -168,3 +233,36 @@ jobs:
for id in $ids; do docker rm -f "$id" >/dev/null || true; done
left="$(docker ps -aq --filter "label=net.rkdr.mortis.molecule-run=$KAMINO_RUN_ID")"
if [ -n "$left" ]; then echo "::error::could not remove ${left//$'\n'/ }"; exit 1; fi
result:
name: Result
needs: [select, scenarios]
# always(): otherwise a failed select would skip this job, and Gitea counts a skipped job as
# passing. The guard is select's, so a fork pull request skips all three jobs alike and the run
# step below never sees a select skipped by it.
if: >-
always() &&
github.repository == 'mortis/kamino' &&
(github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository)
runs-on: kamino-docker
timeout-minutes: 5
# The controller pin again, so this job adds no pin of its own to bump.
container:
image: git.rkdr.net/mortis/molecule-controller:0.1.4@sha256:5658231afaff531161f02aef7a436ed875b1ad6c8d55a8d144e9763c71244420
steps:
- name: Check the select and scenarios jobs
env:
SELECT_RESULT: ${{ needs.select.result }}
SCENARIOS_RESULT: ${{ needs.scenarios.result }}
SELECTED: ${{ needs.select.outputs.scenarios }}
run: |
if [ "$SELECT_RESULT" != success ]; then
echo "::error::select ended as $SELECT_RESULT"; exit 1
fi
# A skip is a pass only for select's `none`: an empty output means it was lost.
if [ "$SCENARIOS_RESULT" = skipped ] && [ "$SELECTED" = none ]; then
echo "No scenario selected."
elif [ "$SCENARIOS_RESULT" != success ]; then
echo "::error::scenarios ended as $SCENARIOS_RESULT"; exit 1
fi
+28 -20
View File
@@ -5,18 +5,21 @@ name: Renovate
# The credential is the token of a Kamino-only bot user, held as
# the repository secret RENOVATE_BOT_TOKEN (not an org secret: only image.yml may reference those).
# The job token cannot be used: Renovate filters every pull request lookup by its own username,
# which is the virtual user gitea-actions with the job token, and Gitea answers 400 "user does not
# exist" (dry run 2445). No GitHub token exists (no RENOVATE_GITHUB_COM_TOKEN): the github-tags
# datasource then skips every pre-commit hook (skipReason github-token-required, dry run 3880), and
# unauthenticated GitHub API lookups are refused at once (403 rate limit). The hooks are looked up
# with git ls-remote instead (renovate.json, packageRule overrideDatasource git-tags), which needs
# RENOVATE_GITHUB_TOKEN_WARN=false below: the token check runs before package rules apply.
# which is the virtual user gitea-actions with the job token, and Gitea refuses that user.
# No GitHub token exists, so the pre-commit hooks are looked up with git ls-remote instead
# (renovate.json, git-tags), which needs RENOVATE_GITHUB_TOKEN_WARN=false below.
#
# Dry run: Actions > Renovate > Run workflow, dry_run=true (the default for a manual run), then
# read the debug log. The schedule runs live, and so does a successful Images run's completion, so
# the pin pull request for a new image version opens within minutes of its push. Gitea starts a
# workflow_run only for a run a person triggered, and its event carries no input or credential.
# read the debug log. Every other trigger runs live: a push to main rebases the next bot pull
# request, and an Images run's completion opens the pin pull request for a new image version.
# Gitea starts a workflow_run only for a run a person triggered, and its event carries no input
# or credential.
on: # yamllint disable-line rule:truthy
# Only one bot pull request merges per run when main must be up to date; a run after each merge
# rebases the next one.
push:
branches:
- main
# Images runs only on main (push, dispatch), and this job reads nothing from its run but the conclusion.
workflow_run: # zizmor: ignore[dangerous-triggers]
workflows: [Images]
@@ -50,15 +53,17 @@ jobs:
(github.repository == 'mortis/kamino' || github.repository == 'Mortis/Kamino') &&
(github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success')
runs-on: kamino-docker
timeout-minutes: 30
# A run takes seconds to about two minutes.
timeout-minutes: 10
# Docker Hub image, pinned by digest. The -full flavour ships python3 for the report check
# below and pip-compile for lock refreshes. Hand-bumped: renovate.json
# disables updates for this file. The image sets RENOVATE_BINARY_SOURCE=global, so pip-compile
# runs on the image's own python (3.14.8 in 44.161.0) and ignores the Python that Renovate
# reads from the lock header: that python's minor version must equal .python-version, or a lock
# refresh rewrites the header (check_image_versions.py pins then fails the pull request). When
# bumping this image, check its python first; RENOVATE_BINARY_SOURCE=install would make Renovate
# install the header's python, but it also downloads tools at run time (pip-tools included).
# below and pip-compile for lock refreshes. Renovate proposes its own bump weekly, never
# automerged (renovate.json), and moves lint.yml's copy of this pin in the same pull request.
# The image sets RENOVATE_BINARY_SOURCE=global, so pip-compile runs on the image's own python
# and ignores the Python that Renovate reads from the lock header: that python's minor version
# must equal .python-version, or a lock refresh rewrites the header (check_image_versions.py
# pins then fails the pull request). Check the image's python before merging a bump;
# RENOVATE_BINARY_SOURCE=install would make Renovate install the header's python, but it also
# downloads tools at run time (pip-tools included).
container:
image: renovate/renovate:44.161.0-full@sha256:ddbf02e44b542343c9df696b88fd953f04cc3ee5f771221805ff8efb26595416
steps:
@@ -74,14 +79,17 @@ jobs:
# No GitHub token exists, and the hooks go through git-tags (see the header). Without this
# Renovate marks every github-tags dependency as skipped before the package rule applies.
RENOVATE_GITHUB_TOKEN_WARN: "false"
# Docker Hub refuses anonymous paging past page 10; at more pages renovate/renovate gets
# no release timestamps, so its minimumReleaseAge would not apply.
RENOVATE_DOCKER_MAX_PAGES: "10"
# Renovate exits 0 when a repository run fails (e.g. the clone): with this it exits with
# an error-specific code instead (7 for an external host error such as a failed clone).
RENOVATE_EXIT_CODE_FOR_ERRORS: "true"
# The JSON report is checked after the run (see below).
RENOVATE_REPORT_TYPE: file
LOG_LEVEL: ${{ github.event_name == 'workflow_dispatch' && 'debug' || 'info' }}
# Fail safe: only the schedule and workflow_run are live. A manual dispatch is a dry run unless
# the input is exactly the string "false" (an empty input from an API or CLI dispatch stays one).
# Fail safe: a manual dispatch is a dry run unless the input is exactly the string "false"
# (an empty input from an API or CLI dispatch stays one); every other trigger is live.
DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run != 'false' && 'true' || 'false' }}
run: |
if [ -z "$RENOVATE_TOKEN" ]; then
@@ -90,7 +98,7 @@ jobs:
fi
# Git over HTTPS with the bot token. Renovate's own rewrite puts the token in the URL
# (https://<token>@host/...), which git drops when the server redirects, and Gitea
# redirected the clone (dry run 2439). The header is sent on every request to the host,
# redirects the clone. The header is sent on every request to the host,
# as lint.yml does with its token. Renovate does not pass GIT_CONFIG_* from its environment to git
# (only an allowlist, util/exec/env.js), but it does pass HOME, so a global git config
# is the path that reaches its git children. The token is read from the environment.
+3 -1
View File
@@ -1,6 +1,7 @@
# Built collection archives and local tooling
*.tar.gz
/.venv/
/.venv-dev/
/venv/
__pycache__/
*.pyc
@@ -13,10 +14,11 @@ vault-pass*
gitleaks-report.json
# galaxy-importer output
importer_result.json
# APM: apm_modules/ is the dependency cache. Deployed skills and agents stay out
# APM: apm_modules/ is the dependency cache. Deployed skills, agents and commands stay out
# while their source is private; deployed hooks are committed for review.
apm_modules/
.claude/skills/
.claude/agents/
.claude/commands/
# Claude Code: personal settings and allowlists, never shared
.claude/settings.local.json
+23
View File
@@ -49,6 +49,8 @@ repos:
hooks:
- id: check-toml
stages: ['pre-commit']
- id: check-json
stages: ['pre-commit']
- id: check-merge-conflict
stages: ['pre-commit']
@@ -114,6 +116,27 @@ repos:
require_serial: true
stages: ['pre-push']
# Pre-push only: the suite takes minutes. Lint runs it by id. The uncreatable GIT_DIR makes a
# git fixture that keeps the caller's GIT_* fail instead of writing to this repository.
- id: script-tests
name: A script change passes its tests in tests/scripts (scripts/AGENTS.md)
description: python3 -m unittest discover -s tests/scripts
entry: env GIT_DIR=/dev/null/not-a-repo python3 -m unittest discover -s tests/scripts
language: system
files: ^(scripts/|tests/scripts/|roles/[^/]+/meta/)
pass_filenames: false
stages: ['pre-push']
# always_run: its inputs span workflows, Dockerfiles and docs/images, and it fails on a missing one.
- id: check-image-pins
name: Image pins name an image of the image.yml matrix, which has its job image, labels and docs (images/AGENTS.md)
description: python3 scripts/check_image_versions.py pins
entry: python3 scripts/check_image_versions.py pins
language: system
pass_filenames: false
always_run: true
stages: ['pre-commit']
# SECURITY.md's accepted risks rest on the Collection shipping roles only. It sits before
# ansible-lint, whose fail_fast would otherwise hide this message.
- id: refuse-plugins
+1
View File
@@ -3,6 +3,7 @@ extends: default
ignore: |
.venv/**
.venv-dev/**
apm_modules/**
# Generated by apm install; its list indentation fails the rules below.
apm.lock.yaml
+5 -3
View File
@@ -59,7 +59,8 @@ held: by a control (a named hook or check), by review, or aspirational (checked
Lint re-runs the commit-stage hooks, the commit-msg check and gitleaks).
- `pre-commit run --all-files`: the commit-stage hooks on every file.
- `python3 -m unittest discover -s tests/scripts`: when a script changed.
- `git push` runs `ansible-test sanity` on HEAD (the pre-push hook).
- `git push` runs `ansible-test sanity` on HEAD, and the script tests when `scripts/`, `tests/scripts/`
or a role's `meta/` changed (the pre-push hooks).
- Molecule runs only in CI.
## Repository structure
@@ -107,5 +108,6 @@ renovate.json dependency automation
- Changing a workflow: read [.gitea/workflows/AGENTS.md](.gitea/workflows/AGENTS.md) first.
- Changing an image or an image-smoke scenario: read [images/AGENTS.md](images/AGENTS.md) first.
- Before writing an ADR: read [docs/adr/AGENTS.md](docs/adr/AGENTS.md) first.
- Before changing `renovate.json`: read its rule descriptions, and test with `renovate --platform=local`
at the version in `.gitea/workflows/renovate.yml`.
- Before changing `renovate.json`: read its rule descriptions. Lint's `renovate-config` job checks
its syntax; test a behaviour change with `renovate --platform=local` at the version in
`.gitea/workflows/renovate.yml`.
+49
View File
@@ -4,6 +4,55 @@ mortis.kamino Release Notes
.. contents:: Topics
v3.5.0
======
Minor Changes
-------------
- ufw - New input ``ufw_mask_nftables`` (default ``true``) and tag ``ufw_nftables``. Set the input to ``false`` on a host that loads its own ruleset through ``nftables.service``; the role never unmasks the unit.
Bugfixes
--------
- ufw - An upgrade of the ``nftables`` package no longer deletes the firewall rules on hosts where ``nftables.service`` is enabled. The package's postinst restarts that unit, whose stock ``/etc/nftables.conf`` begins with ``flush ruleset``, so the rules ufw and Docker loaded were gone until they reloaded. The role now masks ``nftables.service`` without stopping it whenever ``ufw_enabled`` is true, also when the unit or the package is absent, so the first run reports ``changed`` once. A host that loads its own ruleset through ``nftables.service`` (NAT tables or sets, for example) would lose it at the next reboot without a warning, because a masked unit does not start: set ``ufw_mask_nftables: false`` on such a host before upgrading.
v3.4.0
======
Minor Changes
-------------
- system_baseline - A name in ``system_baseline_sysctl_hardening`` may contain ``*``, which sets the key on every interface.
- system_baseline - New input ``system_baseline_sysctl_file``, the path of the drop-in that persists the sysctl hardening.
Security Fixes
--------------
- system_baseline - Every profile now refuses ICMP redirects on every interface, over IPv4 and IPv6. Before, only ``net.ipv4.conf.all`` was set, so a host that does not forward still accepted them on its interfaces.
Bugfixes
--------
- system_baseline - The sysctl hardening survives a reboot on Debian 13, where ``systemd-sysctl`` no longer reads ``/etc/sysctl.conf``. The role now writes its values to ``/etc/sysctl.d/99-zz-system-baseline.conf`` and removes its keys from ``/etc/sysctl.conf``, so the first run reports ``changed`` once.
v3.3.0
======
Minor Changes
-------------
- docker - New input ``docker_keyring_checksum``: the Docker APT key is verified against a pinned sha256, and a changed key fails the install until a person has checked it and updated the hash. Set ``docker_keyring_checksum`` too when ``docker_gpg_url`` is overridden.
- nfs_client - New role. Installs ``nfs-common`` and manages NFS mount entries in ``/etc/fstab`` from ``nfs_client_mounts`` (``src``, ``path``, optional ``opts`` and ``state`` ``present`` or ``absent``), with ``nfs_client_default_opts`` (default ``_netdev,nofail``) for an entry that sets none. It creates each mount point without owner, group or mode, writes only the fstab line, never mounts or unmounts, and reloads systemd after a change. An ``absent`` entry loses its line and nothing else. Declares Ubuntu noble and resolute; the molecule scenario never mounts a share.
- pve_vm - New role. Clones a Proxmox VE QEMU VM from a template through the Proxmox API (``community.proxmox``), sets its cloud-init user, SSH keys and network, updates an existing VM only on detected drift, grows its boot disk, applies the power state, waits for SSH and cloud-init and (with ``pve_vm_allow_destroy``) deletes it. It never sets a cloud-init password and deletes one stored on the VM. Only ``pve_vm_exists`` is set for later plays. The input checks run under ``tags: always``, so a tag-filtered run also needs ``pve_vm_api_user`` and ``pve_vm_api_token_secret`` (and ``pve_vm_disk_size`` while ``pve_vm_manage_disk`` is true). Declares Ubuntu noble and resolute guests; the molecule scenario covers the input validation and the drift detection, not the API lifecycle.
- traefik - The prerequisites install refreshes the APT cache only when it is older than an hour; before, every run refreshed it. A consumer who adds an APT source just before the role must refresh the cache first.
Bugfixes
--------
- fail2ban - ``--check`` no longer fails on a host where fail2ban is not installed yet, through either entry point; the preview reports the install and skips the configuration, service and jail tasks.
- ufw - ``--check`` no longer fails on a host where ufw is not installed yet; the preview reports the install and skips the tasks that need the ``ufw`` binary.
v3.2.0
======
+2
View File
@@ -34,4 +34,6 @@ GLOSSARY\\.md @Defame1297
\\.claude/.* @Defame1297
apm\\.yml @Defame1297
apm\\.lock\\.yaml @Defame1297
pyproject\\.toml @Defame1297
uv\\.lock @Defame1297
\\.mcp\\.json @Defame1297
+4 -6
View File
@@ -2,10 +2,10 @@
An Ansible Collection of reusable, hardened roles for a self-hosted home lab:
`cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`,
`pihole`, `pve_lxc`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`, `ufw` and
`user_management`, plus the internal `_binary_update`. Roles still to come are listed under [Roadmap](#roadmap).
`nfs_client`, `openbao`, `pihole`, `pve_lxc`, `pve_vm`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`,
`ufw` and `user_management`, plus the internal `_binary_update`. Roles still to come are listed under [Roadmap](#roadmap).
Status: roles arrive in waves. Release 3.2.0 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `pihole`, `pve_lxc`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`, `ufw` and `user_management` roles (and the internal `_binary_update`, which `cloudflared`, `gitea`, `gitea_runner` and `traefik` call).
Status: roles arrive in waves. Release 3.5.0 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `nfs_client`, `pihole`, `pve_lxc`, `pve_vm`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`, `ufw` and `user_management` roles (and the internal `_binary_update`, which `cloudflared`, `gitea`, `gitea_runner` and `traefik` call). `openbao` is on `main` for the next release.
## Consuming
@@ -17,7 +17,7 @@ name (FQCN) only, `mortis.kamino.<role>`:
collections:
- name: https://git.rkdr.net/mortis/kamino.git
type: git
version: v3.2.0
version: v3.5.0
```
Its dependencies (`community.general`, `ansible.posix`, `community.proxmox`) are declared in `galaxy.yml`, so
@@ -41,9 +41,7 @@ when its own prerequisites (tests, a safe cutover wherever the role already runs
Still to come:
- Wave 2: `pve_vm`.
- Wave 3: `rke2`, `proxmox_host`.
- Later, wave not yet assigned: `opnsense`, `proxmox_firewall`.
Will not be extracted (they serve one lab or install that lab's own tool pins):
`k8s_manage`, `k8s_localhost`, `k8s_lint_tools`, `minecraft_server`, `dragonwilds_server`,
+22 -9
View File
@@ -113,13 +113,26 @@ reduction. A later decision that accepts a risk adds an entry here.
### Pin bumps first behaviour-tested after they merge
- **Risk:** Lint, Build and Molecule install a pull request's pins when they differ from the
image, so a pull request that changes an image input is tested on its own pins. But most pin
bumps select no Molecule scenario: every Python pin except an ansible-core minor bump, which
edits `meta/runtime.yml`. Such a bump is first behaviour-tested after it has merged, by the
pull request that moves the workflows to the new `ci` image.
- **Why accepted:** that pull request runs every scenario before the new image is used,
and running every scenario on every Python pin bump would cost about 10 minutes each.
- **Trigger:** the pull request that moves the workflows to a new `ci` image fails Molecule
because of a bumped pin.
- **Risk:** Lint, Build and Molecule install a pull request's pins when they differ from their
image, and a change to `requirements-molecule.*`, `requirements.yml` or
`extensions/molecule/requirements.yml` selects every Molecule scenario, so Molecule's own tools
and collections are tested before they merge. A change to the `molecule-controller` Dockerfile
(its base image, uv or Python) selects none, because `images/` is on the selector's IGNORED
list; it is first behaviour-tested after it has merged, by the pull request that moves
`molecule.yml` to the new `molecule-controller` version. `requirements-dev.*` pins only Lint's
and Build's tools, which no scenario runs.
- **Why accepted:** that pull request runs every scenario before the new image is used, and the
Dockerfile's self-checks fail the build on `main` before any pin moves.
- **Trigger:** the pull request that moves `molecule.yml` to a new `molecule-controller` image
fails Molecule because of a changed image input.
- **Planned reduction:** none for now.
### Unseal keys in vaulted inventory
- **Risk:** the planned `openbao` role can unseal a Shamir-sealed OpenBao from unseal keys the
consumer keeps in vaulted inventory (`openbao_unseal_keys`), so whoever holds the Ansible
vault password can unseal alone. This weakens the split knowledge Shamir's scheme gives.
- **Why accepted:** it keeps restarts and updates unattended, and the Collection already keeps
secrets in vaulted inventory. The keys are optional: without them the role leaves the node
sealed and warns.
- **Trigger and planned reduction:** auto-unseal, tracked in #529.
+227 -28
View File
@@ -1,11 +1,13 @@
lockfile_version: '1'
generated_at: '2026-11-22T17:33:38.751913+00:00'
apm_version: 0.36.1
lockfile_version: '4'
generated_at: '2026-12-04T21:33:07.493501+00:00'
apm_version: 0.39.3
manifest_targets:
- claude
dependencies:
- repo_url: Mortis/Holocron
name: git
host: git.rkdr.net
resolved_commit: 67803f84f21bb4bae91144c46d39a0fae6754ef5
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516
version: 1.3.9
virtual_path: plugins/git
is_virtual: true
@@ -133,7 +135,11 @@ dependencies:
.claude/skills/pc-run/references/failure-patterns.md: sha256:c760a933a937d5c33206f918089a49afd8335de3854093f5c32494e71019378c
.claude/skills/pc-run/references/install.md: sha256:71ec08d58b8797b09574a827ea06d2c9656e3394d40534860fdaf333f5c19070
.claude/skills/pc-run/references/sources.md: sha256:ed47302b3fa003ca203cf6677905032f687ff5e07e3d551593865116d9ce11f1
content_hash: sha256:3fe59051e46ae66e09a62b121342e619720f3a669f9c25b2c1ed7bf7a537f646
content_hash: sha256:db45863914da8edc054526af825a3c2354584340f1e46d123b407053587cf05a
package_targets:
- claude
- codex
- copilot
declared_license: MIT
carried_licenses:
- path: .apm/skills/git-branches/LICENSE
@@ -169,17 +175,75 @@ dependencies:
- repo_url: Mortis/Holocron
name: mattpocock
host: git.rkdr.net
resolved_commit: 67803f84f21bb4bae91144c46d39a0fae6754ef5
version: 0.4.0
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516
version: 0.5.0
virtual_path: plugins/mattpocock
is_virtual: true
package_type: apm_package
content_hash: sha256:91649428cf594bd911beb982282f92f7b732908db649d484e420c0ba1d6b6b7b
content_hash: sha256:dc4bda559aea7d4001b9491d781ffe073e00e339d6a4db70cd4922b365e588ef
package_targets:
- claude
- codex
- copilot
declared_license: MIT
carried_licenses:
- path: LICENSE
source: LICENSE
hash: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
- repo_url: Mortis/Holocron
name: plan
host: git.rkdr.net
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516
version: 0.4.0
virtual_path: plugins/plan
is_virtual: true
package_type: apm_package
deployed_files:
- .claude/agents/plan-gate.md
- .claude/agents/plan-recorder.md
- .claude/agents/plan-researcher.md
- .claude/agents/plan-validator.md
- .claude/commands/next.md
- .claude/commands/plan.md
- .claude/commands/ship.md
- .claude/skills/plan-track
- .claude/skills/plan-track/LICENSE
- .claude/skills/plan-track/SKILL.md
- .claude/skills/research-docs
- .claude/skills/research-docs/LICENSE
- .claude/skills/research-docs/SKILL.md
- .claude/skills/research-docs/references/file-format.md
- .claude/skills/research-docs/references/topics.md
deployed_file_hashes:
.claude/agents/plan-gate.md: sha256:c1c89bae5dd59de122603c2caf1907e8eaf38244cf007dd1942df8cea616a8ca
.claude/agents/plan-recorder.md: sha256:a5283798a574900d4b78dbbbcdf78b9ae0997e8496f5971f0085cfad87c1fea0
.claude/agents/plan-researcher.md: sha256:eda0457d2007cf0c6cb4745383a0369d03a26ed252d7251a1f5250003a89ef85
.claude/agents/plan-validator.md: sha256:a56e7a710fd9e7a9dd9e2601f1f2701b98fd229f3e014bba4bda4dfe5977ecae
.claude/commands/next.md: sha256:8e16330ec0f16dbbc86d44fca94699e33e393c9a8af76f45d3f3bd2b9c8bfa1f
.claude/commands/plan.md: sha256:c5216fb6c443ca9de45ad5cb69351a4e3193bcb5ffca4d59567495fcb5d7ec71
.claude/commands/ship.md: sha256:c3c9f516b9b01cb7f879d7d331187b12f697f73104b0eafdc813d64b73091284
.claude/skills/plan-track/LICENSE: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
.claude/skills/plan-track/SKILL.md: sha256:fee5062c8c63b49f66368b290c8ebd8cfff744137670d0c037da1a49c455c047
.claude/skills/research-docs/LICENSE: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
.claude/skills/research-docs/SKILL.md: sha256:93023786f71dac5a77e60eca0be09e6510dfd45509f5e8cbc755395fe8774539
.claude/skills/research-docs/references/file-format.md: sha256:29d5583beaa531d26895c54def112039730490c312401648a6bdb7dd5278fb3c
.claude/skills/research-docs/references/topics.md: sha256:757abb7b6be44c3d3c0dd1f4818a344e08877810d36bf8be60ea7189cba8d12f
content_hash: sha256:7f7e9f5e4a2e6be218b9dc157f9f4a069457500c5ef78ff2ad137c8af7e98e8f
package_targets:
- claude
- codex
- copilot
declared_license: MIT
carried_licenses:
- path: .apm/skills/plan-track/LICENSE
source: LICENSE
hash: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
- path: .apm/skills/research-docs/LICENSE
source: LICENSE
hash: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
- path: LICENSE
source: LICENSE
hash: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
- repo_url: mattpocock/skills
name: code-review
host: github.com
@@ -200,7 +264,7 @@ dependencies:
.claude/skills/code-review/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/code-review/SKILL.md: sha256:9c921a8d88138a41401d8897ca1bb852088ab1b7b605cdd04edc13e3e8aab6dd
.claude/skills/code-review/agents/openai.yaml: sha256:8229ca854e11dc8e6aef2131ee03f31fb1561cf905fab9ccc325180cf3331352
content_hash: sha256:cf233fee7275f8d00b5d2f11da948738531eee9ae7cc8d5b13f815f39fef1c9f
content_hash: sha256:e14d83d727f514a484858272f5a45d83d42ba7f84c078758a0341ffe6e8832e5
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -229,7 +293,7 @@ dependencies:
.claude/skills/codebase-design/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/codebase-design/SKILL.md: sha256:2c20617f87ec8af6a434859f381b2f061a69b530444e74eb39e78bb016a6d1e2
.claude/skills/codebase-design/agents/openai.yaml: sha256:edebc9e4fcfe102114012575eaa9600b9b5fd08c311664f389c36e7bc717740f
content_hash: sha256:667012327c54634ddc0fea22ccdf5d43c797b97038a6d4aadc09de29d50d0185
content_hash: sha256:0eece2d6148eede9eebea3989944ea6215b809204352ca82a3a83203b79b78b4
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -256,7 +320,7 @@ dependencies:
.claude/skills/diagnosing-bugs/SKILL.md: sha256:849198df88cdb65fd0d97236604c1fca7ff2f22d2f705f9724a800d0266b118d
.claude/skills/diagnosing-bugs/agents/openai.yaml: sha256:3e430dbe4334a87597488c060cb3dc3786bb00c9182877d6f5ec41f62490e90b
.claude/skills/diagnosing-bugs/scripts/hitl-loop.template.sh: sha256:35103539fc36873eea36074769ad454f9379d6fc8b2dc0e26ce987fd3bfe5503
content_hash: sha256:9b24ecaf15dd8d5594f973c590c6904d90dd3b50f8853fefd2341b7fd4a156bf
content_hash: sha256:eb364bd413d5b65ec3360466dfc8fe36a2f6c6de6a2c84a3b39bbf60fdbc120d
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -285,7 +349,7 @@ dependencies:
.claude/skills/domain-modeling/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/domain-modeling/SKILL.md: sha256:7b925d7b1e341a2eeae33ad68a8a8c0ab889a38ddd22a7598e4c240e5a7556a3
.claude/skills/domain-modeling/agents/openai.yaml: sha256:f6bf2aa996c6e6f53fdd0708e18a0d16a56aed8322cca59fedbe3c0d2c75f06b
content_hash: sha256:467f5e92529c2a4637440dce99841814b0864a8528714188ec91b78d900df540
content_hash: sha256:ab7acbca5aaf6e976caef1ccd1c14bac9459702f5b8e9d6d96e5a8ca8e3c7ee9
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -310,7 +374,7 @@ dependencies:
.claude/skills/grill-with-docs/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/grill-with-docs/SKILL.md: sha256:7de372c13488f1ee96cc11cd8907b56b6809cc93eef776eeddd37de6b6cbe3fe
.claude/skills/grill-with-docs/agents/openai.yaml: sha256:94cd0ab161fb468a836349f5ed482ba58ce8e709a05c57ce533d739dbd35cca9
content_hash: sha256:9e8f732b806727978f1ad8d2fb9ce4467da68f7482d63c4bb5a73f2b1a0c797c
content_hash: sha256:8973c3d9463fc9dd708adc36a0f97b01aab4ae7d6a0217c2aa0f0a7ef206b83c
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -335,7 +399,7 @@ dependencies:
.claude/skills/implement/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/implement/SKILL.md: sha256:483bdc4ccf4ac31d86ac7beeaa0d0db80313e71e120bb8c59b3196ae5decd53d
.claude/skills/implement/agents/openai.yaml: sha256:8970a8596ade0c28ab427f41a4ea242d6bdf6186c59ebf55e1238dbecaab79dc
content_hash: sha256:c7c4d38c8dd9a05fcad046f79aeb275c7f31a87d7bceb4f3a133f125e6f4bfbb
content_hash: sha256:3465060b2e4776f9e791293720a66869f265c83f9a5323e3ab0115f0558cc65b
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -360,7 +424,7 @@ dependencies:
.claude/skills/implement-spec/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/implement-spec/SKILL.md: sha256:8d8300f7f12325dbfc99cad124a4bcc96ac0d02d0b2d73dfb348e9262afacfc4
.claude/skills/implement-spec/agents/openai.yaml: sha256:fd41efb42c60c96320d6531be7e4bf15cbf5518cd652d57dff27ccffa46988e9
content_hash: sha256:254a8c69719a6644fc462085569251b3fc8365770428738fc7bbb5398a3aa1fb
content_hash: sha256:e4d15f81cc620dc479ffe852de453e47090f79edde7dcfe912de64018b183256
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -387,7 +451,7 @@ dependencies:
.claude/skills/improve-codebase-architecture/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/improve-codebase-architecture/SKILL.md: sha256:35b03a3db61e0f5aa333ea59b54963e45a3d2ace6649b2ef4f9576603e2582a6
.claude/skills/improve-codebase-architecture/agents/openai.yaml: sha256:c8cb20f68ebf0edb4e497bc11ae5fcaa196004e661cd189015b04f4109ced7f1
content_hash: sha256:499043a54914592b8d40160e0ecae3787452869aed4fce50c3e574c1926329d8
content_hash: sha256:3c72a8a3852beda9b28b6a14ce665506ea57a59a76568cf826873ec17d798c5a
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -416,7 +480,7 @@ dependencies:
.claude/skills/prototype/SKILL.md: sha256:714de632d116bb73f65cdb5a882db15b9369a6713b9a47c0fad827848f0bfbe3
.claude/skills/prototype/UI.md: sha256:723211e878acbc7b6ff09755263f3295cde724ba902ff0064da41eed51d45ad3
.claude/skills/prototype/agents/openai.yaml: sha256:5af65e43ab41a350436697b81e27b7f848d36782043b73c322bb2c9fa9cc55dc
content_hash: sha256:090ae76b97353255ca29be783d69bcc1029e0195bdf43118d0b6f7ea9acc89b0
content_hash: sha256:6890ef757ada4b0b571e74c28b69fda697ba2e18f564860f4c9373cbbe50535c
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -441,7 +505,7 @@ dependencies:
.claude/skills/research/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/research/SKILL.md: sha256:1f629e18ab899412683bc6a1c4efb4339999e27c2fdac328f26ee10a8c031d33
.claude/skills/research/agents/openai.yaml: sha256:9b4c470d63221c1f68f22df70b83e2f12401b317babe0d1b7b5f24a974474d0d
content_hash: sha256:34a7c3808288b05ea422affe978ee4d301239817d822f4f50687f1957c17cf9a
content_hash: sha256:4a52e8e17a984526a0f3f25bc138097b4ca8b5f15e35b7c318fa024c6b04e0fd
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -466,7 +530,7 @@ dependencies:
.claude/skills/retro/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/retro/SKILL.md: sha256:33fbc28568e3146f20fd908b12998bc0ab30aa4f4c87288199a40793efa94696
.claude/skills/retro/agents/openai.yaml: sha256:cb6fb9d7e6b4be5975f41f6def1dd00a1255bad5d9b02696b124c924a8b8745c
content_hash: sha256:e13af4f6dfecd777815adde57811398dc59d0118692a70d996968b59e3d13db8
content_hash: sha256:4d42bb16dc68325fe941153ff3341f8be8f770121479bc41921d477d27a45ad5
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -501,7 +565,7 @@ dependencies:
.claude/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md: sha256:947602d33a80f98f939fb990995b8f95a3459b114b919c4221d08bd75d7cffe0
.claude/skills/setup-matt-pocock-skills/issue-tracker-local.md: sha256:7dcda20a2eb4bdc89b95d1143423c0691309921cadae3132e6424f371030506e
.claude/skills/setup-matt-pocock-skills/triage-labels.md: sha256:ae512af838c78b8750471c42cd2b20fa32319553e61d84c9a23d171b40ce14aa
content_hash: sha256:f8f92182cd38f90a66bc50b9408da5de83cbda1e4abaffbb8a7428beabcf6f5d
content_hash: sha256:fb96a61c2698a9f4299778861547b92f11719d033d1cd5dea7e95a98fe8e438a
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -530,7 +594,7 @@ dependencies:
.claude/skills/tdd/agents/openai.yaml: sha256:ea6f01cf1b8c06a4b0f5b649d74b1b8ce8685e72af1b38d70d877693e092af0b
.claude/skills/tdd/mocking.md: sha256:3ceb807fdf4a47d6a93d4d9a891e5ba6d362a6247bd08adc451feebfc17361ef
.claude/skills/tdd/tests.md: sha256:859f9e592c188fda4fc7277dd180e4ce9c7a2e13f6efe1f6f29eccc9d28c106a
content_hash: sha256:ef3cbb31aa8b1f8a3f9b6a042c230dc9312019e84cdc6337f60890f177fd5764
content_hash: sha256:cb510a538834fd446bae7cff1e6e46c4b625524d162bfc56c6d64486115a48e3
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -555,7 +619,7 @@ dependencies:
.claude/skills/to-spec/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/to-spec/SKILL.md: sha256:43ad9cf318e5e7d3d1fa360253a37021796dc87a0c2e595ad262661a10f85088
.claude/skills/to-spec/agents/openai.yaml: sha256:1c5b4d1e3d8e52287ef19cc2742fdbbfae1914ac75d33af3e4c8174f08cc55bb
content_hash: sha256:cc5d718c2f810f4c9b081ea888af3ad3eb73bb8db6fc9fa92c3b1729637b7d56
content_hash: sha256:7c0ac5892441627cbe76e8587d47cbe3adedc61f779df5c9f82d473588503330
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -580,7 +644,7 @@ dependencies:
.claude/skills/to-tickets/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/to-tickets/SKILL.md: sha256:56ec23c5b2782785d4e65bff9e315b6d3aeb4ef977c174a219e99489fada1995
.claude/skills/to-tickets/agents/openai.yaml: sha256:21bc6215fffcd7614e9f772bb1760e87cc5fc7dcc707e7d282bc9414267a6090
content_hash: sha256:7cca8cd2afe55d1cd8bfc986df6a4cb4ad54411452575200804494b03c871ede
content_hash: sha256:7e0aa33c2d0ccd99d92a7b45405243f7a948425e161723d4535f178ee0af3d59
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -609,7 +673,7 @@ dependencies:
.claude/skills/triage/OUT-OF-SCOPE.md: sha256:1fbf9b432130c6380aa65813b55553cfda150309b27c595e183f8e335b8a190d
.claude/skills/triage/SKILL.md: sha256:917b0baf74be583e74f110857ed45df2766617f75c00baf61fd136d7af515edf
.claude/skills/triage/agents/openai.yaml: sha256:2e683717720cf456d165d0bb1a68bb600d0b6a8ccb61841c172e50d26f95351c
content_hash: sha256:bf09f37fa24ab64324497772a25a1e0a9b22d06ccb238fefd0cfb12eee473c3d
content_hash: sha256:cc3930f2f501738b67c5d3397518d537ffaf252c679bded57b090f2d31de0a22
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -634,7 +698,7 @@ dependencies:
.claude/skills/wayfinder/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/wayfinder/SKILL.md: sha256:0c9fa96791aebf3b7d654cf35c6aadde97d81f57c17b07d13b27c14d9c46561f
.claude/skills/wayfinder/agents/openai.yaml: sha256:88bc81a11a6d52ac67aeaa76b8b619e387020d47c5133a4dd4927fd15c4ad073
content_hash: sha256:eec9b3ec0cd815b708670bf163384d257c7d1350ccb823f66043cbe138794298
content_hash: sha256:92acbe1ee44d0ecd91e8ff08d09d8d78dabf8f2d5fa56ef3d977db1cb2a5457a
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -659,7 +723,7 @@ dependencies:
.claude/skills/grill-me/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/grill-me/SKILL.md: sha256:caaf8b8de1684f96e26b28f3c29189db5c89cce4b73e1c93d86164f66ef88637
.claude/skills/grill-me/agents/openai.yaml: sha256:c061e39c3e0f9d865fb1b97556d485704af2a8a58f4b8221a8917a5c2074a32b
content_hash: sha256:fe33aaa8e8dcd606107b1bfe3109f257b4a7e0f4907afd6506b62ccfb73cd1d3
content_hash: sha256:eb2880386e9259f4ca51167f518c81cea969850d8f45bd8f79f579dcbbad902e
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -684,7 +748,7 @@ dependencies:
.claude/skills/grilling/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/grilling/SKILL.md: sha256:a146842ed93ca43d833550fa9adf02e58cb63c83fea9d4b4522995b82242d4e2
.claude/skills/grilling/agents/openai.yaml: sha256:1411d7df7d99b7e621a1ff8283c8133cc2464be63d064e52d8ce169c6800ee9b
content_hash: sha256:823f08ad33368a9626991e6782f7ae14b958e39ef8503f6bdb3b98a58d237a58
content_hash: sha256:e0e4918ef2675bf3bc0e48fa83c40446cd961c107afdf435cbc2daa774cb0efe
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -711,7 +775,7 @@ dependencies:
.claude/skills/writing-for-agents/SKILL-MECHANICS.md: sha256:c768e6307c7c10728c401c213f2c4ba71c542127eeb7ad2956aabd15a0fa0059
.claude/skills/writing-for-agents/SKILL.md: sha256:551adca942227b44192edba88acd4e8db911f0121ce58ad16944ccf6a896a74a
.claude/skills/writing-for-agents/agents/openai.yaml: sha256:eacb24b2a618cfb81dacb0416f4fdd75ddf3a8060f8ddb99aae1b1e301907e4b
content_hash: sha256:8365ebe1d0c343d3d46970526f30fcf7c5e0c5e49fd39a3c882977024626ff3c
content_hash: sha256:dfc57c19e0f7a7e9c371966d765700d74ecae7694377c095095ee94f6fd216b3
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -726,6 +790,69 @@ deployments:
- git.rkdr.net/Mortis/Holocron/plugins/git
active_owner: git.rkdr.net/Mortis/Holocron/plugins/git
content_hash: sha256:c9122bac28dc079efb041acc720dd097c62fdb49d9b1d9a62b15ac5ee6c47032
- kind: project-relative
target: claude
value: .claude/agents/plan-gate.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:c1c89bae5dd59de122603c2caf1907e8eaf38244cf007dd1942df8cea616a8ca
- kind: project-relative
target: claude
value: .claude/agents/plan-recorder.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:a5283798a574900d4b78dbbbcdf78b9ae0997e8496f5971f0085cfad87c1fea0
- kind: project-relative
target: claude
value: .claude/agents/plan-researcher.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:eda0457d2007cf0c6cb4745383a0369d03a26ed252d7251a1f5250003a89ef85
- kind: project-relative
target: claude
value: .claude/agents/plan-validator.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:a56e7a710fd9e7a9dd9e2601f1f2701b98fd229f3e014bba4bda4dfe5977ecae
- kind: project-relative
target: claude
value: .claude/commands/next.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:8e16330ec0f16dbbc86d44fca94699e33e393c9a8af76f45d3f3bd2b9c8bfa1f
- kind: project-relative
target: claude
value: .claude/commands/plan.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:c5216fb6c443ca9de45ad5cb69351a4e3193bcb5ffca4d59567495fcb5d7ec71
- kind: project-relative
target: claude
value: .claude/commands/ship.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:c3c9f516b9b01cb7f879d7d331187b12f697f73104b0eafdc813d64b73091284
- kind: project-relative
target: claude
value: .claude/skills/code-review
@@ -1716,6 +1843,33 @@ deployments:
- git.rkdr.net/Mortis/Holocron/plugins/git
active_owner: git.rkdr.net/Mortis/Holocron/plugins/git
content_hash: sha256:ed47302b3fa003ca203cf6677905032f687ff5e07e3d551593865116d9ce11f1
- kind: project-relative
target: claude
value: .claude/skills/plan-track
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: null
- kind: project-relative
target: claude
value: .claude/skills/plan-track/LICENSE
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
- kind: project-relative
target: claude
value: .claude/skills/plan-track/SKILL.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:fee5062c8c63b49f66368b290c8ebd8cfff744137670d0c037da1a49c455c047
- kind: project-relative
target: claude
value: .claude/skills/prototype
@@ -1779,6 +1933,51 @@ deployments:
- mattpocock/skills/skills/engineering/research
active_owner: mattpocock/skills/skills/engineering/research
content_hash: null
- kind: project-relative
target: claude
value: .claude/skills/research-docs
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: null
- kind: project-relative
target: claude
value: .claude/skills/research-docs/LICENSE
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
- kind: project-relative
target: claude
value: .claude/skills/research-docs/SKILL.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:93023786f71dac5a77e60eca0be09e6510dfd45509f5e8cbc755395fe8774539
- kind: project-relative
target: claude
value: .claude/skills/research-docs/references/file-format.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:29d5583beaa531d26895c54def112039730490c312401648a6bdb7dd5278fb3c
- kind: project-relative
target: claude
value: .claude/skills/research-docs/references/topics.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:757abb7b6be44c3d3c0dd1f4818a344e08877810d36bf8be60ea7189cba8d12f
- kind: project-relative
target: claude
value: .claude/skills/research/LICENSE
+4 -2
View File
@@ -3,8 +3,8 @@ version: 0.1.0
description: Ansible Collection mortis.kamino. Consumer-side apm manifest for holocron skills.
license: GPL-3.0-or-later
# git and mattpocock only (#104): bin and core are unused here, and gitea returns once it is
# rebuilt on the tea CLI.
# git, mattpocock and plan only (#104): bin and core are unused here, and gitea returns once it
# is rebuilt on the tea CLI.
# Hook primitives come from apm; no instruction primitive is deployed until the root AGENTS.md
# has a managed section. `apm approve` writes the executables.allow entry into this file, and it
@@ -17,4 +17,6 @@ dependencies:
path: plugins/git
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/mattpocock
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/plan
mcp: []
+9 -1
View File
@@ -31,6 +31,10 @@ objects:
description: Manage /etc/network/interfaces
name: network_interfaces
version_added: null
nfs_client:
description: Install the NFS client and manage NFS entries in /etc/fstab
name: nfs_client
version_added: null
pihole:
description: Install and configure Pi-hole from the upstream repository
name: pihole
@@ -39,6 +43,10 @@ objects:
description: Manage a Proxmox LXC container
name: pve_lxc
version_added: null
pve_vm:
description: Manage a Proxmox VE QEMU VM cloned from a template
name: pve_vm
version_added: null
sshd:
description: Write a hardened sshd drop-in
name: sshd
@@ -85,4 +93,4 @@ plugins:
strategy: {}
test: {}
vars: {}
version: 3.2.0
version: 3.5.0
+88
View File
@@ -532,3 +532,91 @@ releases:
- refusals-in-verify.yml
- traefik-release-url.yml
release_date: '2026-11-27'
3.3.0:
changes:
bugfixes:
- fail2ban - ``--check`` no longer fails on a host where fail2ban is not installed
yet, through either entry point; the preview reports the install and skips
the configuration, service and jail tasks.
- ufw - ``--check`` no longer fails on a host where ufw is not installed yet;
the preview reports the install and skips the tasks that need the ``ufw``
binary.
minor_changes:
- 'docker - New input ``docker_keyring_checksum``: the Docker APT key is verified
against a pinned sha256, and a changed key fails the install until a person
has checked it and updated the hash. Set ``docker_keyring_checksum`` too when
``docker_gpg_url`` is overridden.'
- nfs_client - New role. Installs ``nfs-common`` and manages NFS mount entries
in ``/etc/fstab`` from ``nfs_client_mounts`` (``src``, ``path``, optional
``opts`` and ``state`` ``present`` or ``absent``), with ``nfs_client_default_opts``
(default ``_netdev,nofail``) for an entry that sets none. It creates each
mount point without owner, group or mode, writes only the fstab line, never
mounts or unmounts, and reloads systemd after a change. An ``absent`` entry
loses its line and nothing else. Declares Ubuntu noble and resolute; the molecule
scenario never mounts a share.
- 'pve_vm - New role. Clones a Proxmox VE QEMU VM from a template through the
Proxmox API (``community.proxmox``), sets its cloud-init user, SSH keys and
network, updates an existing VM only on detected drift, grows its boot disk,
applies the power state, waits for SSH and cloud-init and (with ``pve_vm_allow_destroy``)
deletes it. It never sets a cloud-init password and deletes one stored on
the VM. Only ``pve_vm_exists`` is set for later plays. The input checks run
under ``tags: always``, so a tag-filtered run also needs ``pve_vm_api_user``
and ``pve_vm_api_token_secret`` (and ``pve_vm_disk_size`` while ``pve_vm_manage_disk``
is true). Declares Ubuntu noble and resolute guests; the molecule scenario
covers the input validation and the drift detection, not the API lifecycle.'
- traefik - The prerequisites install refreshes the APT cache only when it is
older than an hour; before, every run refreshed it. A consumer who adds an
APT source just before the role must refresh the cache first.
fragments:
- 402-nfs-client.yml
- 448-docker-keyring-checksum.yml
- 456-system-baseline-purge-batch.yml
- 458-traefik-apt-cache-valid-time.yml
- 478-ufw-fail2ban-check-mode.yml
- 482-pve-vm.yml
- system-baseline-internal-registers.yml
release_date: '2026-12-01'
3.4.0:
changes:
bugfixes:
- system_baseline - The sysctl hardening survives a reboot on Debian 13, where
``systemd-sysctl`` no longer reads ``/etc/sysctl.conf``. The role now writes
its values to ``/etc/sysctl.d/99-zz-system-baseline.conf`` and removes its
keys from ``/etc/sysctl.conf``, so the first run reports ``changed`` once.
minor_changes:
- system_baseline - A name in ``system_baseline_sysctl_hardening`` may contain
``*``, which sets the key on every interface.
- system_baseline - New input ``system_baseline_sysctl_file``, the path of the
drop-in that persists the sysctl hardening.
security_fixes:
- system_baseline - Every profile now refuses ICMP redirects on every interface,
over IPv4 and IPv6. Before, only ``net.ipv4.conf.all`` was set, so a host
that does not forward still accepted them on its interfaces.
fragments:
- 505-ufw-check-mode-probe.yml
- 510-system-baseline-sysctl-dropin.yml
- 510-system-baseline-sysctl-file.yml
- 511-system-baseline-icmp-redirects.yml
- 511-system-baseline-sysctl-wildcard.yml
release_date: '2026-12-03'
3.5.0:
changes:
bugfixes:
- 'ufw - An upgrade of the ``nftables`` package no longer deletes the firewall
rules on hosts where ``nftables.service`` is enabled. The package''s postinst
restarts that unit, whose stock ``/etc/nftables.conf`` begins with ``flush
ruleset``, so the rules ufw and Docker loaded were gone until they reloaded.
The role now masks ``nftables.service`` without stopping it whenever ``ufw_enabled``
is true, also when the unit or the package is absent, so the first run reports
``changed`` once. A host that loads its own ruleset through ``nftables.service``
(NAT tables or sets, for example) would lose it at the next reboot without
a warning, because a masked unit does not start: set ``ufw_mask_nftables:
false`` on such a host before upgrading.'
minor_changes:
- ufw - New input ``ufw_mask_nftables`` (default ``true``) and tag ``ufw_nftables``.
Set the input to ``false`` on a host that loads its own ruleset through ``nftables.service``;
the role never unmasks the unit.
fragments:
- ufw-mask-nftables-input.yml
- ufw-mask-nftables.yml
release_date: '2026-12-06'
+8
View File
@@ -0,0 +1,8 @@
---
minor_changes:
- >-
openbao - New role. Installs a single OpenBao server on integrated raft storage from the pinned release
tarball, checked against a sha256 pinned in the role defaults, with its own system user, data directory,
configuration and sandboxed systemd unit. The listener uses the certificate, key and CA files the consumer
supplies (required unless ``openbao_tls_disable`` is true, which warns). The role reads the seal status over TLS
on ``127.0.0.1`` and leaves a new server uninitialised and sealed.
@@ -12,7 +12,8 @@ and pin updates. The choice is hard to undo once every workflow pins an image.
- **We build our own images:** a `ci` image, and one Dockerfile per molecule image (one per Ubuntu
release, and later the Debian 13 one).
Molecule's controller image is added by [ADR 0003](0003-molecule-controller-image.md).
[ADR 0003](0003-molecule-controller-image.md) adds a `molecule-controller` image to this set,
which Molecule pins instead of `ci`.
- **The molecule images bake in everything except what a role installs itself.** The test
fixtures a scenario's `prepare.yml` needs are baked in. Packages a role installs are still
downloaded, because that install path is what the test exercises. A converge is not kept off
+4
View File
@@ -11,6 +11,10 @@ the author sees the change before it merges; aspirational means nothing checks i
- **Status is `accepted` or `superseded by NNNN`, nothing else.** A proposal lives in an issue or
a pull request and is never committed as "proposed". *Why:* a committed ADR is either in force
or replaced; a draft in the tree reads as a decision. *Held:* review.
- **When a later ADR changes part of an earlier one, the earlier one stays `accepted` and as
decided, except for one sentence beside that part naming the later ADR and what it changes;**
the later ADR names the earlier one in its Context. *Why:* neither status fits a partial change,
and a reader of the earlier ADR learns which part no longer holds and where it went. *Held:* review.
- **An ADR is accepted on the maintainer's approval of its pull request, which sets status
`accepted`.** *Why:* an ADR binds every contributor, so the maintainer decides it. *Held:*
control: the `CODEOWNERS` entry for `docs/adr/`, which requires the maintainer's code-owner
+4 -4
View File
@@ -56,10 +56,10 @@ Every secret the workflows in [.gitea/workflows/](../../.gitea/workflows/) refer
A checklist, not rules: what the repository and organisation settings should be. The maintainer
applies them and checks them against this list after any change.
- Branch protection on `main`: required checks Lint, Build and Molecule; zero required approvals;
"Require approval from code owners"; "Dismiss stale approvals"; block on rejected and on official
review requests; block on an outdated branch; administrators cannot override; the approvals
allowlist is the maintainer.
- Branch protection on `main`: required checks Lint, Build and `Molecule / Result (pull_request)`;
zero required approvals; "Require approval from code owners"; "Dismiss stale approvals"; block
on rejected and on official review requests; block on an outdated branch; administrators cannot
override; the approvals allowlist is the maintainer.
- Merge allowlist on `main`: the maintainer, each trusted contributor and the Renovate bot.
- Push allowlist on `release/*`: the maintainer; no rule for `renovate/*`.
- Tag protection on `v*`, with the maintainer on its allowlist.
+13 -3
View File
@@ -107,8 +107,18 @@ limit), [.gitea/workflows/AGENTS.md](../../.gitea/workflows/AGENTS.md) (workflow
bot-diff check `scripts/check_bot_pr_diff.py`) and [docs/adr/AGENTS.md](../adr/AGENTS.md) (decision
records).
- **Test a change to `renovate.json` before the merge with `renovate --platform=local`** (the version
in `.gitea/workflows/renovate.yml`), which reads your checkout.
- **Test a change to how Renovate behaves before the merge with `renovate --platform=local`** (the
version in `.gitea/workflows/renovate.yml`), which reads your checkout. Syntax needs no local run.
*Reason:* a dry run in Actions (Run workflow with `dry_run=true`) reads `renovate.json` from `main`,
so it cannot test a pull request's change.
*Held by:* review (`renovate.json` is under `CODEOWNERS`).
*Held by:* for the syntax, Lint's `renovate-config` job (`renovate-config-validator --strict
--no-global renovate.json`): a control once `Lint / renovate-config` is a required check, review
until then; review for the behaviour (`renovate.json` is under `CODEOWNERS`).
- **Every description in `renovate.json` is at most two short sentences: why the rule exists, plus
how it works when that is not obvious.** Investigation notes stay in the pull request.
*Reason:* the descriptions are read on every change to the config, and notes age into noise.
*Held by:* review.
- **A broken unattended merge is fixed with a test or a check; an automerge exception is added only
when no test can catch it, and its description names the failure it prevents.**
*Reason:* an exception costs a manual review on every later update, a test does not.
*Held by:* review.
+7 -1
View File
@@ -9,7 +9,7 @@ held by review until an offline link check exists.
## The clone
- **Run `scripts/dev-setup.sh` once per clone, and again after a change to `requirements-dev.txt`, its
lock `requirements-dev.lock`, `requirements.yml` or the hook types.** It creates `.venv` with the
lock `requirements-dev.lock`, `requirements.yml` or the hook types.** It creates `.venv-dev` with the
pinned tools on the Python named in `.python-version`, installs the collections of `requirements.yml`
into `.ansible/collections`, and installs the git hooks (pre-commit, commit-msg, pre-push) with the
virtualenv first on their `PATH`.
@@ -63,6 +63,12 @@ held by review until an offline link check exists.
pushed on an unmerged branch lets that branch's commands run without a prompt before anyone has
reviewed it, while a `deny` or `ask` rule can only add prompts.
*Held by:* review (`.claude/` is under `CODEOWNERS`).
- **Install [uv](https://docs.astral.sh/uv/getting-started/installation/), run `uv sync --frozen` once per
clone and again after a change to `uv.lock`, and run apm only as `uv run --frozen apm ...`** (for example
`uv run --frozen apm install`). uv keeps apm in `.venv`, apart from the tools in `.venv-dev`.
*Reason:* a bare `apm` is whatever version your machine has, and versions differ in which
`apm.lock.yaml` they accept and in what they deploy.
*Held by:* aspirational.
- **Every hook in the tracked `.claude/settings.json` arrives through apm; personal hooks go in
`.claude/settings.local.json`.**
*Reason:* a hook nobody owns is checked by nothing.
+16 -20
View File
@@ -1,32 +1,33 @@
# ci
The **CI tooling image** of the [`mortis.kamino`](https://git.rkdr.net/mortis/kamino) Collection: everything the Lint, Build and
Molecule workflows used to install on each run is baked in, so a job only checks out the code and runs.
The **CI tooling image** of the [`mortis.kamino`](https://git.rkdr.net/mortis/kamino) Collection: everything the Lint and Build
workflows used to install on each run is baked in, so a job only checks out the code and runs. The Molecule workflow
runs in the [`molecule-controller`](molecule-controller.md) image instead
([ADR 0003](../adr/0003-molecule-controller-image.md)), so a tool bump only Lint uses selects no Molecule scenario.
## What is in it
Ubuntu 26.04 with:
- **Python tools** in `/opt/venv` (on `PATH`; it runs on Python 3.14, the version of `.python-version`, from the baked copy and not from the distribution's `python3`), from `requirements-dev.lock` (the hashed lock of `requirements-dev.txt`, installed with `pip install --require-hashes`): `ansible-core`,
`ansible-lint`, `pre-commit`, `antsibull-changelog`, `galaxy-importer`, `reuse`, `molecule` and
`molecule-plugins[docker]` (the Docker driver, with the `docker` Python SDK), and `proxmoxer`, the controller-side
library the modules of `community.proxmox` import.
`ansible-lint`, `pre-commit`, `antsibull-changelog`, `galaxy-importer`, `reuse`, `molecule`
(without its Docker driver: Lint's run of the `script-tests` hook runs the tests that import it), and
`proxmoxer`, the controller-side library the modules of `community.proxmox` import.
- **The collections the roles call** in `/opt/collections` (`ANSIBLE_COLLECTIONS_PATH` is set to it), from
`requirements.yml`: `community.general`, `ansible.posix` and `community.proxmox` at the exact versions CI tests against, so
`ansible-lint --offline` resolves their modules instead of mocking them; and from
`extensions/molecule/requirements.yml`, `community.docker`, which the Molecule Docker driver's own playbooks call.
`ansible-lint --offline` resolves their modules instead of mocking them.
- **Every pre-commit hook environment** of `.pre-commit-config.yaml` in `/opt/pre-commit`
(`PRE_COMMIT_HOME`): conventional-pre-commit, gitleaks, yamllint, ruff, shellcheck-py, pre-commit-hooks, actionlint and zizmor. The Go
hooks are prebuilt; their toolchains, and the binaries of those repositories that no hook runs, are removed to
keep layers small. The local hooks (`reuse-lint`,
`antsibull-changelog-lint`, `ansible-lint`) are `language: system`: they run from `/opt/venv`, which is why
`antsibull-changelog-lint`, `ansible-lint`, `script-tests`, `check-image-pins`) are `language: system`: they run from `/opt/venv`, which is why
that directory must be on `PATH` (it is, in the image).
- **`ansible-test sanity` virtualenvs**, primed in `/root/.ansible/test`, and Python 3.11, 3.13 and 3.14 as
`python3.11` / `python3.13` / `python3.14` (python-build-standalone, installed with uv) next to the distribution's
`python3`, so sanity runs its compile test for those interpreters instead of skipping it.
- `git`, `shellcheck` (actionlint runs it over `run:` blocks), `python3`, `python3-venv` and `ca-certificates`.
The image runs as root and sets no working directory.
- `/opt/ci-pins.sha256`: the checksums of the five pin files this image was built from.
- `/opt/ci-pins.sha256`: the checksums of the four pin files this image was built from.
It has no Node, so JavaScript actions (`actions/checkout`) cannot run in it: clone with `git`.
@@ -59,25 +60,20 @@ jobs:
pre-commit run --all-files --show-diff-on-failure
```
The Molecule job runs on the `kamino-molecule` runner, a host executor, so it starts the image itself with
`docker run`, as the runner user, with the Docker socket and the checkout mounted at the same path (molecule
hands the daemon paths in the checkout); `scripts/run_molecule_in_ci_image.sh` does the same pin check inside it.
Read `.gitea/workflows/molecule.yml` for the full command.
`/opt/ci-pins.sha256` lists the five pin files by their checkout-relative path, so `sha256sum -c` runs in the checkout root. When
the checkout's `requirements-dev.txt`, `requirements-dev.lock`, `requirements.yml`, `extensions/molecule/requirements.yml` and `.pre-commit-config.yaml` match, the baked tools and
`/opt/ci-pins.sha256` lists the four pin files by their checkout-relative path, so `sha256sum -c` runs in the checkout root. When
the checkout's `requirements-dev.txt`, `requirements-dev.lock`, `requirements.yml` and `.pre-commit-config.yaml` match, the baked tools and
collections are used as they are, and Lint and Build cut the network by environment (proxy variables and
`PIP_NO_INDEX`) for all but the script tests, so a tool that downloads at run time fails the job. When a pull request changes a pin the check fails and the job installs the pinned
`PIP_NO_INDEX`), so a tool that downloads at run time fails the job. When a pull request changes a pin the check fails and the job installs the pinned
tools and collections itself for that run
(slower, same result), until the image is rebuilt from `main`. `lint.yml`, `build.yml`, `molecule.yml` and `gitea-release-key.yml`
(slower, same result), until the image is rebuilt from `main`. `lint.yml`, `build.yml` and `gitea-release-key.yml`
are the real consumers.
## Tags and pinning
- `<version>` is semver, independent of the Collection's version. A published version is never moved or
rebuilt, so one digest belongs to exactly one version. `latest` is the newest version, for looking only.
- Pin `ci:<version>@sha256:<digest>`; the digest decides what is pulled. Consumers: `lint.yml`, `build.yml`,
`molecule.yml` and `gitea-release-key.yml`.
- Pin `ci:<version>@sha256:<digest>`; the digest decides what is pulled. Consumers: `lint.yml`, `build.yml` and
`gitea-release-key.yml`.
- Renovate is configured to move the pins to a new version after the image is built on `main` (the rule is in
`renovate.json`; the first pin of a brand-new image is made by hand).
+61
View File
@@ -0,0 +1,61 @@
# molecule-controller
The **Molecule controller image** of the [`mortis.kamino`](https://git.rkdr.net/mortis/kamino) Collection:
the tools and collections Molecule runs with, and nothing Lint uses, so a tool bump that only Lint needs leaves
this image alone ([ADR 0003](../adr/0003-molecule-controller-image.md)). It is the controller: the scenarios'
target containers come from the `molecule-ubuntu*` images.
## What is in it
Ubuntu 26.04 with:
- **Python tools** in `/opt/venv` (on `PATH`; it runs on Python 3.14, the version of `.python-version`, from a
baked copy and not from the distribution's `python3`), from `requirements-molecule.lock` (the hashed lock of
`requirements-molecule.txt`, installed with `pip install --require-hashes`): `ansible-core`, `molecule` and
`molecule-plugins[docker]` (the Docker driver, with the `docker` Python SDK). Its `ansible-core` is the one of
`requirements-dev.lock`: `check_image_versions.py pins` fails when the two locks differ.
- **The collections the scenarios call** in `/opt/collections` (`ANSIBLE_COLLECTIONS_PATH` is set to it): those of
`requirements.yml` (`community.general`, `ansible.posix`, `community.proxmox`), which the roles call, and of
`extensions/molecule/requirements.yml` (`community.docker`), which the Docker driver's own playbooks call.
- `python3`, `python3-venv`, `ca-certificates` and `git` from the distribution. The image runs as root and sets no
working directory.
- `/opt/molecule-pins.sha256`: the checksums of the four pin files this image was built from.
It has no Docker CLI: mount the host's Docker CLI and socket, and the checkout.
## How to use it
On the `kamino-molecule` runner, a host executor, start it with `docker run` as the runner user, with the Docker
socket, the host's Docker CLI and the checkout mounted at the same path (molecule hands the daemon paths in the
checkout). In the checkout root, run `sha256sum --quiet -c /opt/molecule-pins.sha256`: when it passes, use
`/opt/venv/bin` and `/opt/collections` as they are; when a pull request changed `requirements-molecule.txt`,
`requirements-molecule.lock`, `requirements.yml` or `extensions/molecule/requirements.yml`, install the pinned tools
and collections for that run first (slower, same result), until the image is rebuilt from `main`.
`.gitea/workflows/molecule.yml` is its consumer: it pins the image as `CONTROLLER_IMAGE`, and
`scripts/run_molecule_in_controller.sh` runs the pin check inside it. Read the workflow for the full command.
## Tags and pinning
- `<version>` is semver, independent of the Collection's version. A published version is never moved or
rebuilt, so one digest belongs to exactly one version. `latest` is the newest version, for looking only.
- Pin `molecule-controller:<version>@sha256:<digest>`; the digest decides what is pulled.
## How it is built and kept up to date
`.gitea/workflows/image.yml` builds it with kaniko (repository root as build context, because the pin files are
copied in) on pushes to `main` that touch its inputs, never on a pull request, and publishes the next patch of the
matrix's `base:` when its inputs differ from those of its newest published version. Its last build step checks
itself: the tools run on the pinned Python at the locked versions, the Docker driver loads, every pinned collection
is installed and the pin record verifies. It has no image-smoke scenario: the full Molecule run of its pin pull
request proves it. The build prints the compressed size of each layer directory, and each pushed layer stays below
100 MB (Cloudflare's request limit).
## Image metadata
The `org.opencontainers.image.*` labels (title, description, version, revision, created, source,
documentation, licenses, authors) and `net.rkdr.mortis.*` labels (what it is for, what it contains,
how to use it; the base image is `base.name`) are listed on the package page of the registry; `version`,
`revision` and `created` are set by the build.
Source: [https://git.rkdr.net/mortis/kamino](https://git.rkdr.net/mortis/kamino), `images/molecule-controller/Dockerfile`. Licence: GPL-3.0-or-later.
+7 -5
View File
@@ -7,13 +7,15 @@ It is the release the hosts run today.
## What is in it
- Ubuntu 24.04 (the official `ubuntu:24.04` image, pinned by digest in the Dockerfile).
- Ubuntu 24.04 (the official `ubuntu:24.04` image, pinned by digest in the Dockerfile, with its packages
upgraded when the image is built).
- systemd as the init system (`systemd`, `systemd-sysv`), D-Bus, `sudo`, `iproute2`,
`ca-certificates`.
- Python for Ansible on the target: `python3`, `python3-apt`, `python3-systemd`.
- The packages the roles manage, preinstalled so a converge makes no network calls:
`iptables`, `ufw`, `fail2ban`, `openssh-server` (the `ssh` unit is enabled), and `gnupg`
(the docker scenario signs its stand-in APT repository with it).
- Test fixtures no role installs: `iptables`, `openssh-server` (the `ssh` unit is enabled), and
`gnupg` (the docker scenario signs its stand-in APT repository with it).
- No package a role installs, such as `ufw` or `fail2ban`: the role's scenario exercises that
install. The APT lists are removed, so such a scenario refreshes the APT cache in its prepare.
- Throwaway SSH host keys and a machine-id generated at build time. They are not secrets and the
image is a test target that must never be exposed to a network.
@@ -48,7 +50,7 @@ platforms:
systemd needs a writable cgroup (`cgroupns_mode: host`, the `/sys/fs/cgroup` mount and tmpfs on `/run`), the
firewall tools need `NET_ADMIN`, AppArmor is left unconfined for the container (`apparmor=unconfined`), and
nothing runs privileged. The docker driver needs molecule's docker plugin, which the ci image provides.
nothing runs privileged. The docker driver needs molecule's docker plugin, which the molecule-controller image provides.
The scenario `extensions/molecule/image-smoke` tests this image against that contract (release,
systemd, packages, the `dbus` and `ssh` units, the Python bindings, `NET_ADMIN`).
+7 -5
View File
@@ -7,13 +7,15 @@ It is the release the hosts are moving to; every role scenario whose role declar
## What is in it
- Ubuntu 26.04 (the official `ubuntu:26.04` image, pinned by digest in the Dockerfile).
- Ubuntu 26.04 (the official `ubuntu:26.04` image, pinned by digest in the Dockerfile, with its packages
upgraded when the image is built).
- systemd as the init system (`systemd`, `systemd-sysv`), D-Bus, `sudo`, `iproute2`,
`ca-certificates`.
- Python for Ansible on the target: `python3`, `python3-apt`, `python3-systemd`.
- The packages the roles manage, preinstalled so a converge makes no network calls:
`iptables`, `ufw`, `fail2ban`, `openssh-server` (the `ssh` unit is enabled), and `gnupg`
(the docker scenario signs its stand-in APT repository with it).
- Test fixtures no role installs: `iptables`, `openssh-server` (the `ssh` unit is enabled), and
`gnupg` (the docker scenario signs its stand-in APT repository with it).
- No package a role installs, such as `ufw` or `fail2ban`: the role's scenario exercises that
install. The APT lists are removed, so such a scenario refreshes the APT cache in its prepare.
- root's `sudo` skips the PAM account check (`pam_rootok`), so `become` works in the container.
- Throwaway SSH host keys and a machine-id generated at build time. They are not secrets and the
image is a test target that must never be exposed to a network.
@@ -49,7 +51,7 @@ platforms:
systemd needs a writable cgroup (`cgroupns_mode: host`, the `/sys/fs/cgroup` mount and tmpfs on `/run`), the
firewall tools need `NET_ADMIN`, AppArmor is left unconfined for the container (`apparmor=unconfined`), and
nothing runs privileged. The docker driver needs molecule's docker plugin, which the ci image provides.
nothing runs privileged. The docker driver needs molecule's docker plugin, which the molecule-controller image provides.
The scenario `extensions/molecule/image-smoke-2604` tests this image against that contract (release,
systemd, packages, the `dbus` and `ssh` units, the Python bindings, `NET_ADMIN`).
@@ -15,7 +15,7 @@
ansible.builtin.package_facts:
manager: auto
- name: The packages the roles manage are preinstalled
- name: The fixtures the scenarios need are preinstalled
ansible.builtin.assert:
that: item in ansible_facts['packages']
quiet: true
@@ -30,8 +30,6 @@
- python3-apt
- python3-systemd
- iptables
- ufw
- fail2ban
- openssh-server
- gnupg
+1 -3
View File
@@ -15,7 +15,7 @@
ansible.builtin.package_facts:
manager: auto
- name: The packages the roles manage are preinstalled
- name: The fixtures the scenarios need are preinstalled
ansible.builtin.assert:
that: item in ansible_facts['packages']
quiet: true
@@ -30,8 +30,6 @@
- python3-apt
- python3-systemd
- iptables
- ufw
- fail2ban
- openssh-server
- gnupg
+2 -2
View File
@@ -2,8 +2,8 @@
# Collections the Molecule test harness itself calls, as opposed to the roles under test (those are
# in the requirements.yml at the repository root). The Docker driver of molecule-plugins runs
# community.docker modules in its own create and destroy playbooks, so every scenario needs it.
# The ci image (images/ci) bakes it into /opt/collections next to the root one; a pull request that
# changes it fails the image's pin check, so the Molecule job installs it itself.
# The molecule-controller image (images/molecule-controller) bakes it into /opt/collections next to the
# root one; a pull request that changes it fails the image's pin check, so the Molecule job installs it itself.
# Renovate (renovate.json, ansible-galaxy manager) bumps this pin.
collections:
- name: community.docker
+8 -3
View File
@@ -1,13 +1,13 @@
---
namespace: mortis
name: kamino
version: 3.2.0
version: 3.5.0
readme: README.md
authors:
- Defame1297
description: >-
Reusable, hardened Ansible roles for a self-hosted home lab (cloudflared, docker, fail2ban,
gitea, gitea_runner, network_interfaces, pihole, pve_lxc, sshd, system_baseline,
gitea, gitea_runner, network_interfaces, nfs_client, openbao, pihole, pve_lxc, pve_vm, sshd, system_baseline,
systemd_hardening, tailscale, traefik, ufw, user_management; _binary_update is internal).
license:
- GPL-3.0-or-later
@@ -22,7 +22,7 @@ homepage: https://git.rkdr.net/mortis/kamino
issues: https://git.rkdr.net/mortis/kamino/issues
# CI tests the versions pinned in requirements.yml; the lower bounds here are not tested.
# No upper bound, so a consumer's newer pin does not conflict. community.general is used by system_baseline and ufw,
# ansible.posix by system_baseline and user_management, community.proxmox by pve_lxc (Proxmox VE guest lifecycle).
# ansible.posix by nfs_client, system_baseline and user_management, community.proxmox by pve_lxc and pve_vm (Proxmox VE guest lifecycle).
# community.proxmox's modules import the Python library proxmoxer (2.3 or later) on the controller; galaxy.yml
# cannot declare a Python dependency, so the README says it and requirements-dev.txt pins it for CI.
dependencies:
@@ -46,6 +46,7 @@ build_ignore:
- .python-version
- .ruff_cache
- .venv
- .venv-dev
- .yamllint
- docs
- .ansible-lint
@@ -59,11 +60,15 @@ build_ignore:
- images
- scripts
- tests/scripts
- pyproject.toml
- renovate.json
- ruff.toml
- requirements-dev.txt
- requirements-dev.lock
- requirements-molecule.txt
- requirements-molecule.lock
- requirements.yml
- uv.lock
- gitleaks-report.json
- importer_result.json
- 'roles/*/molecule'
+14 -8
View File
@@ -1,7 +1,7 @@
# Image rules
Every rule for the CI and test images in `images/` (`ci`, `molecule-ubuntu2404`,
`molecule-ubuntu2604`), their build in `.gitea/workflows/image.yml`, and the image-smoke
Every rule for the CI and test images in `images/` (`ci`, `molecule-controller`,
`molecule-ubuntu2404`, `molecule-ubuntu2604`), their build in `.gitea/workflows/image.yml`, and the image-smoke
scenarios in `extensions/molecule/`, in full. Each gives its reason (*Why*) and how it is held
(*Held*): a control names its hook or check; review means a person other than the author sees the
change before it merges (`images/` and `.gitea/` are under `CODEOWNERS`); aspirational means
@@ -25,9 +25,9 @@ it to this repository's organisation in the Gitea registry as `<version>` and `l
publishes `<base>.N+1` when they differ. Edit `base:` by hand only for a minor or major.
*Why:* a version a person must remember to raise is a version someone forgets. *Held:*
control: the Images workflow assigns it (`next_image_version.py`, with its tests).
- **After the build pushes a new version, a second pull request moves the
`image:<version>@sha256:<digest>` pins in `lint.yml`, `build.yml`, `molecule.yml` and
`gitea-release-key.yml` to it.** Renovate opens it within minutes: the Images run's successful
- **After the build pushes a new version, a second pull request moves its
`image:<version>@sha256:<digest>` pins to it:** `ci` in `lint.yml`, `build.yml` and
`gitea-release-key.yml`; `molecule-controller` and the `molecule-ubuntu*` images in `molecule.yml`. Renovate opens it within minutes: the Images run's successful
completion starts a live Renovate run (`workflow_run` in `renovate.yml`). It changes no image
input, so it publishes nothing. A new image's first pin is a hand-made pull request, and a
major version is moved by hand. *Why:* consumers run exactly the digest a reviewer saw.
@@ -40,7 +40,7 @@ it to this repository's organisation in the Gitea registry as `<version>` and `l
## Releases and the build container
- **Each molecule image is one Ubuntu release, named after it; a new release is a new image,
- **Each molecule target image (`molecule-ubuntu*`) is one Ubuntu release, named after it; a new release is a new image,
added by hand** (Renovate's major `ubuntu` updates are disabled). Roles are tested on every
release a target host runs. *Why:* a role is only proven on the release it runs on. *Held:*
review.
@@ -63,8 +63,9 @@ it to this repository's organisation in the Gitea registry as `<version>` and `l
image; a job downloads at run time only on the slow path (a pull request that changes a pin
file). *Why:* a run that downloads is slower and depends on the network. *Held:* control: on
the fast path Lint and Build cut the network by environment, so a download through pip or a
proxy-honouring client fails the job; review for a raw socket, for the script tests, which keep
network, and for Molecule.
proxy-honouring client fails the job; review for a raw socket and for Molecule.
- **Each Dockerfile upgrades the base image's packages in its first apt layer.** *Why:* Ubuntu
publishes package updates before it refreshes the base image. *Held:* review.
- **Recorded speed:** a speed optimisation that adds machinery states its measured saving where
it lives (a comment next to it). *Why:* machinery is kept only for a saving someone can check.
*Held:* review.
@@ -90,3 +91,8 @@ it to this repository's organisation in the Gitea registry as `<version>` and `l
`MOLECULE_IMAGE` or `MOLECULE_IMAGE_2604` in `molecule.yml`, so a pin pull request runs them.
*Why:* an image is proven by its own pin pull request before a role depends on it. *Held:*
control: the scenarios, in the Molecule check.
- **`molecule-controller` has no image-smoke scenario: the last `RUN` of its Dockerfile checks
its tool versions, Docker driver, collections and pin checksums, and the full Molecule run of
its pin pull request proves the rest.** *Why:* it is the controller of every scenario, not a
target of one, so a full run tests it more than a scenario of its own could. *Held:* control: the self-checks fail the
build on `main`; review for the full run on the pin pull request.
+23 -26
View File
@@ -1,5 +1,6 @@
# CI image for the Lint, Build and Molecule workflows of this Collection: every tool they used
# to install on each run is baked in, so a job only checks out the code and runs.
# CI image for the Lint and Build workflows of this Collection: every tool they used to install
# on each run is baked in, so a job only checks out the code and runs. Molecule runs in the
# molecule-controller image (ADR 0003).
#
# Built by .gitea/workflows/image.yml with kaniko (repository root as build context,
# because the pin files below are copied in) and pushed, never on pull requests, to
@@ -12,12 +13,13 @@
# - OS packages: git, shellcheck (actionlint runs it over run: blocks), the
# distribution's python3 and ca-certificates.
# - /opt/venv: requirements-dev.lock, the hashed lock of requirements-dev.txt (ansible-core, ansible-lint, pre-commit,
# antsibull-changelog, galaxy-importer, reuse, molecule and its Docker driver, proxmoxer), on the Python of
# .python-version (PYTHON_VERSION below), the one the lock was resolved on and a clone's .venv uses.
# antsibull-changelog, galaxy-importer, reuse, molecule, proxmoxer), on the Python of
# .python-version (PYTHON_VERSION below), the one the lock was resolved on and a clone's .venv-dev uses.
# molecule is there for Lint's run of the script-tests hook, whose molecule tests import it; its
# Docker driver and community.docker are not: Molecule runs in the molecule-controller image.
# - /opt/collections: the collections of requirements.yml (the versions the roles are
# tested against), found through ANSIBLE_COLLECTIONS_PATH, so `ansible-lint --offline`
# resolves their modules without a mock list; and those of extensions/molecule/requirements.yml
# (community.docker), which the Molecule Docker driver's own playbooks call.
# resolves their modules without a mock list.
# - /opt/pre-commit: every hook environment of .pre-commit-config.yaml, installed by
# `pre-commit install-hooks` (gitleaks and actionlint are built from source by
# pre-commit, which downloads a Go toolchain: that is most of the time saved).
@@ -26,8 +28,8 @@
# - Python 3.11, 3.13 and PYTHON_VERSION as python<MINOR> on PATH, so that
# `ansible-test sanity` runs its compile test for them instead of skipping it.
# They come from python-build-standalone through uv, pinned by the uv version.
# - /opt/ci-pins.sha256: the checksums of requirements-dev.txt, requirements-dev.lock, requirements.yml,
# extensions/molecule/requirements.yml and .pre-commit-config.yaml this image was built from. A job runs
# - /opt/ci-pins.sha256: the checksums of requirements-dev.txt, requirements-dev.lock, requirements.yml
# and .pre-commit-config.yaml this image was built from. A job runs
# `sha256sum -c /opt/ci-pins.sha256` in its checkout; when a pull request changes a
# pin the check fails and the job installs the tools as before, until the image
# is rebuilt from main.
@@ -35,15 +37,16 @@
# Layers: each COPY / RUN below is one layer, and a layer is pushed as one request,
# so it must stay below Cloudflare's 100 MB request-body limit on git.rkdr.net. The
# build stage prints the sizes it will copy; the first push is the real test.
# Base image: ubuntu:26.04 index digest as of 2026-10-26, same as molecule-ubuntu2604.
# Base image: ubuntu:26.04 index digest as of 2026-12-03, same as molecule-ubuntu2604.
FROM ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db AS os
FROM ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd AS os
ENV DEBIAN_FRONTEND=noninteractive
# No python3-pip: tools are installed with the venv's own pip. python3-venv brings
# ensurepip. apt lists are removed in the same layer.
# ensurepip. The upgrade brings in updates newer than the base image. apt lists are removed in the same layer.
RUN apt-get update \
&& apt-get upgrade -y --with-new-pkgs --no-install-recommends \
&& apt-get install -y --no-install-recommends \
ca-certificates git python3 python3-venv shellcheck \
&& rm -rf /var/lib/apt/lists/*
@@ -65,16 +68,14 @@ ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
WORKDIR /src
COPY requirements-dev.txt requirements-dev.lock requirements.yml .pre-commit-config.yaml ./
# Kept at its checkout path: its name matches the root requirements.yml.
COPY extensions/molecule/requirements.yml extensions/molecule/
# The interpreters come first: /opt/venv is built from the pinned one (PYTHON_VERSION, kept equal to
# .python-version and to the lock header by `check_image_versions.py pins`), not from the distribution's
# python3, so the tools run on the Python the lock was resolved on and a clone's .venv uses.
# python3, so the tools run on the Python the lock was resolved on and a clone's .venv-dev uses.
# uv only lives in the build stage (its own venv): the final image keeps the interpreters it
# downloaded, not the installer. The distribution's python3 only bootstraps uv.
RUN python3 -m venv /opt/uv-venv \
&& /opt/uv-venv/bin/pip install uv==0.13.9 \
&& /opt/uv-venv/bin/pip install uv==0.13.10 \
&& /opt/uv-venv/bin/uv python install 3.11 3.13 ${PYTHON_VERSION}
# python-build-standalone ships lib/libpython<MINOR>.so (about 33 MB, 10 MB compressed) next to a statically
@@ -98,13 +99,11 @@ RUN "$(echo /opt/python/cpython-${PYTHON_VERSION}.*/bin/python${PYTHON_VERSION})
&& /opt/venv/bin/python --version \
&& /opt/venv/bin/pip install --require-hashes -r requirements-dev.lock -r requirements-dev.txt
# The collections of requirements.yml and extensions/molecule/requirements.yml. ANSIBLE_COLLECTIONS_PATH is set to the target for the
# The collections of requirements.yml. ANSIBLE_COLLECTIONS_PATH is set to the target for the
# install only: a collection found anywhere else on the path would be skipped as "already
# installed" and not copied here.
RUN ANSIBLE_COLLECTIONS_PATH=/opt/collections \
/opt/venv/bin/ansible-galaxy collection install -r requirements.yml -p /opt/collections \
&& ANSIBLE_COLLECTIONS_PATH=/opt/collections \
/opt/venv/bin/ansible-galaxy collection install -r extensions/molecule/requirements.yml -p /opt/collections \
&& du -sh /opt/collections
# pre-commit needs a git repository to resolve a config. The hook repositories are
@@ -177,16 +176,16 @@ FROM os AS final
ARG PYTHON_VERSION=3.14
LABEL org.opencontainers.image.title="ci" \
org.opencontainers.image.description="CI tooling image for the mortis.kamino Ansible Collection: the Lint, Build and Molecule workflows run in it, so a job only checks out the code and runs. It bakes in ansible-core, ansible-lint, pre-commit with every hook environment of the repository, antsibull-changelog, galaxy-importer, reuse, molecule with its Docker driver, proxmoxer, the collections of requirements.yml and extensions/molecule/requirements.yml, git, shellcheck, Python 3.11, 3.13 and the version of .python-version (the tools in /opt/venv run on it) next to the distribution python3 and primed ansible-test sanity virtualenvs. Pin it by tag and digest, as a job container or with docker run; it has no Node, so clone with git." \
org.opencontainers.image.description="CI tooling image for the mortis.kamino Ansible Collection: the Lint and Build workflows run in it, so a job only checks out the code and runs; Molecule runs in the molecule-controller image. It bakes in ansible-core, ansible-lint, pre-commit with every hook environment of the repository, antsibull-changelog, galaxy-importer, reuse, molecule (for the script tests), proxmoxer, the collections of requirements.yml, git, shellcheck, Python 3.11, 3.13 and the version of .python-version (the tools in /opt/venv run on it) next to the distribution python3 and primed ansible-test sanity virtualenvs. Pin it by tag and digest, as a job container or with docker run; it has no Node, so clone with git." \
org.opencontainers.image.source="https://git.rkdr.net/mortis/kamino" \
org.opencontainers.image.url="https://git.rkdr.net/mortis/kamino" \
org.opencontainers.image.documentation="https://git.rkdr.net/mortis/kamino/src/branch/main/docs/images/ci.md" \
org.opencontainers.image.licenses="GPL-3.0-or-later" \
org.opencontainers.image.authors="Defame1297 and contributors" \
org.opencontainers.image.base.name="ubuntu:26.04" \
net.rkdr.mortis.purpose="CI tooling image for the mortis.kamino Ansible Collection: the Lint, Build and Molecule workflows run in it, so a job only checks out the code and runs." \
net.rkdr.mortis.contents="Ubuntu 26.04, /opt/venv (ansible-core, ansible-lint, pre-commit, antsibull-changelog, galaxy-importer, reuse, molecule, molecule-plugins[docker], proxmoxer), /opt/collections (community.general, ansible.posix, community.proxmox, community.docker), /opt/pre-commit hook environments, ansible-test sanity venvs, python3 (distribution), python3.11, python3.13, python<PYTHON_VERSION> (the one of /opt/venv), git, shellcheck, /opt/ci-pins.sha256" \
net.rkdr.mortis.usage="Lint and Build: job container on the kamino-docker runner, git.rkdr.net/mortis/ci:version@sha256:digest with PRE_COMMIT_HOME set to /opt/pre-commit. Molecule (host executor, kamino-molecule runner): docker run as the runner user, with the Docker socket and the checkout mounted at the same path. In both, run sha256sum -c /opt/ci-pins.sha256 in the checkout root and install the pinned tools and collections when a pull request changed them, else use /opt/venv/bin and ANSIBLE_COLLECTIONS_PATH=/opt/collections. See the documentation label."
net.rkdr.mortis.purpose="CI tooling image for the mortis.kamino Ansible Collection: the Lint and Build workflows run in it, so a job only checks out the code and runs." \
net.rkdr.mortis.contents="Ubuntu 26.04, /opt/venv (ansible-core, ansible-lint, pre-commit, antsibull-changelog, galaxy-importer, reuse, molecule, proxmoxer), /opt/collections (community.general, ansible.posix, community.proxmox), /opt/pre-commit hook environments, ansible-test sanity venvs, python3 (distribution), python3.11, python3.13, python<PYTHON_VERSION> (the one of /opt/venv), git, shellcheck, /opt/ci-pins.sha256" \
net.rkdr.mortis.usage="Lint and Build: job container on the kamino-docker runner, git.rkdr.net/mortis/ci:version@sha256:digest with PRE_COMMIT_HOME set to /opt/pre-commit. Run sha256sum -c /opt/ci-pins.sha256 in the checkout root and install the pinned tools and collections when a pull request changed them, else use /opt/venv/bin and ANSIBLE_COLLECTIONS_PATH=/opt/collections. See the documentation label."
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
PRE_COMMIT_HOME=/opt/pre-commit \
@@ -202,16 +201,14 @@ COPY --from=build /root/.ansible/test /root/.ansible/test
# The target interpreters ansible-test looks for on PATH, and the pin record.
COPY --from=build /src/requirements-dev.txt /src/requirements-dev.lock /src/requirements.yml /src/.pre-commit-config.yaml /opt/ci-pins/
# Under its checkout path, so `sha256sum -c` in a checkout root finds it.
COPY --from=build /src/extensions/molecule/requirements.yml /opt/ci-pins/extensions/molecule/
RUN set -eu; \
for v in $(printf '%s\n' 3.11 3.13 "${PYTHON_VERSION}" | sort -u); do \
ln -sf "$(echo /opt/python/cpython-${v}.*/bin/python${v})" "/usr/local/bin/python${v}"; \
"python${v}" --version; \
done; \
cd /opt/ci-pins; \
sha256sum requirements-dev.txt requirements-dev.lock requirements.yml extensions/molecule/requirements.yml \
.pre-commit-config.yaml > /opt/ci-pins.sha256; \
sha256sum requirements-dev.txt requirements-dev.lock requirements.yml .pre-commit-config.yaml \
> /opt/ci-pins.sha256; \
ansible --version | head -n1; \
ansible-galaxy collection list; \
pre-commit --version; \
+133
View File
@@ -0,0 +1,133 @@
# Controller image of the Molecule workflow of this Collection (ADR 0003): molecule, its Docker
# driver and the collections the scenarios call are baked in, and nothing Lint uses, so a tool
# bump that only Lint needs leaves this image, and the scenarios it selects, alone.
#
# Built by .gitea/workflows/image.yml with kaniko (repository root as build context, because
# the pin files below are copied in) and pushed, never on pull requests, to
# git.rkdr.net/mortis/molecule-controller.
#
# What is baked in, and from where:
# - /opt/venv: requirements-molecule.lock, the hashed lock of requirements-molecule.txt
# (ansible-core, molecule, molecule-plugins[docker] with the docker Python SDK), on the Python
# of .python-version (PYTHON_VERSION below), the one the lock was resolved on.
# - /opt/collections: the collections of requirements.yml (the ones the roles call) and of
# extensions/molecule/requirements.yml (community.docker, which the Docker driver's own
# playbooks call), found through ANSIBLE_COLLECTIONS_PATH.
# - /opt/molecule-pins.sha256: the checksums of the four pin files this image was built from. A
# job runs `sha256sum -c /opt/molecule-pins.sha256` in its checkout; when a pull request changes
# a pin the check fails and the job installs the pinned tools and collections itself.
#
# No image-smoke scenario: the last RUN checks the tools and the pin record, and a full Molecule
# run on the image's pin pull request proves the rest (images/AGENTS.md).
#
# Layers: each COPY / RUN below is one layer, and a layer is pushed as one request, so it must
# stay below Cloudflare's 100 MB request-body limit on git.rkdr.net. The build stage prints the
# compressed size of each directory it copies.
FROM ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd AS os
ENV DEBIAN_FRONTEND=noninteractive
# python3 and python3-venv only bootstrap uv in the build stage; ca-certificates serve the
# install a job runs when a pull request changes a pin; git lets the selector diff the checkout.
# The upgrade brings in updates newer than the base image. apt lists are removed in the same layer.
RUN apt-get update \
&& apt-get upgrade -y --with-new-pkgs --no-install-recommends \
&& apt-get install -y --no-install-recommends ca-certificates git python3 python3-venv \
&& rm -rf /var/lib/apt/lists/*
FROM os AS build
# The Python of /opt/venv: the minor version of .python-version (check_image_versions.py pins fails
# when an ARG PYTHON_VERSION line, or a lock header, differs from it).
ARG PYTHON_VERSION=3.14
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
UV_PYTHON_INSTALL_DIR=/opt/python \
UV_PYTHON_BIN_DIR=/opt/python-bin
WORKDIR /src
COPY requirements-molecule.txt requirements-molecule.lock requirements.yml ./
# Kept at its checkout path: its name matches the root requirements.yml.
COPY extensions/molecule/requirements.yml extensions/molecule/
# uv lives only in this stage; the final image keeps the interpreter it downloaded. libpython is
# removed when the binary does not link it (about 10 MB compressed nothing here loads), as in ci.
RUN set -eu; \
python3 -m venv /opt/uv-venv; \
/opt/uv-venv/bin/pip install uv==0.13.10; \
/opt/uv-venv/bin/uv python install "${PYTHON_VERSION}"; \
d="$(echo /opt/python/cpython-${PYTHON_VERSION}.*/)"; \
if ldd "${d}bin/python${PYTHON_VERSION}" | grep -q libpython; then \
echo "python${PYTHON_VERSION} links libpython: keeping it"; \
else \
rm -f "${d}"lib/libpython*.so*; \
fi
RUN "$(echo /opt/python/cpython-${PYTHON_VERSION}.*/bin/python${PYTHON_VERSION})" -m venv /opt/venv \
&& /opt/venv/bin/pip install --require-hashes -r requirements-molecule.lock -r requirements-molecule.txt
# ANSIBLE_COLLECTIONS_PATH is the target for the install only: a collection found anywhere else on
# the path would be skipped as "already installed" and not copied here.
RUN set -eu; \
for req in requirements.yml extensions/molecule/requirements.yml; do \
ANSIBLE_COLLECTIONS_PATH=/opt/collections \
/opt/venv/bin/ansible-galaxy collection install -r "$req" -p /opt/collections; \
done; \
gz() { tar -C "$(dirname "$1")" -cf - "$(basename "$1")" | gzip -6 | wc -c \
| awk -v d="$1" '{printf "%7.1f MB compressed %s\n", $1 / 1048576, d}'; }; \
for d in /opt/venv /opt/python /opt/collections; do gz "$d"; done
FROM os AS final
ARG PYTHON_VERSION=3.14
LABEL org.opencontainers.image.title="molecule-controller" \
org.opencontainers.image.description="Molecule controller image for the mortis.kamino Ansible Collection: the Molecule workflow runs molecule in it, so a tool only Lint uses does not change it. It bakes in ansible-core, molecule, molecule-plugins with the docker Python SDK, the collections of requirements.yml and extensions/molecule/requirements.yml, and the Python of .python-version (the tools in /opt/venv run on it). Pin it by tag and digest and start it with docker run; it has no Docker CLI, so mount the host one." \
org.opencontainers.image.source="https://git.rkdr.net/mortis/kamino" \
org.opencontainers.image.url="https://git.rkdr.net/mortis/kamino" \
org.opencontainers.image.documentation="https://git.rkdr.net/mortis/kamino/src/branch/main/docs/images/molecule-controller.md" \
org.opencontainers.image.licenses="GPL-3.0-or-later" \
org.opencontainers.image.authors="Defame1297 and contributors" \
org.opencontainers.image.base.name="ubuntu:26.04" \
net.rkdr.mortis.purpose="Molecule controller image for the mortis.kamino Ansible Collection: the Molecule workflow runs molecule in it, so a tool only Lint uses does not change it." \
net.rkdr.mortis.contents="Ubuntu 26.04, /opt/venv (ansible-core, molecule, molecule-plugins[docker]), /opt/collections (community.general, ansible.posix, community.proxmox, community.docker), python<PYTHON_VERSION> (the one of /opt/venv), python3 and git (distribution), /opt/molecule-pins.sha256" \
net.rkdr.mortis.usage="Molecule (host executor, kamino-molecule runner): docker run as the runner user, with the Docker socket, the host Docker CLI and the checkout mounted at the same path. Run sha256sum -c /opt/molecule-pins.sha256 in the checkout root and install the pinned tools and collections when a pull request changed them, else use /opt/venv/bin and ANSIBLE_COLLECTIONS_PATH=/opt/collections. See the documentation label."
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
ANSIBLE_COLLECTIONS_PATH=/opt/collections \
PATH=/opt/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
COPY --from=build /opt/venv /opt/venv
COPY --from=build /opt/collections /opt/collections
COPY --from=build /opt/python /opt/python
# The pin record, under checkout paths so `sha256sum -c` in a checkout root finds the files.
COPY --from=build /src/requirements-molecule.txt /src/requirements-molecule.lock /src/requirements.yml /opt/molecule-pins/
COPY --from=build /src/extensions/molecule/requirements.yml /opt/molecule-pins/extensions/molecule/
# Self-checks: the tools run on the pinned Python, every pinned collection is installed and the pin
# record verifies against the files it was made from. A failure fails the build, not a later job.
RUN set -eu; \
cd /opt/molecule-pins; \
sha256sum requirements-molecule.txt requirements-molecule.lock requirements.yml \
extensions/molecule/requirements.yml > /opt/molecule-pins.sha256; \
sha256sum --quiet -c /opt/molecule-pins.sha256; \
python -c "import sys; assert '%d.%d' % sys.version_info[:2] == '${PYTHON_VERSION}', sys.version"; \
core="$(sed -n 's/^ansible-core==\([^ ]*\).*/\1/p' requirements-molecule.lock)"; \
test -n "$core"; \
ansible --version | head -n1 | grep -F "core ${core}]"; \
mol="$(sed -n 's/^molecule==\([^ ]*\).*/\1/p' requirements-molecule.lock)"; \
test -n "$mol"; \
molecule --version | grep -F "molecule ${mol}"; \
molecule drivers | grep -qw docker; \
python -c "import docker"; \
git --version; \
collections="$(ansible-galaxy collection list --format json)"; \
for c in $(sed -n 's/^ *- name: *//p' requirements.yml extensions/molecule/requirements.yml); do \
printf '%s' "$collections" | python -c "import json, sys; d = json.load(sys.stdin); sys.exit(0 if any('$c' in v for v in d.values()) else 1)" \
|| { echo "collection $c is not installed" >&2; exit 1; }; \
done; \
ansible-galaxy collection list
+16 -15
View File
@@ -1,7 +1,7 @@
# Molecule test target for the roles of this Collection: Ubuntu 24.04 with systemd
# as PID 1 and the packages the roles manage preinstalled, so a converge makes no
# network calls. It replaces the molecule test image that used to be built locally
# on the CI runner.
# as PID 1 and the fixtures the scenarios need preinstalled. A package a role installs
# is not baked in, so its scenario exercises the install (ADR 0002). It replaces the
# molecule test image that used to be built locally on the CI runner.
#
# Built by .gitea/workflows/image.yml with kaniko and pushed (never on pull
# requests) to git.rkdr.net/mortis/molecule-ubuntu2404. Consumers reference it
@@ -14,21 +14,22 @@
# scenario starts it with command /sbin/init, cgroupns_mode host, /sys/fs/cgroup
# mounted rw, tmpfs on /run and /run/lock, capability NET_ADMIN. No privileged mode.
#
# One RUN layer: about 30 MB compressed on top of the 29.8 MB base (estimated from
# One RUN layer: at most about 30 MB compressed on top of the 29.8 MB base (estimated from
# the real .debs, with the .pyc files the postinst scripts compile), far below
# Cloudflare's 100 MB request-body limit on git.rkdr.net (kaniko pushes a layer as
# one request; gnupg adds a few MB, not measured). apt packages are not version-pinned, as in the original image; the
# one request; gnupg adds a few MB, not measured, and the upgraded base packages about 4 MB).
# apt packages are not version-pinned, as in the original image; the
# base image is pinned by digest and a rebuild is a reviewed digest bump downstream.
#
# The image carries SSH host keys and a machine-id generated at build time (the
# openssh-server and systemd postinst scripts). ssh.service runs `sshd -t` and
# fails without host keys, so they cannot be removed; image scanners will flag them.
# They are throwaway keys of a test target that is never exposed.
# ubuntu:24.04 index digest as of 2026-10-24 (24.04.5).
FROM ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b
# ubuntu:24.04 index digest as of 2026-12-03.
FROM ubuntu:24.04@sha256:168a88cc61bdd95c8f871e3903d4e0a525e340c2b28a70dadd6d1503ecc7c391
LABEL org.opencontainers.image.title="molecule-ubuntu2404" \
org.opencontainers.image.description="Disposable Ubuntu 24.04 test target for the molecule scenarios of the mortis.kamino Ansible Collection. systemd runs as PID 1 with D-Bus, sudo, python3 and the packages the roles manage (iptables, ufw, fail2ban, openssh-server) preinstalled, so a converge makes no network calls. Start it as a molecule platform (usage label); it carries throwaway SSH host keys and is a test target only, never to be exposed." \
org.opencontainers.image.description="Disposable Ubuntu 24.04 test target for the molecule scenarios of the mortis.kamino Ansible Collection. systemd runs as PID 1 with D-Bus, sudo, python3 and the test fixtures (iptables, openssh-server, gnupg) preinstalled. A package a role installs is not baked in and no APT lists are kept, so a scenario refreshes the APT cache before a role installs one. Start it as a molecule platform (usage label); it carries throwaway SSH host keys and is a test target only, never to be exposed." \
org.opencontainers.image.source="https://git.rkdr.net/mortis/kamino" \
org.opencontainers.image.url="https://git.rkdr.net/mortis/kamino" \
org.opencontainers.image.documentation="https://git.rkdr.net/mortis/kamino/src/branch/main/docs/images/molecule-ubuntu2404.md" \
@@ -36,22 +37,22 @@ LABEL org.opencontainers.image.title="molecule-ubuntu2404" \
org.opencontainers.image.authors="Defame1297 and contributors" \
org.opencontainers.image.base.name="ubuntu:24.04" \
net.rkdr.mortis.purpose="Disposable Ubuntu 24.04 test target for the molecule scenarios of the mortis.kamino Ansible Collection." \
net.rkdr.mortis.contents="Ubuntu 24.04, systemd, systemd-sysv, dbus, sudo, iproute2, ca-certificates, python3, python3-apt, python3-systemd, iptables, ufw, fail2ban, openssh-server (ssh enabled), gnupg" \
net.rkdr.mortis.contents="Ubuntu 24.04, systemd, systemd-sysv, dbus, sudo, iproute2, ca-certificates, python3, python3-apt, python3-systemd, iptables, openssh-server (ssh enabled), gnupg" \
net.rkdr.mortis.usage="Molecule docker-driver platform with pre_build_image true, command /sbin/init, cgroupns_mode host, /sys/fs/cgroup mounted rw, tmpfs on /run and /run/lock, capability NET_ADMIN, security_opts apparmor=unconfined (not privileged). Pin git.rkdr.net/mortis/name:version@sha256:digest. See the documentation label."
ENV DEBIAN_FRONTEND=noninteractive
# The upgrade brings in updates newer than the base image.
# systemd as PID 1 with D-Bus, sudo and networking tools; the Python Ansible needs on
# the target (python3-apt for the apt module); the firewall and intrusion-prevention
# packages the roles manage (python3-systemd is a dependency of fail2ban's systemd
# backend); sshd, enabled so a converge can test it under systemd; gnupg, which the docker
# scenario signs its stand-in APT repository with and which would otherwise cost it an
# apt update and install in every run.
# the target (python3-apt for the apt module, python3-systemd for the journal); iptables;
# sshd, enabled so a converge can test it under systemd; gnupg, which the docker scenario
# signs its stand-in APT repository with. ufw and fail2ban are left out: their roles install them.
RUN apt-get update \
&& apt-get upgrade -y --with-new-pkgs --no-install-recommends \
&& apt-get install -y --no-install-recommends \
systemd systemd-sysv dbus sudo iproute2 ca-certificates \
python3 python3-apt python3-systemd \
iptables ufw fail2ban \
iptables \
openssh-server \
gnupg \
&& rm -rf /var/lib/apt/lists/* \
+16 -15
View File
@@ -1,7 +1,7 @@
# Molecule test target for the roles of this Collection: Ubuntu 26.04 with systemd
# as PID 1 and the packages the roles manage preinstalled, so a converge makes no
# network calls. It replaces the molecule test image that used to be built locally
# on the CI runner.
# as PID 1 and the fixtures the scenarios need preinstalled. A package a role installs
# is not baked in, so its scenario exercises the install (ADR 0002). It replaces the
# molecule test image that used to be built locally on the CI runner.
#
# Built by .gitea/workflows/image.yml with kaniko and pushed (never on pull
# requests) to git.rkdr.net/mortis/molecule-ubuntu2604. Consumers reference it
@@ -14,21 +14,22 @@
# scenario starts it with command /sbin/init, cgroupns_mode host, /sys/fs/cgroup
# mounted rw, tmpfs on /run and /run/lock, capability NET_ADMIN. No privileged mode.
#
# One RUN layer: about 30 MB compressed on top of the 29.8 MB base (estimated from
# One RUN layer: at most about 30 MB compressed on top of the 29.8 MB base (estimated from
# the real .debs, with the .pyc files the postinst scripts compile), far below
# Cloudflare's 100 MB request-body limit on git.rkdr.net (kaniko pushes a layer as
# one request; gnupg adds a few MB, not measured). apt packages are not version-pinned, as in the original image; the
# one request; gnupg adds a few MB, not measured, and the upgraded base packages about 4 MB).
# apt packages are not version-pinned, as in the original image; the
# base image is pinned by digest and a rebuild is a reviewed digest bump downstream.
#
# The image carries SSH host keys and a machine-id generated at build time (the
# openssh-server and systemd postinst scripts). ssh.service runs `sshd -t` and
# fails without host keys, so they cannot be removed; image scanners will flag them.
# They are throwaway keys of a test target that is never exposed.
# ubuntu:26.04 index digest as of 2026-10-26.
FROM ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
# ubuntu:26.04 index digest as of 2026-12-03.
FROM ubuntu:26.04@sha256:a8417def3fc37c2d8cf513fe69ef871d415a45a27847779fae461c5047710edd
LABEL org.opencontainers.image.title="molecule-ubuntu2604" \
org.opencontainers.image.description="Disposable Ubuntu 26.04 test target for the molecule scenarios of the mortis.kamino Ansible Collection. systemd runs as PID 1 with D-Bus, sudo, python3 and the packages the roles manage (iptables, ufw, fail2ban, openssh-server) preinstalled, so a converge makes no network calls. Start it as a molecule platform (usage label); it carries throwaway SSH host keys and is a test target only, never to be exposed." \
org.opencontainers.image.description="Disposable Ubuntu 26.04 test target for the molecule scenarios of the mortis.kamino Ansible Collection. systemd runs as PID 1 with D-Bus, sudo, python3 and the test fixtures (iptables, openssh-server, gnupg) preinstalled. A package a role installs is not baked in and no APT lists are kept, so a scenario refreshes the APT cache before a role installs one. Start it as a molecule platform (usage label); it carries throwaway SSH host keys and is a test target only, never to be exposed." \
org.opencontainers.image.source="https://git.rkdr.net/mortis/kamino" \
org.opencontainers.image.url="https://git.rkdr.net/mortis/kamino" \
org.opencontainers.image.documentation="https://git.rkdr.net/mortis/kamino/src/branch/main/docs/images/molecule-ubuntu2604.md" \
@@ -36,24 +37,24 @@ LABEL org.opencontainers.image.title="molecule-ubuntu2604" \
org.opencontainers.image.authors="Defame1297 and contributors" \
org.opencontainers.image.base.name="ubuntu:26.04" \
net.rkdr.mortis.purpose="Disposable Ubuntu 26.04 test target for the molecule scenarios of the mortis.kamino Ansible Collection." \
net.rkdr.mortis.contents="Ubuntu 26.04, systemd, systemd-sysv, dbus, sudo, iproute2, ca-certificates, python3, python3-apt, python3-systemd, iptables, ufw, fail2ban, openssh-server (ssh enabled), gnupg" \
net.rkdr.mortis.contents="Ubuntu 26.04, systemd, systemd-sysv, dbus, sudo, iproute2, ca-certificates, python3, python3-apt, python3-systemd, iptables, openssh-server (ssh enabled), gnupg" \
net.rkdr.mortis.usage="Molecule docker-driver platform with pre_build_image true, command /sbin/init, cgroupns_mode host, /sys/fs/cgroup mounted rw, tmpfs on /run and /run/lock, capability NET_ADMIN, security_opts apparmor=unconfined (not privileged). Pin git.rkdr.net/mortis/name:version@sha256:digest. See the documentation label."
ENV DEBIAN_FRONTEND=noninteractive
# The upgrade brings in updates newer than the base image.
# systemd as PID 1 with D-Bus, sudo and networking tools; the Python Ansible needs on
# the target (python3-apt for the apt module); the firewall and intrusion-prevention
# packages the roles manage (python3-systemd is a dependency of fail2ban's systemd
# backend); sshd, enabled so a converge can test it under systemd; gnupg, which the docker
# scenario signs its stand-in APT repository with and which would otherwise cost it an
# apt update and install in every run.
# the target (python3-apt for the apt module, python3-systemd for the journal); iptables;
# sshd, enabled so a converge can test it under systemd; gnupg, which the docker scenario
# signs its stand-in APT repository with. ufw and fail2ban are left out: their roles install them.
# root's sudo (Ansible's become here) skips pam_unix's account check, whose unix_chkpwd
# helper fails inside the container; non-root callers still go through pam_unix.
RUN apt-get update \
&& apt-get upgrade -y --with-new-pkgs --no-install-recommends \
&& apt-get install -y --no-install-recommends \
systemd systemd-sysv dbus sudo iproute2 ca-certificates \
python3 python3-apt python3-systemd \
iptables ufw fail2ban \
iptables \
openssh-server \
gnupg \
&& rm -rf /var/lib/apt/lists/* \
+12
View File
@@ -0,0 +1,12 @@
# Pins apm for contributors (docs/contributing/setup.md). The Lint and Build tools are pinned in requirements-dev.txt.
[project]
name = "kamino"
version = "0"
# ruff reads this floor too: a higher one makes it reformat existing files.
requires-python = ">=3.11"
[dependency-groups]
dev = ["apm-cli==0.39.3"]
[tool.uv]
package = false
+75 -21
View File
@@ -1,6 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "Run by .gitea/workflows/renovate.yml on this repository's own runner. Policy: automerge minor and patch, majors by hand. Every bot pull request must pass scripts/check_bot_pr_diff.py (lint workflow), which allows only version, tag, digest and pin lines. Image versions are assigned by the Images workflow when an image's inputs change, so a bot pull request needs no version edit. Updates open on Mondays (UTC), so any Monday run can act; the own image pins and vulnerability fixes found on osv.dev open at any time. The weekly window and the groups bound the volume, so there is no hourly pull request limit. Vulnerability fixes skip the release-age wait, so they are never automerged: a person checks a fix that had no time to be pulled as a compromised release. Base-image bumps are manual: every Dockerfile is FROM ubuntu, grouped with the job containers.",
"description": "Run by .gitea/workflows/renovate.yml: minor and patch updates automerge once scripts/check_bot_pr_diff.py and CI pass, and those to code-owned files only once a code owner approves; majors, vulnerability fixes (which skip the release-age wait) and the exceptions below stay manual. Updates open on Mondays (UTC) after a 3-day release age, and an update with no release timestamp gets no wait.",
"extends": [
"config:recommended",
":enablePreCommit"
@@ -11,6 +11,7 @@
"semanticCommitScope": "deps",
"enabledManagers": [
"pip-compile",
"pep621",
"ansible-galaxy",
"pre-commit",
"github-actions",
@@ -31,7 +32,13 @@
},
"pip-compile": {
"managerFilePatterns": [
"/^requirements-dev\\.lock$/"
"/^requirements-dev\\.lock$/",
"/^requirements-molecule\\.lock$/"
]
},
"pep621": {
"managerFilePatterns": [
"/^pyproject\\.toml$/"
]
},
"pre-commit": {
@@ -53,9 +60,10 @@
"customManagers": [
{
"customType": "regex",
"description": "The uv pin that installs the build-stage Python interpreters of the ci image (images/ci/Dockerfile). It is an image input: the merge publishes a new ci version.",
"description": "The uv pin that installs the build-stage Python of the ci and molecule-controller images. It is an image input: the merge publishes a new version of each.",
"managerFilePatterns": [
"/^images/ci/Dockerfile$/"
"/^images/ci/Dockerfile$/",
"/^images/molecule-controller/Dockerfile$/"
],
"matchStrings": [
"\\buv==(?<currentValue>[0-9][0-9A-Za-z.+!_-]*)"
@@ -65,7 +73,7 @@
},
{
"customType": "regex",
"description": "The job container of each image of image.yml (matrix job_image, ubuntu by digest). kaniko unpacks the image over the job container, so its release must equal the Dockerfile's (check_image_versions.py pins). Tag and digest updates within a release arrive here; a new release is a deliberate edit of both (rule below disables major ubuntu updates). Never automerged: the job holds the registry push credential (image.yml rule below).",
"description": "The ubuntu job container of each image in image.yml, whose release must equal its Dockerfile's because kaniko unpacks the image over it. Never automerged: the job holds the registry push credential (image.yml rule below).",
"managerFilePatterns": [
"/^\\.gitea/workflows/image\\.yml$/"
],
@@ -77,12 +85,12 @@
},
{
"customType": "regex",
"description": "The CI_IMAGE, MOLECULE_IMAGE and MOLECULE_IMAGE_<release> values of molecule.yml are a multi-line `>-` scalar, which the github-actions manager does not read; matched here by its exact shape. Used by the pin-follow rule below.",
"description": "The image pins of molecule.yml are multi-line `>-` scalars, which the github-actions manager does not read. Used by the pin-follow rule below.",
"managerFilePatterns": [
"/^\\.gitea/workflows/molecule\\.yml$/"
],
"matchStrings": [
"(?:CI_IMAGE|MOLECULE_IMAGE(?:_[0-9]+)?):\\s*>-\\s*\\n\\s*(?<depName>git\\.rkdr\\.net/mortis/[a-z0-9._-]+):(?<currentValue>[^@\\s]+)@(?<currentDigest>sha256:[0-9a-f]{64})"
"(?:CONTROLLER_IMAGE|MOLECULE_IMAGE(?:_[0-9]+)?):\\s*>-\\s*\\n\\s*(?<depName>git\\.rkdr\\.net/mortis/[a-z0-9._-]+):(?<currentValue>[^@\\s]+)@(?<currentDigest>sha256:[0-9a-f]{64})"
],
"datasourceTemplate": "docker",
"versioningTemplate": "semver"
@@ -90,21 +98,28 @@
],
"packageRules": [
{
"description": "Dockerfile base-image tag and digest bumps (images/*/Dockerfile) MAY automerge. Kamino is the untrusted side and the bump pull request's own CI exercises the new image before the merge. Placed first so the major-version rule below still turns automerge off. The merge publishes a new image version. Today every Dockerfile is FROM ubuntu, whose bumps join the manual ubuntu base images group below; this rule is the safety net for a future base image of another kind.",
"description": "Dockerfile base-image bumps automerge once a code owner approves (images/** is in CODEOWNERS); the Images workflow builds the new image after the merge, and the pin-follow pull request's CI then runs on it. Placed first so the majors rule below still turns automerge off.",
"matchManagers": [
"dockerfile"
],
"automerge": true
},
{
"description": "The Renovate job container of renovate.yml runs with the job token: hand-bumped, never by the bot (the bot-diff check would refuse a change to that file anyway).",
"matchFileNames": [
".gitea/workflows/renovate.yml"
"description": "Renovate's own image never automerges: its job runs with the write-capable bot token. One weekly pull request moves the pin in renovate.yml and lint.yml's copy together.",
"matchDatasources": [
"docker"
],
"enabled": false
"matchPackageNames": [
"renovate/renovate"
],
"schedule": [
"on monday"
],
"minimumReleaseAge": "3 days",
"automerge": false
},
{
"description": "A new Ubuntu release is a deliberate edit, never a bump. The molecule-ubuntu<NNNN> images are one release by name and by contract (extensions/molecule/image-smoke* assert it), and every image's job container must run the same release as its Dockerfile (check_image_versions.py pins), so a base-image major in one file alone would fail the check or the build. Tag and digest updates within a release still arrive.",
"description": "A new Ubuntu release is a deliberate edit, never a bump: each molecule-ubuntu<NNNN> image is one release by contract, and each job container must run its Dockerfile's release. Tag and digest updates within a release still arrive.",
"matchPackageNames": [
"ubuntu"
],
@@ -124,7 +139,7 @@
]
},
{
"description": "ansible-core and ansible-lint move together (the lint rules follow the core version). Minor and patch bumps automerge like the rest, majors are manual. A new ansible-core minor can bring new sanity findings: the shared tests/sanity/ignore-common.txt covers the known ones, and the Build check (ansible-test sanity) is the gate, so a bump that shows new findings stays red and is not merged.",
"description": "ansible-core and ansible-lint move together, because the lint rules follow the core version. One pull request moves the ansible-core pins of both locks, which check_image_versions.py pins holds equal.",
"groupName": "ansible tooling",
"matchDatasources": [
"pypi"
@@ -135,7 +150,7 @@
]
},
{
"description": "Hold ansible-lint at the newest version galaxy-importer allows. galaxy-importer 0.4.44 (the newest release, used by the Build job) declares ansible-lint<=26.10.1, so a pin above that makes pip fail with ResolutionImpossible and Lint and Build go red (seen on the 26.11.0 bump). Remove this rule, and raise the cap, once a galaxy-importer release lifts its ansible-lint limit.",
"description": "Hold ansible-lint at the newest version galaxy-importer allows, or pip cannot install Lint's and Build's tools. Raise or remove the cap once galaxy-importer lifts its ansible-lint limit.",
"matchDatasources": [
"pypi"
],
@@ -145,28 +160,38 @@
"allowedVersions": "<=26.10.1"
},
{
"description": "The job containers of image.yml (matrix job_image, ubuntu by digest) hold the org registry push credential while the image job runs: never automerged. Their ubuntu bumps share one branch with the Dockerfile FROM bumps (ubuntu base images rule below), so that pull request is manual too: a group automerges only if every update in it does.",
"description": "The job containers of image.yml hold the registry push credential while the image job runs, so their bumps never automerge. Their ubuntu bumps share a branch with the Dockerfile FROM bumps, so that group is manual too.",
"matchFileNames": [
".gitea/workflows/image.yml"
],
"automerge": false
},
{
"description": "The Dockerfile FROM digests and the image.yml job_image digests of one Ubuntu update move in one pull request, so the release pair stays in step and one Images run covers both.",
"description": "The Dockerfile FROM and image.yml job_image digests of one Ubuntu update move in one pull request, so each release pair stays in step and one Images run covers both.",
"matchPackageNames": [
"ubuntu"
],
"groupName": "ubuntu base images"
},
{
"description": "Safety net only: kaniko is pinned by layer digests in image.yml and no Renovate manager reads them, so it is updated by hand. If a manager ever starts to read it, its bumps are not automerged.",
"description": "Safety net: kaniko is pinned by layer digests that no manager reads, so it is updated by hand. If a manager ever reads it, its bumps do not automerge.",
"matchPackageNames": [
"/kaniko/"
],
"automerge": false
},
{
"description": "Pin follow-up for our own images (git.rkdr.net/mortis/*): moves the image:<version>@sha256:<digest> pins of lint.yml, build.yml, molecule.yml and gitea-release-key.yml to the newest published version and its digest, and automerges. The Images workflow's completion starts a Renovate run, so this pull request opens minutes after a new version is pushed. The pull request's own Lint and Build run in the new image before the merge, and scripts/check_bot_pr_diff.py allows only these pin lines. The registry lists tags and digests anonymously, so no hostRules are needed. A major version stays manual (rule above). One pull request moves every image an Images run published (ci and both molecule images), so one Molecule run tests them together. Exempt from the weekly schedule, so the pins on main catch up with a new image within minutes.",
"description": "Our own images are built from main by the Images workflow, so there is no third-party release to wait for. Docker only, so another kind of dependency from this organisation keeps the wait.",
"matchDatasources": [
"docker"
],
"matchPackageNames": [
"git.rkdr.net/mortis/**"
],
"minimumReleaseAge": "0 days"
},
{
"description": "Moves the pins of our own images in the workflows to the newest published version in one pull request at any time, so main catches up minutes after an Images run. It automerges once a code owner approves (CODEOWNERS), after its own Lint, Build and Molecule run on the new images.",
"matchPackageNames": [
"git.rkdr.net/mortis/**"
],
@@ -177,7 +202,7 @@
]
},
{
"description": "Look the pre-commit hook repositories up with git ls-remote (git-tags) instead of the GitHub API. This run has no GitHub token, and the github-tags datasource then either skips every hook (skipReason github-token-required, dry run 3880) or is refused at once with 403 rate limit (githubTokenWarn off, local run). git-tags needs no API and no credential, and it uses the dereferenced hash of an annotated tag, so the new rev is the commit, as pre-commit needs. The `# frozen:` form is kept by the manager's own replace template. It works only together with RENOVATE_GITHUB_TOKEN_WARN=false in renovate.yml: the token check runs after extraction and skips every github-tags dependency before a package rule can change its datasource (local run, Renovate 44.161.0). git-tags has no release timestamps, so minimumReleaseAge cannot delay a hook bump: hook bumps are never automerged, a person reviews each one.",
"description": "Look the pre-commit hooks up with git ls-remote (git-tags), because this run has no GitHub token; it needs RENOVATE_GITHUB_TOKEN_WARN=false in renovate.yml. git-tags has no release timestamps, so no wait applies and a person reviews every hook bump.",
"matchManagers": [
"pre-commit"
],
@@ -194,7 +219,6 @@
"pypi"
],
"matchPackageNames": [
"apm-cli",
"antsibull-changelog",
"galaxy-importer",
"reuse",
@@ -209,6 +233,36 @@
"pre-commit"
],
"groupName": "pre-commit hooks"
},
{
"description": "requires-python in pyproject.toml is the floor ruff formats for, not a pin: never updated by the bot.",
"matchManagers": [
"pep621"
],
"matchDepTypes": [
"requires-python"
],
"enabled": false
},
{
"description": "No lock file maintenance for uv.lock: scripts/check_uv_lock.py refuses any change to a package other than apm-cli, so a person refreshes uv.lock by hand.",
"matchManagers": [
"pep621"
],
"matchUpdateTypes": [
"lockFileMaintenance"
],
"enabled": false
},
{
"description": "apm-cli (pyproject.toml and uv.lock) gets its own pull request, never automerged: CI never runs apm, so a green run says nothing about a new version. Placed last so no rule above turns automerge back on.",
"matchManagers": [
"pep621"
],
"matchPackageNames": [
"apm-cli"
],
"automerge": false
}
],
"lockFileMaintenance": {
+40 -1233
View File
File diff suppressed because it is too large. Load diff
+7 -9
View File
@@ -1,5 +1,5 @@
# Pinned tooling for lint, build and Molecule, used by CI (.gitea/workflows) and locally:
# python3 -m venv .venv && . .venv/bin/activate && pip install --require-hashes -r requirements-dev.lock -r requirements-dev.txt
# Pinned tooling for Lint and Build, used by CI (.gitea/workflows) and locally:
# python3 -m venv .venv-dev && . .venv-dev/bin/activate && pip install --require-hashes -r requirements-dev.lock -r requirements-dev.txt
# This file holds the direct pins; requirements-dev.lock is their hashed lock (every transitive
# package too, with the sha256 of each release file) and is what gets installed; pip refuses an
# install in which the two files disagree. Renovate bumps a pin here and regenerates the lock
@@ -10,13 +10,11 @@ ansible-core==2.22.0
ansible-lint==26.10.1
pre-commit==4.7.0
antsibull-changelog==0.38.0
galaxy-importer==0.4.44
galaxy-importer==0.4.45
reuse==6.3.0
molecule==26.11.0
molecule-plugins[docker]==26.11.0
# molecule without its Docker driver: Lint's run of the script-tests hook imports it in
# test_check_scenarios_load_checkout.py and test_run_molecule_scenarios.py, which skip without it.
molecule==26.11.1
# proxmoxer: the controller-side library community.proxmox's modules import (they refuse anything below 2.3),
# so lint and Molecule run where a consumer's controller would.
# so lint runs where a consumer's controller would.
proxmoxer==2.3.0
# apm-cli: for changing apm.yml (run apm install, commit the lock). Keep it at 0.36.1 or later (#252):
# before 0.29.0, `apm audit --ci` compares the whole .claude/settings.json and fails on any hand-written key.
apm-cli==0.38.1
+846
View File
@@ -0,0 +1,846 @@
#
# This file is autogenerated by pip-compile with Python 3.14
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements-molecule.lock --strip-extras requirements-molecule.txt
#
ansible-compat==26.11.1 \
--hash=sha256:d22e0a48d8d79e727b0f56db3573b02bde2189b5bfbef067230a34c0bcbff94a \
--hash=sha256:ed9717fde1705a58678c1503e46316a36f7392229c2444d2b2f1b6de12be9f25
# via molecule
ansible-core==2.22.0 \
--hash=sha256:8285d4cc81c3e3eb2d954e75531724fe0ae154d228475638123451f034a74657 \
--hash=sha256:bf50b4a0cfa985e30585c7ba301897ea7050d224ca49d2816cab10e33a160e1c
# via
# -r requirements-molecule.txt
# ansible-compat
# molecule
attrs==26.1.0 \
--hash=sha256:c647aa4a12dfbad9333ca4e71fe62ddc36f4e63b2d260a37a8b83d2f043ac309 \
--hash=sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32
# via
# jsonschema
# referencing
bracex==3.2.4 \
--hash=sha256:82e9e738b63fca213c33211d30b0b1ca330896a1091736e78da2c1bcda93ab30 \
--hash=sha256:c1e67eb59f81445dee15b2c588b7c81352b697cfbd6c4931a2943ea6b71eb5ea
# via wcmatch
certifi==2026.11.20 \
--hash=sha256:7422df25243767b9877031a2248cb14d09ddac9beee846f4cef3d5c9191d488f \
--hash=sha256:af1cb240a8133f105aa52684a3a3258339d7f2fd0bd4e2812698ff5cf5588c4e
# via requests
cffi==2.1.1 \
--hash=sha256:046bfc24911b37851ee1b51aab8bffe713d89c68c6a057b09484ce9fd5f69b4e \
--hash=sha256:06c72bb76605a4b0cd0aad6930b69d4baf7dd5d806cfc409b824191099700e66 \
--hash=sha256:0beceaabe56af686895136a2de78db54ecd8e4046b236b8fd6d6cb61389e9bf2 \
--hash=sha256:154852545011f779917b11c78db2358d095da62a9a172b78ad0a583ee5adc0d0 \
--hash=sha256:194cffa889098ced9976c3fc6340305e43f6303657d298da55366907c05c22d6 \
--hash=sha256:19ee6127ee34de7d83ce3d371ebc5ed91addbdcc39f9ab15ce4eb35a4e534971 \
--hash=sha256:1a18a57b58cfb21fc28d72e876acf10eaed67a1ed96226f92af4df681d571c4c \
--hash=sha256:1aa5645c30469b09530c4ebca77ebf8f17618293c58f8549cb1a543a50236e7d \
--hash=sha256:1dea0e4d7d4f11f619fe8c1d76caf49e24405b4b5743c0e3be16a500ecd930c9 \
--hash=sha256:208f941bb9d18e768138677f0a6d2ce01f590df56043dda1df1535ac57c88517 \
--hash=sha256:210019b6c7cf07f081b4c54635c8cf744377001350e29cc0f81c4377b4797735 \
--hash=sha256:246fa40ce8645a614ff682e0b70f37134e460eaf93a775e0cbe3cca585a67a80 \
--hash=sha256:25792eac27877609e7bb06d42ff88278a6624fff2ba9bbb523c09616b117e80f \
--hash=sha256:27350daa11d4f10c540e6e89dada4c54feb7256ad03e9a4dc075ebad7ba360d1 \
--hash=sha256:28907ab9bfb6aa13184cfc17c6b8e1023c5ab6fd7076d8c20a35e59fe04f8f29 \
--hash=sha256:2ae64be792b8966f2c69538199728b290e34726562896df1e5dc8ffd8d8188e8 \
--hash=sha256:31348097ff5bbe827ccc41795d4dd099d9f0625e7def00ee653c137a490c2a6c \
--hash=sha256:3143d81e29e1e20a9ce10901ec369012947876596f75a222235965f2b7ae832e \
--hash=sha256:3222ba5d678f80a030e6afbcc33dc1ae5cb45facabb61cee2c7016b8432fde48 \
--hash=sha256:3311ed60d36f83378794e1009ac6258bafbf81f7888b4caa7b35a521e3f95813 \
--hash=sha256:334644fbac4eff73d985a17a91226df55d0f394160c4cfb880e084c8f7161cac \
--hash=sha256:34e261f78cb6ceaaa36f42f2613f4380d94d9c759a9c73c769ee6e0247364632 \
--hash=sha256:363e05fa78e15116c3c32c210ee36884fd6b9afa6d440e47112c3bd511d64cb6 \
--hash=sha256:398aff33cee2767e3e781d2554c54bd0dff386bb437581e0d8011fde1a942ec1 \
--hash=sha256:3d22a20b1fb1632cc72c22f95f7b0d2961c3e1c235f245ba4c606c4771035659 \
--hash=sha256:42a494cee34437f05546455144f2b5d9ac09b1face62bcfce597d2e521066688 \
--hash=sha256:42e2f76b9455f5a9a844f770bf3e200ed3da0e15f5df3db9c31fe80b04b3d004 \
--hash=sha256:42f6930c31dc7f50732c9ae793c2786c7b6b044195967bbdde40bb9be81c4cc0 \
--hash=sha256:456a61fa52d579ebf9df2e9552ead5129855dbaff6c1e5a9b1bc408809bdc062 \
--hash=sha256:471cee653ae88de62096552e6d24ccb4a5adb8c8c9f10b5054d0122c15bf2779 \
--hash=sha256:49cbc70e6542d4ccccb936558d1064a8012541e78f821f955cff24e357776c94 \
--hash=sha256:4a7c934f7360e8cd64fe9efadcbd10c7c6364f531e432b9a4bf5ccbc9e0e8b50 \
--hash=sha256:4be96343e422f2dfcd12ab5c9f5aebe03f82f737c6bffeca6830b3875cb44aab \
--hash=sha256:4f42141fc14250de6dde5ee7ea4432be017252d91f19c5ad043c084cea629cac \
--hash=sha256:507a24c282e0f42f8ed737cf048572cbf580468da5555764a8331735e9c736b6 \
--hash=sha256:51b31d1c98274844cfd7838ce00bfc27c7423a4dc00fc0772fc3331c2cc90676 \
--hash=sha256:58acb8ab8e295e6c5ea12f888cbb13cf21511ef2a3303a23f4325c29d17fe5c1 \
--hash=sha256:5a59cc1c4442bc3d5c703bf720b51138d0bfc173618807c9ee2490a7541dd3d9 \
--hash=sha256:5bb4e7ea95dcd6a014a6fef62e62467d67d8e582326443f3d68e71d6320a9fcf \
--hash=sha256:5c58fe613dc5e5336357eff555824a314d8e43282600435c8d1cb6a7a2fedd13 \
--hash=sha256:5e7cecbaadb83884793e05828cee59b210b24583b9c7425d0ba6a754fe22eb4e \
--hash=sha256:616f097f2fe415bc92a247f02e11f634e1f9e9a83d327e3c915c15089c87869e \
--hash=sha256:63bbfd5ded17c4840ac07cd8f1c21ba9d9708141f840b324f422f41b207e3973 \
--hash=sha256:64faea20f4e2613363a1a9b9c7dd73058f3ecd00133a511e72ad7c511658f527 \
--hash=sha256:661c298b4821edebead0c91edd2b00374d67ad7c5a1f7a91d4442633b79d6a72 \
--hash=sha256:68e62fe11f30d5ca8289242866f0a5291402d8529ca2178ab8afc5c9694ae890 \
--hash=sha256:6a8dddef476fab96d066d578fc88526767b836ab5ab21754e1d5bf3879c31c7c \
--hash=sha256:6e192623c49c94421616a5778fba35cf0d5a8d000650c1967ef4448ee5cdd990 \
--hash=sha256:7225e4514edb64eb6740324353e0da0711954fd8d7da4576755b1c6e09b697cd \
--hash=sha256:75f80557d1389eddbd0de2681f6a390a0c5338c31ddaa821381c203fc3fd50d9 \
--hash=sha256:770de9db11e84213beec501cfcaa013b019820ca881e03344dea5844f7876d94 \
--hash=sha256:7750c6449dff7864bb9bb27ddfb0267756189201a3afc911d82b3caacd70dfc3 \
--hash=sha256:7bde5e4cc5c10140859842b9d383af292b22639a4dffb725314baf45968cef80 \
--hash=sha256:7ce713ace7c0e4520535b42b77eaa742c16dab813978064913e5a3cf82973b41 \
--hash=sha256:7da0c5eff80f0197f3b3d1232ec5a682a9325f4ae9016a78f5f5ca35f9ced1f5 \
--hash=sha256:7dbb61fe3a7699468030f71bbe5f8a0e326a151daa91beb11a6fc1f980c55e1c \
--hash=sha256:811bd1e21d32de12efca32393a0ab3f5133b54fce9bd44b8bd77ab07da14bf6a \
--hash=sha256:8ef53b2de9bcb9197d31854256575d59dbac0cba72ac627bb291ef5eceb74be4 \
--hash=sha256:937c0052c05a31ca1daf18de3158eed4dbfcb9cc107adbea227728d647be701e \
--hash=sha256:9d2055050ea716bd38b7f7f1579c275386646b4894c155a3e2f3cd62ed41b7c6 \
--hash=sha256:9f8d177621de5cb38ee3e731eda45d421db093ec0739f46a5594babda7987a98 \
--hash=sha256:a2d7755bef5a12ed488f4ef1f1b69ee9191d7396083b755a5d2295f6edb4768b \
--hash=sha256:a48d62ab9d6f4f98c983223a547af44be6ca3691074c31cecced6facd3ba2dc1 \
--hash=sha256:a4f00aa42f75d6e4595e8866e748cc1705adc0cddfeb2ca86d0d03993d63ba03 \
--hash=sha256:a6e721d4b0e45d5b65e87534470e67b18dcd092c83f68fba09f152b9cbc061af \
--hash=sha256:a730a083190634c65cca36ba5f489531576ebd79bcd5c8e172130f6453127231 \
--hash=sha256:a931079504ecc49efed7744c476a5c343a92fabf66dec2db95edb1b2fdc770e2 \
--hash=sha256:aa9511c62d14da7aacc9b4bf51f3f697a621e83b2d6919008243c3aad168eea3 \
--hash=sha256:ab36d55f9ed2d067327667c2fea18dda018eb628dd6347aa01dda6cf1f5d3836 \
--hash=sha256:ad2c86c495b899d862ea0f4b42891b8713a3bd45dd4105c7fd51c2a72f39f3a5 \
--hash=sha256:aeae0e330c9f6acd681f647d46cefd30c29f93e3392882e792e82080c9691399 \
--hash=sha256:b0431303acaea1089ad4b3e9ce4e6518193def1118d4073ca848635ee4ea2e96 \
--hash=sha256:b5bdfd1c873d4e093aabc0ca84c4ca6dbc4f752afb5c86f146d9742580c9da2e \
--hash=sha256:baed1e86cc735622097354b9d1281406caf42ff42a886d29faa8e8d1630333be \
--hash=sha256:c1453022f490d2459a11819d83ad1d586e9ff65a12ac3e705ffebd46d3685dcf \
--hash=sha256:c26608d2222fb1e94487e4a387d85f13eb55d5ed725cb25a0c589ac4ee60e7bc \
--hash=sha256:c7659f22557c5a0bc4855cd635f55edec690cc008a40768527762cb9fb263455 \
--hash=sha256:c8c69575568085ba0b1b10c0249d779a214aea6f6522e949a0fc9fb0fcb449d0 \
--hash=sha256:c8d2c9fd1f2d16f780d15127abb050d13d1a76c03a4bd87d7e4980e45e511e12 \
--hash=sha256:ca82be1a1d406ecfe1d25dc16cb33488e5a16bf4438c9fb590484ea29d92478b \
--hash=sha256:cc572dace3f60ef98d7b12ff411d20f5362feb31a0439eab0085bbfd349982d7 \
--hash=sha256:d18e5ac0f2f03f4f518d3e23db0f0cad7faa1da8620e9c09461d443bbf6e6692 \
--hash=sha256:d28630f5854ab07ab1fd4aba756de52326c82e6be15d414b12793f1975048b54 \
--hash=sha256:d9c275eaacd24aa73f94ffd6de08fc3f932424d8b6c376f4bed7cde376fe7bc3 \
--hash=sha256:da0e573f9f97159390c89d9f1a9e41908b66d408cc5b58d08cf3847d844c531b \
--hash=sha256:dd31f52ea1086513bb9df30f8fcee9b8918323ae067a3d5b78bc826a000712be \
--hash=sha256:dddad92b554513a31f272570678ba307fb9f618f05e3d4a5eacafff9eae03e1d \
--hash=sha256:df423d40ee8654634421812bc3b196da3f9bd7d32929da813f8394c4348a5358 \
--hash=sha256:df913725b79db7bcf03448f36b7bf8815363417d5b58deecf9305e3e30f0f21a \
--hash=sha256:e0bcb7e0f677f543555d2adff3bf19c05f66cdb4796e5ff602442ab2fe3c4ef7 \
--hash=sha256:e2d65b31f36619cda3999b78b2aa9632e76b78448e7a56fc4240824200e7c4fc \
--hash=sha256:e6e8cff14d6fb0be70a09c0bdc58096f501952d04624ebf867e0e56da2df8960 \
--hash=sha256:f16c709686a78c727bbbf059f92b0bf41c6fc60deec706d2dc19f529175a6125 \
--hash=sha256:f24fb43132a4c6b4cb4eb029492919b2db645be6808d738f244fd146c03c32cb \
--hash=sha256:f53e442b08449d42821fa4a4fba000095af9f62742a500f978a9f557ec44339a \
--hash=sha256:f5cfbc5fe74540d335175b656c725d74d90e3730c626d92575eea35029d9afaa \
--hash=sha256:f81b3b8f3d4e343550fa4baa0e479bba9f2d29ce9c2e9b51d1ce1718d7442fcf \
--hash=sha256:f8ec5e643a9a937f64e1999eb9f75d072263751912dc5cd06d3c85f8f44be7c3 \
--hash=sha256:fb92203a88b3d3053034db775110081c49d28be6551923805e039924093761e4 \
--hash=sha256:fcd22650c908d7b7da162bbfaab594a1227a15d1643a98c68b122ac642fa2264
# via cryptography
charset-normalizer==3.5.3 \
--hash=sha256:00edb7682962c596f774bfa126e6b6f885b7af2319f448d327591c284a482de8 \
--hash=sha256:01b35bec964b92b89bdf94adf931d2e80a15f1c7b93bf850b4430cca23f7a2a2 \
--hash=sha256:020cabbb90926b2d8b022a5e057ab349f28844b61f34117323fc08c2971915e3 \
--hash=sha256:02b1abf64742b2d0782172cd2542616e462c201c829c23aff833390babe2967f \
--hash=sha256:06d07272f70d9880fba32d4876e966ae4dc9961134bc989066a0901509dfd8cf \
--hash=sha256:0810592b80dc5a97f8103443460264b588f31c6baa8a20abae7c683435d8117a \
--hash=sha256:085a5d1f49eaf96596d79494fcab18d9a32db6e345da15d6debfc90110b20679 \
--hash=sha256:09833ba78c91f0d1fd06387c69dae9f079428b77ea05eaaf1553eecead31fb68 \
--hash=sha256:0b3fc6f7dd9db4a7782e65dc98eb80b2a91a854cf54a03dd93649be2f7ca638d \
--hash=sha256:0c0fe07631dce6dae788a59c20ed927adc6feeb2d9ed440747eb367d89822a45 \
--hash=sha256:0ca25f1b1167e9fb94d93d3708df0b631de241bf8440947b0cb9f8c4cb66fed0 \
--hash=sha256:0ca2da4a505fae7ef95922f8d48235b2e49ff8f10f4edcc0481e5f6526ba3841 \
--hash=sha256:0cf4cb8d75090a8da3bd30c0963b2c6c6114e791c6fc060c3cef8971497b1f04 \
--hash=sha256:106b9d0438e2ff0a0e8ebd869273fcb3640af28323bba8651c714c57efb38e51 \
--hash=sha256:11ad35a0b856ad8bbd0c9e900c069461a4661694714aa17b6e6e2e8621e1c373 \
--hash=sha256:139aeb8ca63946dc79364c37f2c9cfe5c1b7f3882f2c47484d0e54bf14b921b0 \
--hash=sha256:1714ff1ba001da5241a585fbd17a7742a61ad34efb4be8404aca5679f51e53ea \
--hash=sha256:183aee7e84789391e547ec1609f8269332b9b123d21e97f7ef79eaa474c47e08 \
--hash=sha256:1a34385837db59d5de814c9f1e0f4157b571f9ce0eabdaeace410aa93bf5df62 \
--hash=sha256:1b2704f4651539eab50ba104a975b96c3cd5246011aa0755d2dd71ac12546644 \
--hash=sha256:2246873913d7db43ed5a3d98ace398b989b2ae20b77c8d761a7bef5fdb9bed42 \
--hash=sha256:249bf0b6f43985c33c83adbbab0ca71246ec24c82d960fa00c4ddb2cfed25db9 \
--hash=sha256:256b434b2860ef9da1cb6a5fd4ebb5d600936668e50e2035858948b96b068ecd \
--hash=sha256:26c6ad87bb79628954b52f8f7b9e18ab5cd9667546712ded9689fb7677e630d6 \
--hash=sha256:277b72183b96879887f0c3aa0bdac1fee08a6c7e67bad53145c4fd416d99dfd3 \
--hash=sha256:28ba8e6361e0f319641707484994096ceb77e05c29eaad2919756218c0c89001 \
--hash=sha256:28d954a437bfa5fcdfe7ad8902cf4347a8486f34a86c5f39003bc1288eb67d72 \
--hash=sha256:2978c799237eb66619d8951d2ab7efd317414cb6682160e05614ce1c8b5c905f \
--hash=sha256:29ac44f5878142128ffe4fa7e041ddc4cc5fafe43983245b9a141908c40b515d \
--hash=sha256:2a6f937e0b70133d1f826d0a253331b6fe1a4c874808cc12e16f2fb8177042f4 \
--hash=sha256:2b7797a5b0cb197f118fd13b41c14c5a3c38dd625a87c1da58a3066cf53254fd \
--hash=sha256:2c4e0050b732ee3dca3676a5f5cf7fbd0c131761c194f1bb1d24c055fad071cf \
--hash=sha256:2e7fbd98443f28a5ed8004f0b058edcc4720a3d344adf007c0b7f1adbff2f59f \
--hash=sha256:2f2d973d3c79fbd1066d63d1bafb2ade66934c0840ed149f6fac13c3fdf80793 \
--hash=sha256:323d5cf6df3ea724afcc3bfb07c73be06d2e8200a8b6b37979a300ae1e7836d0 \
--hash=sha256:326a7a0e3715c3ac24c21e7a3b831d6799cc795bff260aa49c23b69025852f99 \
--hash=sha256:34054580168b04e90e6c7c0f6c80173fa2d4f72c4db91c9095598454f96d6389 \
--hash=sha256:366f5efe95a6149ecbcebf779c2594a6a4ff6fc116402826c72ed0eccd6aabe9 \
--hash=sha256:390ef7c7e018c0abb8c0ec2d28ee137567ff50c3706facf6d115cac832ac993b \
--hash=sha256:39229c222445415db07a0be4dff8ad1addc3126644d7aa72d73f1575b637d69e \
--hash=sha256:396fdf2d4367674531a7c8d54ecabbc8e5131e3a1a06270285eb99f3140143df \
--hash=sha256:39e019884c8f857393df954d35f42bf99c5ab85af226fe74d1410188c6fec31f \
--hash=sha256:3ce4e4587e451ebc7d9899a7a1f539ea30a3c712d7bc8e0d256923c697fd5dcc \
--hash=sha256:3e8da696ef1935a019c10ec16555a062183ddf6d5901e296edeca4b2a8f84e1d \
--hash=sha256:40b2ba91f0851aa864994b3c7022e4d96d09026717e6a72e44410d6fb3a74a13 \
--hash=sha256:45aa4ccf5a6caba138dd0f8bf36fa3e26654585d534881b62ce5e4fea2487772 \
--hash=sha256:4831fb33e98e92140fa17d4d673a9f49f9c0ddd056115b722858793e4b86b0c5 \
--hash=sha256:48f7c7f537246bb3af2b3139f44716a30b21e78c2fd1cff0f3e392fbd55d8044 \
--hash=sha256:499e4bbeb1e79b14756311a1d12cb88112f244423e152d80981d9bcaff3279fa \
--hash=sha256:4a991dbd7aec868fe10802b02bddbf898173a47ba236f2d6afb4ab1f98243534 \
--hash=sha256:4ff5e27478681ef1b13b036baaf9beaf9b4c6990e903c752ad3b8764692c6d6c \
--hash=sha256:56405211fa124c393eea14b3aeacf5b90de72b1f69b0a60c9bc40b01dfe71a42 \
--hash=sha256:581d6e7df9b58d34147e21efde42a480b5087fe54f31e42550c26321566ba1e4 \
--hash=sha256:5970d148182b6b7c22b8290a81f02fb521c4e7aee6747743b3e645db58d5001a \
--hash=sha256:5f86753952f7de3abc7ce871f8239ce4e0d32a91c84d22f3a667e669907c3897 \
--hash=sha256:6118055f4ad0d94e016eadbb86caed9caf2c9033631ed70964ba631c1336984f \
--hash=sha256:61e32fdbf56f4cd25a1efa451c8b5fe886fc5e00143ccaacafdf21f301fad059 \
--hash=sha256:61f3258f700412c68fde407e7c749ed6930e795ea8f5ead9a40afddefbec12c4 \
--hash=sha256:6423accb6ecd1456bf824bbac98ba919398523a69ee5f1680dd1da88769de866 \
--hash=sha256:643724071b01cc0369026e259850791212cc187c6031d0e930abcd253f128e0c \
--hash=sha256:656b9744bac4493561d28b56d7d646afd7a8471254ef7004d849aa8368020037 \
--hash=sha256:6651fecdac146ecfa52700e02a5fa3b3677bddf5fced4983b43e904244de3f6a \
--hash=sha256:67bb767a8de7a2b1164c74fdbe5cdc32b9c15d7142efd9a6dc77ff63da94e846 \
--hash=sha256:6b702d36c565f6c650f4b479488f475b2982132ab8d0840d42b1442462c21056 \
--hash=sha256:6bfbbb9414dd0f5b81c259deb7e50b4b44e65e05879eee482351bdabed49d7f4 \
--hash=sha256:6c80b4e83e2fbddd25fe27804cdfc45ef71bb387522caa575af42118d72dc970 \
--hash=sha256:6c8abe7d59bbc891e5080b8b142c36db93154f840c4baf7c83ad6273a1a15397 \
--hash=sha256:6dde7edd9ba5005389bc7c0ab461411f281dbacb2b06e52bd23592eba42bb503 \
--hash=sha256:6eea31136fd924ecbb4e7c4f3df4b18230409629a22b3896f38a6754d5857794 \
--hash=sha256:70f65dd0c2ed79ea2d9776096e9c7d25e398c2c03eb31877753598d201d91784 \
--hash=sha256:73b4ddf1230df56c9e7017a16e3f5171b6ef0e4ff554a418a370d7ac7245bd84 \
--hash=sha256:747e83d415939612284afdc99f15295382639c0d3fc69a73aeb84b380d1f4af3 \
--hash=sha256:7a7e5bb8974842ad747d4a2b9fb928f84c3cdbe2c2fd7e405197fc1a1badaeaa \
--hash=sha256:7c313b46730b4a68bb31450973467313b2c496fefa42ae316b86c186cba74613 \
--hash=sha256:7fd816f466883dcaac196ac77271d0292eee4a81f4db1191b95d15328f335937 \
--hash=sha256:7fdd11094a0b07bce306b359fa7311c71d93466d967b3b345f2e9f03d8b2c959 \
--hash=sha256:806e72ebaeef54d7faa03414be9e8409eb3dcae49fba089d62063a60c0b5a4e5 \
--hash=sha256:81132eaffa984f0a399233df4cd383caad18e8cadc6c24c568cf9324732a9768 \
--hash=sha256:8231365b03b702b516aad35c9515694177ac31c9dc6240326f07308a4c45c708 \
--hash=sha256:826d82356907350f345cf0aa744d43a69ac7948bd60f460f997cde86928beadf \
--hash=sha256:84356c7b7ddf090e3e4692cb99fc820e6189b5f6662ca7e8589f41095cc8efca \
--hash=sha256:87d5a237d6531c654e7b9b319be9ba7e368665c466e02a03cfd4d3d77730782e \
--hash=sha256:87f7d6c595465a25d33fa3d5215a571a98c4cad00ead3ad18ebfb62adb3d3e6e \
--hash=sha256:885f202d6e4e2298bea9802ffc6d8c7dc45394199a8dd9e1492f05fe32dce311 \
--hash=sha256:8b969f0309de905101bc3d2471c112e9ccbba711a7590b12d51f372b4163688a \
--hash=sha256:8baddc6349faf49edae4d1322f12b681b9e86acacd01874457c997437ef4ccaa \
--hash=sha256:8c4dfcd3269f13dff7f29f9c332d54a4a21f17be818b49e769e111befd4d39e6 \
--hash=sha256:90b1ff6cb9c7a204a3b79b1b0ed6ac8a1d8fed3b6dc69e50ae5de0f358ee81d4 \
--hash=sha256:92bf85ecec3ad6374ae50d870bd1deb34de12bc1158b5fd09036d4c435c6f58c \
--hash=sha256:92ddc32b6a1508ea145f4f7995e00666db454b8fd3e2cae6c2ecbde4f4d44616 \
--hash=sha256:948fb3649416a70bcdbb267d79c7048e8aa16e989ab9da09f416e67cdd3d6b8c \
--hash=sha256:94b595e64bc2927f679774de50df340b7828dc1c07c99149ba7c2d0828dd8bf3 \
--hash=sha256:94c9d5d91c16554f6397b823d9e47181ba100d830ab16b5d720adc229e17b2e2 \
--hash=sha256:9510da88bdebc903be7844f31523ac8d7b3f63e167db54b6045104a2354afa6a \
--hash=sha256:96387278c3b17bc1170f80693398d0babac7b41df128ced8e27588a7155d95b2 \
--hash=sha256:96e268b0cbda016ac519513294fcd17032264085b600abaac58b93049477e132 \
--hash=sha256:9902e80096a94cf70fb72d12ae40e3b187b40e96fa722873d4d62afcd0333c46 \
--hash=sha256:9a6b95b1737f9b5942c35676c52db0c302d60fa806efde3fc2d9f54247ecf4be \
--hash=sha256:9b887e8a7103ae2171dccbab00a4bb2bf1560f5c10c28227e5513bc90a608cad \
--hash=sha256:9c1bd8321a840729a6b2620774cf4000fafe66c54cac9064972a10c4f607794b \
--hash=sha256:9eba4613d45b49196af04a5cbadfc5e9379ba94aac85184b72cb1107ad31af0d \
--hash=sha256:a094178c51530c9ebd1775e72d160af0eac4be244fb06ff1b6f182128c71903c \
--hash=sha256:a09ca76391f6e17b12d55c1068b4b5f8f6c9b44b432d936075372fa12782292d \
--hash=sha256:a250888753faa289e2997962fbb17c4960cbdb58575533ca6fceee68c224bdff \
--hash=sha256:a312fedd182357f2c22f066d17dcd7413b6a205ee3d063d36950e94e3019d3de \
--hash=sha256:a36bba41dc7fd263417688c4daf95a1091f93e1f6957c0f71ad7798907c5a10c \
--hash=sha256:a3f4044dd5d2f7b958be6b9903cb432e6a0fd944d673707ca5cab68137d0592c \
--hash=sha256:a43831574e14423103d69fb1357e76e4f2347041c98e8357ab88ef21812e80d9 \
--hash=sha256:a491d4afb361aba32d55d7df7ccde766a3aa9a34c002d2c32c2743bf6e77c13c \
--hash=sha256:a5a7e0326566759f9a7bc44f4b9a179cc40a297e09e759b0bc7c848c06347527 \
--hash=sha256:a6eba94fc00d899f8d268712772c8dcafc40215aa9b51701a397afc9426e012b \
--hash=sha256:a8f92cc9080bff47555c79b88e7fb8655438ce3bcf29c5f01ed2ed5efdf174a4 \
--hash=sha256:aa2476abf8669be493689634bdb79f468a6fe57b005a5126db7e9f61d1954fe2 \
--hash=sha256:aa8be1f24fbc03a07cfe002b70ba0716effc6b3011fd9e5560ca399d3d0605ad \
--hash=sha256:aa9390d89822dd06f9920ae3038819cb121643a72f4753b2eee1a79b2f1215f8 \
--hash=sha256:acaa0e100f39287dc5d13de96e33ba0786f1cdfb5b4ca28918913ab0eec3af72 \
--hash=sha256:ad1becd776f5a41a4d91cb9ee51778f4fd687ef15e4919779e00a33c6cff6948 \
--hash=sha256:af217012cfdaf6ea5dc0c538aac29b7bd030eb865056cc60f1d973b982b7917b \
--hash=sha256:b013417037c931583578639cab2523d5a2efc35a584c192d07f4c909b133f6b0 \
--hash=sha256:b0aa6b81bc632af7cac7b270c933298cb5ee858506dcf344e0da006667e0c351 \
--hash=sha256:b30e5496e453ac971bb17f5e096b84fbaae16d09e2613f6148ff528c08a54a0c \
--hash=sha256:b66a0e045cf859d7418f26a554509b65f21ebb6d90a95152460781939e8264f4 \
--hash=sha256:b6dad86d938104f9d43404029e5fc8392f82762d171933be4f192a6008bffa53 \
--hash=sha256:b6ea5bf7e3c39f6e56957d82274ac7cfab469590085883fdbc86e754cde76b11 \
--hash=sha256:b8fc4fe56992b089d6177021fe6db641321bb2bc2fc7a1abf815c29a80ca2137 \
--hash=sha256:ba26e4d073a4f7f2594676f2ff20ab80a7f03332b81c3f9964e9e53bf2305329 \
--hash=sha256:bed05639ae1bc23df7996a4fd13ea5064ddf60dc7dabd754f8badf060daec63f \
--hash=sha256:c08e06fc69750827d7ccebba63ebc97a85e479cd5c9dbdb80f5e08a77b774fdb \
--hash=sha256:c39a4fe28a16e8fa667c55c154f62c6c3cd9ca2491cca9f16330dd7360d05b76 \
--hash=sha256:c437ed8775d201d37206f37d233f547506e3aef60b9711584c65444c686b4905 \
--hash=sha256:c43d9737c3b85ccd16b1862b1e7aa5c4bf30a6033068403713c0a2bba5bda979 \
--hash=sha256:c9d1f467d121b33b06865c94ed5ed8388a9ef76f5e1acc1c8a854ac653493f5d \
--hash=sha256:caefc441edff6070a9f9749ca880a22731a1715d9e74b24304a546eec44bfc16 \
--hash=sha256:cb18428af7399e0a6f7e3b45f110d57a1a47cf07fd4b3ce50e2366d99a38959a \
--hash=sha256:cb4c25a9d3410262216b5c7447e51bfd2de0efae0a7640772dc6d2a8741590de \
--hash=sha256:cbd09b22b340f846671e79e8d832167fac60c1884be4c71fd667211486a3b58e \
--hash=sha256:cd5422fd4f8a7859846c9289e310dd95c0d1890c31819667942753e510f88f69 \
--hash=sha256:d12571adb9ceeb9ba0640db46433430062f5f1dec89e39713a2a5a8ce3016c37 \
--hash=sha256:d1b7a3fe4cf679eb3870b91b86b8ce12cacd5cf4d74bc114864a5cd65319ddac \
--hash=sha256:d313494077f849d8199f36166947785da1eeb36335fda15fde2e8f801ef271b6 \
--hash=sha256:d3c9d5284d64f4c1015d95b751577b260fd6d14e3f8edf21710f4436e7ac4c49 \
--hash=sha256:d4e7ecaa25f0dae672ac783c2e5aa9054a62e011749d64ff47b887af360a3e82 \
--hash=sha256:d57f1b6affc3581fbf0bc6d783cc60e7c9957adfd9c7b89f8a9f3573ad1cd49a \
--hash=sha256:d8f85e019c9f08ec134648a378ddd3f6f073c1e4b5ce9bdacd9a9e7b60749cd2 \
--hash=sha256:d93403a13c8f6f2d027185d90ab695e81d95e3ebd000f0078e201a1c3159d4d1 \
--hash=sha256:da606e3015dbd4b9a31c0468898a0c4c998846197ddfda78308821dc8c9e9be3 \
--hash=sha256:db2eedef732424346f98d0aba5c6ad688b648bc79847f4cc70dfca830130b1e6 \
--hash=sha256:dbdd407104ebf2360464ce02c7933c6ffac58bd5b64cdf6ef7dc0e787e782aaf \
--hash=sha256:ddea089587432e3df6771a4a405ef249cc9727f7becb1de3f00ab571b2432002 \
--hash=sha256:dfbde696fb427301ec40cd82b8eec0b528e44c6af8239f33ede2b2552d9a085a \
--hash=sha256:e1cdbde56f9fa6d426b78941c381e2ba160c1214809baa47e02c1d0d8881d598 \
--hash=sha256:e282983b8def5ada758fa1f18bf9060bb8ce6cdd73be32f62a2de59820d3286d \
--hash=sha256:e34f591669498a03cd70993b0a79b9f0ef40c4e6f8232466bac33c42f0c15742 \
--hash=sha256:e405cce4170de1fe520d9a92de9d7ececc23dfcf6888c62ab608a21be50838eb \
--hash=sha256:e4a0f2adf29a69dd8fe58e42bb191f3c87067b05fcc63279983e8c9ce5092abd \
--hash=sha256:e4f85c34f9be32ec5568a0668fb8bc029d3e729285fb8fccc38695e185379a9b \
--hash=sha256:e5e4785d8a0adeadfbdf75f4efc357911842674651cbafd7e97f69b11ec3cbc6 \
--hash=sha256:e86a27ab632d2e888c22b79263864eaff8b7dea9e87328a9bb0ea04eff24786f \
--hash=sha256:ea880ae1a692ae694c11bca7be74864614ff1a58bdfff4605f36d1956b4b1588 \
--hash=sha256:ee9de080e8d6221bbe4ba2667367b1cee0f47a53f60ffc5e431b698cd2f2b214 \
--hash=sha256:ef8b925f2b331a1f17d6fb32625e09fd571cf41844f578379f934dab0067cf0d \
--hash=sha256:f06e257ee0cc85a7e4ec44f171ae2595fd901c34212f3c9e7ab8fd8621401e99 \
--hash=sha256:f1214052966421a88ed526ba93e4463b39346862fa4721be5306434b33dae795 \
--hash=sha256:f160f03e15bd1e3c35db9bfc20c42ff83155d37f9b0c79806cb10051ca725f13 \
--hash=sha256:f1b357340e4cd29011683bd81226175611ad835fec22e5b7df83b96701571226 \
--hash=sha256:f39290a0c2e3f4196563189bb45e6ef5d5badf50864e1bfaafa9003f0595573f \
--hash=sha256:f5a5c311e5de6954c36230a37863b5ca58ce232589bd637ad2881c4056897b12 \
--hash=sha256:f7a841170fde40b0e1345884bee09ceca7db49a9291fa340089bec66a366c243 \
--hash=sha256:f7fb9a3275f1a1528e542a0f5a3d2c89fcaf68e797fc5c6530434cbd92a852c4 \
--hash=sha256:fc540d1618c5638fcf5aea97060cf011467918b010bf682a84ecc0c9474e6cd0 \
--hash=sha256:fcb17f1d40c38912a2cdb56ea47aadac3527cd0b06fe24f3a0c4896febbea063 \
--hash=sha256:fd0341b9dea133d187d7c5a2cd7e21ae6449a7b68ea8c2454f9cf77def11ec1b
# via requests
click==8.5.1 \
--hash=sha256:8bb5376d2006950386f8c6427613334a2acadc5f559cb80e638d00b4df957e37 \
--hash=sha256:9bbfada76703fd1d784b83eea012e3e8c6a001a876543ef104fa56aaaeb072b4
# via molecule
cryptography==50.0.2 \
--hash=sha256:0ddc924c04591c2811ca024d62ecad4f7f6f08af8939c211438f48a16bd23602 \
--hash=sha256:0ec5f09541743261e66e291b4a0cbf0fb2997aeaab6d9e9c740b9dba1b58d1c2 \
--hash=sha256:0ecbc5652bdb6fc9eaf89a7d196e20941adfe812f43bc4ca05d9150496821047 \
--hash=sha256:1981f1db4630889b9ef7803fadef12b056f428cb6b85c27ba57b774793b6093c \
--hash=sha256:1ba34f04897fcdaa73f74145c25f3ec146fbd56593853e88adc2e811303c5f42 \
--hash=sha256:241449bf940a5d27309bd317e6f9a2af6932113818bb2b8f5c59ddc7ef16da18 \
--hash=sha256:25784ce8b9621c90c643efb9e1e2162ab3b0224cae446ad5e70e7fcb1ce18b51 \
--hash=sha256:3dc4fd8058cea1644971207d530e1a03a184a805ffc8ebdddf0599d78a331b81 \
--hash=sha256:4061c0079120205fb760c58acab6443e217307dcf05e3702cf970e0689972856 \
--hash=sha256:4a20ce1e5cb4284a86692fdcba7cb8754185c6b2e5c56fcef3751cf451d3cdc2 \
--hash=sha256:4e81d95e5bafc2d6e34e4bed780e53e4d5b9a2f928573428aa4d35fbec1eb0de \
--hash=sha256:58a0c478eeca76fe5e07993c5a0703def34a6dc6a0cda4f5564639b33112ffe7 \
--hash=sha256:58ddb5a8e3179d12f19e4ea34d2d32e9d63a4baa142c875c1eb59f41b7243acd \
--hash=sha256:630ebfea3bf689d075f82316324ff7433dc447fe6bc1bfc76524b74b4a9567d2 \
--hash=sha256:6f8700550aa1474a91e5dc07049c46f98b423b5b1ddd0483e0b51362eeeaf5be \
--hash=sha256:78198641e5be9521beea5aa782bb551a58068d10e6eb04c9c680c1b69f2e7d45 \
--hash=sha256:79def8d059362e7831389ed3be0ecdf58a89386e1271e35dd9f5af84e81bffd0 \
--hash=sha256:7a8701d6b584d76e909e3d305b7d126b41439876a5aaf76cddc67fc230eafa2e \
--hash=sha256:7afa5a6602a9f29af1f3a2965f831bae7c9d5d597b7cbb716d41ab3b7d89879c \
--hash=sha256:7b46165bb56eb4704e2eaaf86f3c940d19154535d9b0ca7d6d590b04060e00d5 \
--hash=sha256:7b75de3c8b3be1cdb1052747c929440c3eea46c1bc2cb8a6e3a48388e9b7b452 \
--hash=sha256:7c6d0330c472d96f6a6afe24d80dfdf15176c33096f0a4397ae4c60f3dd3be48 \
--hash=sha256:828d49b0ff5a0e3975865571c5d91dbbdd0d38d8289b249a163e9425413a5e05 \
--hash=sha256:84f964e537f916e2cc85199e5a88742e964939b575ac8598b3f9d6cc416cdaf1 \
--hash=sha256:85d0d9a31b9098e98534226d5686b47264b95e62ce459dc2e62fdfc809f9fe93 \
--hash=sha256:87e9ce85beb6b328ba370cc6e6aea483c92617b4c95b1d33a49297eb662bfb04 \
--hash=sha256:8c71ba2cd31fc93748c38e1b613200ff1c2665cbfd5341fe3a61cfde35a1430e \
--hash=sha256:92e665960f25fcdc73725b9cec7a3824f279ba97a98653afe9ffac2e43668f67 \
--hash=sha256:94e5e9f108ee10471288214d3d233fbfbb492840a8457eb85178d643ddeb32c7 \
--hash=sha256:9c8402a82ea0dc4ceeab793db05f0fafa8ca139ca34fcde5df0f596103c74107 \
--hash=sha256:9dab55f57c74c3cad24c323bacbbd04be4705ba6eb0d92e920b1fc4837ed5079 \
--hash=sha256:a582ab2ae1d34f67112cadc86702774c9ea4374df6bca6afe672817203c99134 \
--hash=sha256:a6557e5f38e065ca9fbdaf7cfc7435ecb1d113aa81a022d1b51921ee7432e227 \
--hash=sha256:a9f7355e6fab51f6c369b86fb7571cffa05edee2c2121e0380a37fb9ac1cd5c1 \
--hash=sha256:ab50ee449bf968271e820086f10a33d101dd060370abc10bcd22279be2656539 \
--hash=sha256:ac9ed99d81760c62fe89d5f0815cdfa1ba9a35141cf30f1c2d044f04b4803d2e \
--hash=sha256:b13478603dcd0a2479ff8e87e2c19a7d525734686fe3c49542472293a204212d \
--hash=sha256:c423ab384a46c4dff7217b2ea5ba2e11cffdeab6441acd04cf65a369caf0366c \
--hash=sha256:c5e67125c7dca78d199ec4e116aa93dbb83494808ecbb8211a2cb09b1bf41dbd \
--hash=sha256:c71be1cbfa5cd9a41ee452acf1eccd82b2c05950358b106ec8ceb83411d1a020 \
--hash=sha256:cbc8738fd8526d80f35cb3a40d41f41a2e7030bb3b18b09a6778ef63d291c2fd \
--hash=sha256:ce47f66801c20ec6c6632453bb5960fe38939e9306970b48b3a5a26de7745d94 \
--hash=sha256:d370b8d1dfcdf7130178137f6fbee6140774a1acc6cacefc4b42643ec11d0a3a \
--hash=sha256:d38cdff612d06fa6a32840d5e1b1f7a27cee4a349aa9085d94a67789d6bfd408 \
--hash=sha256:d8947001be83df1394050758ce0e745dd74fb134eef0a4b5124208dfc3a68c37 \
--hash=sha256:deb9fde5c60e437ee4821bc9bc39ff31b42135c27e1dc61ef0a629389c1de62e \
--hash=sha256:dfe9763530994147d9af1def057a5b9658b00e8f8fe8743d144d1e0911c2e454 \
--hash=sha256:e105ab60406787da31fccc883fc0f733af1efd78f0136a4599692c4083a73d0c \
--hash=sha256:e275096ea1e60cc595cda2836fd4a6c725d1125108b868be17f53684d164e2cc \
--hash=sha256:edc3342adf8f697fc5f59c887a304356f147b397809440ed64e2fa6af2f50f37 \
--hash=sha256:ee247f5c245c9a2fe7c8e2214e295918838e44e00a45a6718451e4004219e767 \
--hash=sha256:eef4c2f3423810b3070ab391f85436d2f8bbfcb286ac15cbc73190b3563b1f1a \
--hash=sha256:f21e8a22c8605750c7af886bab299a363721264061b4ac0a30efb73cfd58efc5 \
--hash=sha256:f265528741e048bce55c3463ed721fb0aa45a5888d8add8cfeccb3035451bbdc \
--hash=sha256:f2f9bd7f90c64fe89253f0a2c05e3c4856072660429ce8831b4235bf29403a67 \
--hash=sha256:f785f6161f202ab04d8ca194158968798e480ca058943907972da5f12e2881e8 \
--hash=sha256:f9f6143a8c75945eb960d9eb98905a441394abfa24afaae239d514ffb2586480 \
--hash=sha256:fa8f5efb344d6908a1ce62f4a24e2e5780f825d6f53f5f50ec5ffacac72936cb \
--hash=sha256:fdd28f912fccfec1846a94e2e1e8f9b0012f557f0c46fe4f3eb0d7a87afcf90b
# via ansible-core
distro==1.9.0 \
--hash=sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed \
--hash=sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2
# via selinux
docker==7.2.0 \
--hash=sha256:a3f45fdeb9165e2d25d9a1d02ddf3bc70fb572cf5ebbf9b58558c22caf29b71f \
--hash=sha256:cebb93773d334f778e023a7ee352a8d6e13ab1bd3b863a4d4a59dec897df43ac
# via molecule-plugins
enrich==1.2.7 \
--hash=sha256:0a2ab0d2931dff8947012602d1234d2a3ee002d9a355b5d70be6bf5466008893 \
--hash=sha256:f29b2c8c124b4dbd7c975ab5c3568f6c7a47938ea3b7d2106c8a3bd346545e4f
# via molecule
idna==3.20 \
--hash=sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44 \
--hash=sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c
# via requests
jinja2==3.1.6 \
--hash=sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d \
--hash=sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67
# via
# ansible-core
# molecule
jsonschema==4.26.0 \
--hash=sha256:0c26707e2efad8aa1bfc5b7ce170f3fccc2e4918ff85989ba9ffa9facb2be326 \
--hash=sha256:d489f15263b8d200f8387e64b4c3a75f06629559fb73deb8fdfb525f2dab50ce
# via
# ansible-compat
# molecule
jsonschema-specifications==2025.9.1 \
--hash=sha256:98802fee3a11ee76ecaca44429fda8a41bff98b00a0f2838151b113f210cc6fe \
--hash=sha256:b540987f239e745613c7a9176f3edb72b832a4ac465cf02712288397832b5e8d
# via jsonschema
markdown-it-py==4.3.0 \
--hash=sha256:7aa1511a46c39138de78d9eba92ce47e63124d8003fc98b3a351909e04239efa \
--hash=sha256:91a58fa5b72c71a40cf7177250fd767480d7a2bb3ac426ccfb76fb90305fdaaa
# via rich
markupsafe==3.0.4 \
--hash=sha256:007e1ffd9bf65bb6ee96df7b258fc632a4868dd5566037986c64781f35a36e98 \
--hash=sha256:02fa4acbc6a3fc5c693c34d4dd8c1130b7fe99cc915181b0ddd6f72aeb296002 \
--hash=sha256:03470d1a8268e692ecf79ecd565593e59d44219377a7ead61f1f1b94c1f7ff6b \
--hash=sha256:04e7902ba80ee4bac1d50a549606527a1dcf0476cd81403db41099d3b60ec653 \
--hash=sha256:051417f74bcaaefa316276e0ff723f541616ca51043d070da00249d9bddd3e3c \
--hash=sha256:05295589e619b9bed252a86b532b8e27350abc372d18ba89b59375325e91ec1e \
--hash=sha256:06de8ef6331f6e822c28d577dc8bf43fe398800477c49498f38fc38b67ff33fc \
--hash=sha256:0764a13d34cae40db7bbf3a09b7e9b491bf4603e20b263a7a9d6b8e324975d0a \
--hash=sha256:077293e425f28ec737dbcad442a71752e28f8ae27cde3d68acd1fb212091cd92 \
--hash=sha256:0930db9bdc62d22944e10b066448bb65dc9abe9112880c7cab8da54db4284d5f \
--hash=sha256:0cee7cb0f9a1b6892ea482237d9403b3d1b4603aee057d0ff01f0fac2d019a97 \
--hash=sha256:0d9c47709875fdb321452056622e930c52afbc07a7d780762fbb8b4d91ce6fa4 \
--hash=sha256:11935df9bf455ed0c04eb87bcd720f02b1fe5e02128a9430f23aed6f93336fc7 \
--hash=sha256:12a606a492de952afcb43b59a14aaaaad120e708d3663dd0fdf2d738d427a691 \
--hash=sha256:14bd2d845d62ab678eaf81da89d7b621b51756c72346745c1a594c09d49207a2 \
--hash=sha256:15ba9e28640feef770374b116a6f019c21f52404aeabe516aa7f800587b98cfc \
--hash=sha256:18a801868a884f216e784d7d14db2a4077143ce7610440aee2ce8f734e7cfcde \
--hash=sha256:1c0df495a977d10460a94941799c72d5b5ab03d3858d949b55b5a66c8f371c99 \
--hash=sha256:1caa2fa5a6184fb233153b35f654e6687bd555476f6170f29d8ee9be1a8b0af9 \
--hash=sha256:1e1451fab512d1bcc3dc26988ec1edb0b82c2db909132872cd9356070a6b63df \
--hash=sha256:1f1f9477e174582b0a1b583d60b66e1f2cf5d3fe12cee985e4aedf44766600e5 \
--hash=sha256:2628d3a8cb648ecebb3c5d6b0a1052d400e4d8b7ac0fb786be8d285b50040d17 \
--hash=sha256:26e9867520db70d37f7fb421a7f0d8adb40171011fb84ce869afa1a83370dfa8 \
--hash=sha256:2a6ef68ae94aed8721934072b27a3b654ea2100b97e4ab864cf1489c90926fbc \
--hash=sha256:2b2b1e18af909b448bb3cf9e3433366f7a8726271fc214e8b10e0f62a78c724b \
--hash=sha256:2cb3dd71fc6be918ad4264346a8ed69485f9b7ed7bf35495d8e22807cd6b8bea \
--hash=sha256:2d1b7d9308288661f56672b1b157d75fc536714d3638487bbea17b6318a78248 \
--hash=sha256:2dad610540cb2e6272855c178f08ae9a1c7ac258a7fb71660553a5f104b42741 \
--hash=sha256:2e5a7cd7fdd14fcb1ae5d7d8bf23d24fbd1daefd1fbca2580132e1ea75f098b5 \
--hash=sha256:2e9ad7dd851bf45fab9f75cbff4cb493fee9979e8d8c7c9c3ee119022518edd6 \
--hash=sha256:340cbb1957ba99929cbf19a75626d36ba1ae21d1730b287d1cf7f824a20c4fc7 \
--hash=sha256:34bdde374c5932765d7dc685c4a1d191a3207852d67e8e0a9eb6ea85156181f1 \
--hash=sha256:353bd63081912ab8cfa6a0c7d185934cdf8426f04c618bba6bc4b394f2069b67 \
--hash=sha256:387d8cd30e69b3f0a72877b9ae717033396404e19095b17fe89753a981fda44f \
--hash=sha256:3882fb412298575bae3b9c46868251f15cc69307359f87bb1b382e53d6e5a2c9 \
--hash=sha256:38fc55594dab834470b6733dead2ee9e3f657fb0608c769dcafa0ba5ab52f45c \
--hash=sha256:396ec4e65cc889f69786b3b89478b471cee5a3bcf468b9d9bb03e1a30fb291fc \
--hash=sha256:39dbacefc411633db5b4378b066a9aca70a3d7e2922c9e578d825f844026eeba \
--hash=sha256:3a93d9616ddecfb393727a0041a562cf0b15a244e20f2bd25efc7949be4c4f17 \
--hash=sha256:3d23795802fc8bd72534836d64489bbf0f67c088959091bdb22e10735a5107bf \
--hash=sha256:434139499bb20b502ed3baa1f169e618f924a97e7a777fea1a49446d80106cf6 \
--hash=sha256:436e3ffc6310d3c41878c601db29098102fe5d8a467c49da4a4125254e0980f2 \
--hash=sha256:489505b03f692c3f376394e49194fa7a7f9e8558d6e293a7056a0032b0c38163 \
--hash=sha256:4a540e2d3192792fc84eced57bef37851ccb2b41f73291bb17408eea77bcd278 \
--hash=sha256:4a7cdc2a420ca01058182da4253329764d4bfa055564d1eced90e6ba1e8b1d3d \
--hash=sha256:4bced6e2a6dba6a28f7dd3c6ce14df1b2dd495923f16ea484cad03decd463b2b \
--hash=sha256:4cf3468d5ec187ffffcaca8e61929a37448f215dafc1386a12c750a72fe53634 \
--hash=sha256:4e2c4809c14559aa7ef426f27fb35afbb38104c349a903bf8f3600456764bb38 \
--hash=sha256:4ed644d75aa94a2baf7ec3a96eaa160ea58c742eb9d27c6506053c5c40fc84ed \
--hash=sha256:4f6e0852a0283b1b1fd776eeb7b766a5f440b3e2bd31ab51af3b400585f3965c \
--hash=sha256:5066b244f576f91afc8ee3ba029a89f99d39c79b1853fe9d39bea9f0afbec148 \
--hash=sha256:5086f9975abb1ab531ee6afca1761e4b59a19b446f3f6522ed776963228cfe5a \
--hash=sha256:50b5bedc9ed8a94fc8857a42ef4f84a81ea88f8d4f05dc8705fb23ee6d8dcca7 \
--hash=sha256:52704c5d36eb6dda8866493decd61111fff86244c9b1ad225ca01b9e91e5970f \
--hash=sha256:55ffd6ce583d97dc71dc92e930324c8c0d25aea7e3ade6ae54ef77cedb096811 \
--hash=sha256:569d65055d367e3dcdf30c3f41119467b73d9ee9faf332bdf40402644f5ac08e \
--hash=sha256:57f9947a7e57a081c1e3e0a2dd0d2dcf290a4531450e6f611e30084c222a7295 \
--hash=sha256:5989cb26b2e1efc6a42216a9f6b5ee495ce5ace2e5b352a9af489976b32d1ee2 \
--hash=sha256:5c22873ad1f0532ba40fa1727f3c0fc1bbbaab6d373d4cbe3f0dc74b2e2521c7 \
--hash=sha256:5e8b3d0b18fd623afa12ecb2ce8d8becef69f9b5440c6330c7972200e0bb84b0 \
--hash=sha256:61631e08084be9e21a8967ec3139c7616ed7c5e9368e05c86d1b39562c8a57b6 \
--hash=sha256:64511c54db4e4987aef4c41923235927428729e8174c5dba488429be70a998ed \
--hash=sha256:6669c1bf34080161ce49c589cc512ef24d4c704ac9d2b2d3667f519c60418378 \
--hash=sha256:672d207103e6b16ca098611b0f9efad6bc00afd47c03d6ef62186495ca677dc0 \
--hash=sha256:6768d67d1bce64270e0fdc2e69309d68b9b18ae56ddf6c711d168e9d051c2cac \
--hash=sha256:6a45c3d514f2436064db00d7fc8778d888f0236ebfed649b53d13a59e69ad51b \
--hash=sha256:6bd9e1788e15bfcf6a9082de42e30387e7b85d211ab21e57a939bb8cfaaf8d96 \
--hash=sha256:6d2a9efe686f9de00d0d1ea32a4a5a86d558a2277501bd78d964214eab625e59 \
--hash=sha256:6da83a088f8ef93b2d483a8232a4dbf4d69d3d8496b568a03c56becac43e1808 \
--hash=sha256:7018d4af1cd272e847aa5917983ab5e83e4f6579f9dbfecd4a79c0ca80b144c2 \
--hash=sha256:71f88e749ea29f67f21f3b36433c1dc54c7729ed2a6d9e2da2e0d9e0d7b224eb \
--hash=sha256:737c9c3981998eba27f11786f84fddcbabc74068b72a4a1f454ea02094b57b65 \
--hash=sha256:73e77980c7207854f00fc4e71fb1626868d5740ab4012623d55c7a99ad122a72 \
--hash=sha256:799c39bdf5e2f1292fedd3009f7b3c9e760f10b2420cb9638d56920840ff6db8 \
--hash=sha256:7a83aa6e4805df46fed18e989d3d16f86ef60cb50bbc8d9ce3a6be89165fbf6e \
--hash=sha256:7d3391b2188d18737cb2fa147028b1096236eaa7e156446c650a489fa2cadc91 \
--hash=sha256:7e1636da3d8dfc220b6dd10264db5f2b165e4888c4518594898fbe381049af8a \
--hash=sha256:805c8b84534fa10891890f0e4be39f3a99e94615d93e8836bf9fa1fdca2feeb2 \
--hash=sha256:811d02d5122171c1941357efd8f9bf4ffe907b7f0a1a4e729a880e4be3f46e3e \
--hash=sha256:8138eb83940ec7299024d92d4dee45f601b9e6c5ffde9d25f4e35e326203c707 \
--hash=sha256:83b3944fea42a8400edf92fd1770fb8d0d4f7de651353bd2d8525a92dba69a21 \
--hash=sha256:849dd2bb0e5e4ab2b71c7191726a4a8d5aa8a610daa584728cbee0b710ddc4ef \
--hash=sha256:8698d70a8081ee8c090dbb394768b5789a1da8b131b5499f89d071dd3cfaf6be \
--hash=sha256:8781a792a070cf2bd1b86d3aa943894115faaba6e88122a7bf32d62072742453 \
--hash=sha256:88d59b473bfb03259722600839af9bbd7fa13a2eb514beefeedb95997882f69a \
--hash=sha256:8909c2f1c6dd65e054ac4b573a91c8384d1492281e55d82d159d653f7a13adf6 \
--hash=sha256:8965520ac587c94a4ac48b729be3d8b8de00af39699b17585dfb599babe77977 \
--hash=sha256:8b5d563170ff8ba3181caa967c99a3c804d1dedb702c7cb93a6a7c32247da978 \
--hash=sha256:8e124f974786f831d6043728e38296969d3579db8896fe004682f5758e613581 \
--hash=sha256:8f0fac8b13d14bb06c68195f849371924ae53dd7b1c00fed24650f704383b692 \
--hash=sha256:9240187afb63d2f9ddc3e032c670356fe941f6e20662ea168a5dc3f1f317e1b3 \
--hash=sha256:925f929d6b59a8b3f8b8c6ac363cd0af7eecc81efb3071770b3c6717c450a369 \
--hash=sha256:9348cbb300d224fe3b89793262cb093504d4ae927004468463f745188a193e4a \
--hash=sha256:9388003072b95f2f1e3fd908604194d653ba21330d811961a78b7da1a77e9e36 \
--hash=sha256:9438a2648b2195980cb2dd8e53ed7b8df91319e2d0b70ae61a9e1d1bc8d3bec9 \
--hash=sha256:94e4c421742086aeee4c32a506eec8859d7634aad943f7e6aacf70f813478768 \
--hash=sha256:94f5407f7bc64fa6463906b896f9904beeeb7dd8dc116ee8e9056c8714ff9916 \
--hash=sha256:971a3bbb75d97ae4e2e8f7d4834236f86f85f0c85e04ab2e191db1123b04f80b \
--hash=sha256:9e227f3dbe6bde7491cf0a9965d00b88c6b1a4a95d11480ddf88bb96d397c19f \
--hash=sha256:9e25feb9e330b63edb0278a0acdf85e50d0cb0fbf49c3084abbe4e24ae195346 \
--hash=sha256:9f098115c247e11d138ab83a28fa0323c77015007ea2df73ba5fd714dfefd67c \
--hash=sha256:a18f38cafc329bac5e3c2b96c765b4c96d3d103421ed22ab7988c1e3fce27464 \
--hash=sha256:a4bbd2d87dd233b9fc5812160c3d0ffbe42edc22a26ce0469f58479ede633fe9 \
--hash=sha256:a5fcffb37e602b0b3c1638a97746b9b96125caa9bcf6fa41d337a9261de231ee \
--hash=sha256:a8e9f292fcda89b324f2f5c91d13f1424a153e40fc2756f38ee23b15835ff300 \
--hash=sha256:a9f54054101545a9a9cccefddf54316aa6e4491611fcbef9e91b3b6bebec04f6 \
--hash=sha256:aa2c838cc024642cc04c6854232f32b43e5e22833dd11119c1766c7873b8370d \
--hash=sha256:ac0c7c9f1609b0c4c114feb1d7a3409564c7fb77e360bed9e97e5d25dfeaf868 \
--hash=sha256:add96447a86d205ab616665d53b2950ee81083757f56e6ea833c8b2917646b46 \
--hash=sha256:ae9dcb8fbe244cb82f8a6458b455b927a03685e383d9bacf1ea5ce180b96dc97 \
--hash=sha256:b4a635a0487774f841cb1fb62e907e7195cc95bc761e053184b8acc3ceb20733 \
--hash=sha256:b4d12837e0203bbace818ff4a7461afdcd78bcd782351cea148139180d7bcffe \
--hash=sha256:b61687d0828e72bf5cda24a2690188f37170bd31c9359ac97e4e66569f120a16 \
--hash=sha256:b807e598953730f82e4eae3bd30f6a122cf6b31c398c6b504c0e04c13c170429 \
--hash=sha256:b8cd1f918b26fd7b1832ece557cc18f2d8747309ff8b3f0ef9d4250c5ad67a39 \
--hash=sha256:b91cc9d336957239ff200f30097e6fea2dc6d6fb3c81e853eaa09eac904fd894 \
--hash=sha256:bd3ce56ae2cbae3ba82b683bc425cd7e48d2ed8b10f3e818186b6f5646d9271c \
--hash=sha256:be6cb0c799abb0e2ba3e618e6d28ddddf7e485f6c2ce938dfa237daf3905072c \
--hash=sha256:befb4158af32106b9a93db8d6d1d1cbbd418c0d5aca0cabb7b1780abf0c89169 \
--hash=sha256:bf053da3c97a4bc5ecfbb218cdd2983febd91c617be8367d139882aa11e490aa \
--hash=sha256:c02e8f18bdedba082cef725942ac823b9b60656db07f7e265cb31618dfd00d77 \
--hash=sha256:c1bc67752d5f21013cfe430df4062441714eab79f65a6a05e01505957e9c35fe \
--hash=sha256:c61750fadcd119d0825bcb7d7d675dd264dcc89cc05292aab5be68ebdbb374ad \
--hash=sha256:c90d5b3d4e944e065a301d741b3c1d784f6bd1f503aa68b4967e32b2ba313d85 \
--hash=sha256:c9a7f43c0b202b334cc9184af09bb8f21d3a209e038efaf106936fb69e6b026e \
--hash=sha256:cb96e6e088d6cf71c1ea977510948320234824cf226e32f6f6e044f7a9c82b34 \
--hash=sha256:cf63c214fe879a65e69a386f915e36104fc84254ab141240f8854602d8e0be2a \
--hash=sha256:d1aca03ede943eb80ab3d63bb082c84b7aab85ea83bd0fd0c200260945fb49d9 \
--hash=sha256:d2e56fd3b00222722abfb3f5f0759ddbae4b90811b5ad4343c64030ad1bde70c \
--hash=sha256:d5f93ebbeb8032d47e349328ec8662d973d9b05a70b3c35df1f91fe419b84749 \
--hash=sha256:d882a373d8093c2941e01291b7ced96e9cbe4781da9a7751ca7e6c70385e5214 \
--hash=sha256:d920abdfa61279ba1a2ef9484aab07bf03331f8c08a10120fa332353d06e6932 \
--hash=sha256:da2af0d7aebfc2074080d72efa6ab8317c62481ef1f896f65d9999c1c01f4494 \
--hash=sha256:dd8ea6ebee7aedbf7c749fa80521d9ccf1ba473e0d1e14805caafbaad281c889 \
--hash=sha256:de8b364c423ef0a4bad9069657d617f9a5d2b2062457a89b1fa16ee199c399c1 \
--hash=sha256:df1ae86ff54725a01fa1a0510b914ca53a161b7050be74f6204e24aded5971d0 \
--hash=sha256:dff05cb7016dff1e9fd68f4122c127b65dfc59de5306cfb7ad92f956f230bee2 \
--hash=sha256:e1a622f13970d81f95d0c72f9dc090dce9085fccfa4c9f2174377ee32bd15786 \
--hash=sha256:e49fb0d1ce92cfa0cb198cc5b1b11cdf9d0638658e2a2db2687e39db7c87fc78 \
--hash=sha256:e5c802729725bd07e2bc3ab7b76dc7e0bbfc53129d8f1eb1c002c24cf774717e \
--hash=sha256:e841068dc0be4cb6dfb5c890eb88cbdcff2f4a332393c7ec94e8e618bd32c1a8 \
--hash=sha256:e916035e3e9930cbdfdd10abf48861340221857f45509565898e012263f7b289 \
--hash=sha256:eba154571c16e032112afac0dc2dfe9e63c2ceb7aedd07bb7eecf2ce26d4dd4c \
--hash=sha256:f03460ff076f70ab595bb45a0205ccea1971443575b6920c52e755dec2b3fbfe \
--hash=sha256:f0ec3b750b59375eab5b0fb2b9254810c00a3375be6d789899f1055a1d556237 \
--hash=sha256:f291bcf42ae98eb5107edb162c3c998b4a89648fd8e99ed4cbd12705292788cd \
--hash=sha256:f61efe1d2fe0de16158a5fe1d1cf3c14bdb6aecd54d8938fd26512c525c1f624 \
--hash=sha256:f68edfc67aabac33708941f26f22a7b8e9f81429bc0cf249fcf7d66b23af8d19 \
--hash=sha256:fa95848c929b6a75f6848d3c9793e59db365ee436776e57db835cdbfa79ba977 \
--hash=sha256:fd9f8797427910198f95bced71ddfed61130d7e349213bfb8466c9c99e2c46a8 \
--hash=sha256:fdb4ca07ab75ffadab4a8b135ad59cdbb3156b99310f3d565370da74a15d6bd3
# via jinja2
mdurl==0.1.2 \
--hash=sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8 \
--hash=sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba
# via markdown-it-py
molecule==26.11.1 \
--hash=sha256:34035f2852f1c0461539051ec1dd2398492c1e4f370ba507b81a781f322e4147 \
--hash=sha256:dcd147fb60bb66c060e0bf6a3eaa18f34433a18254a6f56f25ac254fb7980f64
# via
# -r requirements-molecule.txt
# molecule-plugins
molecule-plugins==26.11.0 \
--hash=sha256:194be2c43d950545cc699ab19f1a55b26853809e6e8c855ea1a42edacf5c7ee7 \
--hash=sha256:513808288b7027c465b124e66a2a31002c7c907b2fea9002f63ee90bb2d0ef84
# via -r requirements-molecule.txt
packaging==26.4 \
--hash=sha256:81383611a09c1bc0b08b76e0fd5829d7c6824c65b27a6aee339da133f4233ea2 \
--hash=sha256:c4b671c41ddb9bf26e543c37723610d28fb6bf7affc4da17cf048d419d2c062a
# via
# ansible-compat
# ansible-core
# molecule
pluggy==1.7.0 \
--hash=sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec \
--hash=sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8
# via molecule
pycparser==3.12 \
--hash=sha256:a076f3f489b39b43ed13563a1dafe42447445bec2e294154ec5c57fcdda4c85e \
--hash=sha256:f03387877eab82ce01bbdfd0ba7252ee55a90b1c708d5129e2ce915475cf1db6
# via cffi
pygments==2.21.0 \
--hash=sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9 \
--hash=sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c
# via rich
pyyaml==6.0.4 \
--hash=sha256:070c22b6f490d6cc30912be9fb9ab1af9c752769b39b53616f6510c3f038ee6a \
--hash=sha256:0a3a351f04dc124f9357512bdb80ac37cd1750cf1371da33e7cbb96d80ac865f \
--hash=sha256:0db75f402e99c25239003a499c214a61947b4ef5312af34711d4c63e5c179318 \
--hash=sha256:1088ad740f50c13178dad16fbc2fa1f634c791d42c7009fdb390e38e5b90b788 \
--hash=sha256:12a155bc41509d71a2eb73e2191d9e400c1345ea99ac3d9946c31f40a4c840f8 \
--hash=sha256:131d11bd9b60d705a6388366d77ed67850995a4d2be85fe149785a257c17e531 \
--hash=sha256:132c3c7c37a8e6f334921b05cfea5d26e241d792dcbb4db0462129d25ca53b43 \
--hash=sha256:15c52bb238a15bb4fd7e6342a5ac71d594507667c7fe0e5a5abbc0f6875d1e91 \
--hash=sha256:1631d566655f3af7d6c4a4485267830f6b680d3dc9704b659b3c3f4541b5a3fe \
--hash=sha256:180ac792c958c2173f6e4467c55ae5f73ab1a9a624ee29fc7095c56d5e3a4055 \
--hash=sha256:18ea9bda247857fc0de05181675dc116b54c1b04ca3db71de5d2108c882823b7 \
--hash=sha256:1d2f08c122727c86f8303bb1dd45159ca1de1f2d68798e671ec46974e321008e \
--hash=sha256:1db4d51d3c2c9545dd44c614febc4594240754f74b30d8e501415b118347f0d1 \
--hash=sha256:2018fda285d1289527a389e1b4ace1e2d3af410930f949136b55ecb0747744d1 \
--hash=sha256:2c11be5ab4d9f603a598b5ce93a2064ae38087bdf1b384c5397170054cda4e36 \
--hash=sha256:33506a2620f0e7c49858f09cb44e99f144878d03af3d9c10aa136e9a1d103bcd \
--hash=sha256:34edca7ab64b705ee7c80bf3f9ac609240677db11e83d9317191f483a4b5a433 \
--hash=sha256:3c7129bcee5c88c1450802cc6a95b690ee7c51bfcc7a9b60bbd9549a7a4fcbe6 \
--hash=sha256:41b4669c3a8fd5750e594dff59d3e62d40e321fec467b50449603710ed0a68f3 \
--hash=sha256:45e37dd647db9d67b757444c74060c064ace5fdaa08f42bf4fda3812275d423e \
--hash=sha256:49e38a95e24738908ea852e61df0abc58d1e4d4f974ccdb2386eaee412bedc67 \
--hash=sha256:4a2a8f27d24d4cdc05aa11df5f4c08e13f30d9e6674809b6a5ddcfcba49a653a \
--hash=sha256:4a329472db6c8858ebd94f2214a54c8bff8f035a6cc7af1ab39cc1b33a5f0e56 \
--hash=sha256:4d1e8d6e345b4b4424a05a11e699e999e65a88f422f73636f8a0b354bf219ffa \
--hash=sha256:4d30c2f186612bd2f9f07c08a4c96721af59cfc8da3ec7cb27dfa2834e8bb019 \
--hash=sha256:4d3bbc5e8a84a5a6775adecac786f489510a7159b1c343d6f31426d888cfdd6e \
--hash=sha256:50588147ab2c6a59b5f990a4905db80899a6c2bd197e046a6201f1e67587e794 \
--hash=sha256:52460c6dd874b22d49fda228fac59da74d7a7b06175ffcc80bfa3ba5389d7f73 \
--hash=sha256:5246a0feaaac497b09c9462aa926280ae02fc8791b0099c0a925ebd7c7f249a6 \
--hash=sha256:54c23934cf166bb2090d73d82b1388aadb1cead5e73885223dcfa4a459a22d43 \
--hash=sha256:573debb9fe3075423d4f823795a678580e597218c25baef178d532b124a25a25 \
--hash=sha256:609e8efaffa5662da16b7d53eef76fc4eedbbe56fce5829b67ba808a6e35d399 \
--hash=sha256:60e9da2772e259307650e03c24f50e3bc2d9fa5ed1ba44c47582e13b0e7708d1 \
--hash=sha256:61eef2f08e977b725f37a8d1663f5a222c6f09207ac0794030d5fca062e7c96e \
--hash=sha256:622aa875fa6533f25fedcffe23079357d65a690d462200afed5d8e9d0e01ebee \
--hash=sha256:62c5b5669b05dabf991a705f3a3601f57b65e95121a1d3e3a4ae4446c8632865 \
--hash=sha256:67da066ca12eb60114ea87f2ecbcca622fff0c205c743cc900437127564fabf6 \
--hash=sha256:69380d4bae12aab2a2c9532deff6a2841bc9fda47c333691bd2368b696301768 \
--hash=sha256:6ac167ebebc0c387290406a337b9b5c8c343fa5f7928d5941e45a94b8ba3aa39 \
--hash=sha256:71bb5b87465d88d1dfc577115af6d435bff9b26f2512936f610c26aa55966028 \
--hash=sha256:730788375056c43d3ac15bd894c9cd2fb7a931a38b302f408620c64b3ef176ed \
--hash=sha256:7335809813ec838d9cd334b1744cda33deb141c9ef23a9c0df371c37980d3851 \
--hash=sha256:78be5a1b05a5d1fd46d0290393e5deeb581fa617585462c1b84f7c6b0cb1e489 \
--hash=sha256:84e97378010f3da8daf673b82d39ed638098d236a1b760d61c0c1348a642bd70 \
--hash=sha256:8708f6ab9c2581ffa05f66dae3206bb0385949650537d7295fc7ab0d6454dd70 \
--hash=sha256:872d2a592289061c1b987e335b3568a2616b474be02bd0608d8f551a385441cd \
--hash=sha256:88a089e6424a8a256321270620d5a4328ad5227fb2061b07d33f596894336914 \
--hash=sha256:8e0cd755ce5e9009fd95f9c553e5942478feb8f7dffa19435641fcdc3c20e8ca \
--hash=sha256:914b19e17814315fbcca52031bf79b68237f3d87a948c584a667b18b468e4df7 \
--hash=sha256:93bfb2459195406a518e2f487a9bbf01df240175f31e06f5a252ac6734c7bbf0 \
--hash=sha256:93da48af92c84c4236578e330a514ca324362c0bb62894d8d2343363ed57ff03 \
--hash=sha256:9d4211f080920629a90c9e31c51e326fb70cfae38f18d4128b9913c23642bace \
--hash=sha256:9e7ec9dc75cadd392fd687cc9b8ccf7dd59ada0a991e0d14ae0fad9ecdba00c3 \
--hash=sha256:a266cf55ee5cf63c1803432a61c6386e750e0012ca49d12d26ccb0ffd80b343a \
--hash=sha256:a3cc63af3d639d1609143711837b926183418260aae89ed95193c07b25b99d33 \
--hash=sha256:a56491babf0d976625807953bd192dd9de973fccb3270e77b1a795b152a26175 \
--hash=sha256:a65339c24f2fb8d4419e06ceec1bda98bdcff727b3b533a81d5af6bb2dd34520 \
--hash=sha256:ab874ebcc5c12c31c859a9e9fe159d688df1f7a099818ef8a35906264a8f5d6b \
--hash=sha256:b525488d5addf5d59ff4610cd8b1deab9dc97fe0fb3fb74533d7f65e9792bd92 \
--hash=sha256:b9fe0b8c65a1611053eb7fcaa7c022f655b7eebeb0ea034572615453cae6b843 \
--hash=sha256:c0d68d972f6f6417b4e85e9522f3d57bb4fbc924379766ccd87254a31009c1cd \
--hash=sha256:c24097c0462f66358c99dc83d3e1850e005f6293cfa1df1edb243428da1668bf \
--hash=sha256:c57e40928738c4a202852759f9e1ee2c7063429a9469ee1ac15651bbf7d69963 \
--hash=sha256:c604dc2613c417130479cdd6e55c2faa691b6365aa82b3dafddfcecc2eaf1ac7 \
--hash=sha256:c680622f85979f2ff59b4ae44c1ecb5566b2f0f0ffe5d0dc8b4bb6a0e916dabb \
--hash=sha256:d276f23e2371deb5ee68dd252cc9c2402b806b54d8d2cc7efbb6c34c3a78d886 \
--hash=sha256:d58fe9fa2056fed24f055b74d5dc808fa1f5d084c22e4118f0a08253fe677ffd \
--hash=sha256:e24bf71af8a432d7808fabff134d38dfe16d3cbb41f2873bb4b1e42422de0a1a \
--hash=sha256:e39017e1cef43d03b2ba427f60213e4b36dbc6fb092235fa3de3a510ce064d3c \
--hash=sha256:e956541cc7a3fff2bb5b17aeb6c5bb42c86c8e6dafb5ebdd41a05e72e702076b \
--hash=sha256:ed9b957abb12f6ffcd92d5db32fa3ffd4e4a8423d80ddd51b4efa63b42f6a76b \
--hash=sha256:efe68ed09903cca9ab4117c2b9ea6ee8d369818808945bb5a7fa8009b5630b45 \
--hash=sha256:f1a4a85b419f5cb6470dd4be5f766bc59532f11b9c22c076b58a0348f05dca5f \
--hash=sha256:f5c410f9e2ffc9286279a46f2e8c107edaf3b1123510af59c828a9c15b23c9db \
--hash=sha256:f617e4e5c619fef5284335b24e3af3a77ce08dc5c389ff4b25033bb2749032b7
# via
# ansible-compat
# ansible-core
# molecule
referencing==0.37.0 \
--hash=sha256:381329a9f99628c9069361716891d34ad94af76e461dcb0335825aecc7692231 \
--hash=sha256:44aefc3142c5b842538163acb373e24cce6632bd54bdb01b21ad5863489f50d8
# via
# jsonschema
# jsonschema-specifications
requests==2.34.2 \
--hash=sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0 \
--hash=sha256:f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed
# via
# docker
# molecule-plugins
resolvelib==1.2.1 \
--hash=sha256:7d08a2022f6e16ce405d60b68c390f054efcfd0477d4b9bd019cc941c28fad1c \
--hash=sha256:fb06b66c8da04172d9e72a21d7d06186d8919e32ae5ab5cdf5b9d920be805ac2
# via ansible-core
rich==15.0.0 \
--hash=sha256:33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb \
--hash=sha256:edd07a4824c6b40189fb7ac9bc4c52536e9780fbbfbddf6f1e2502c31b068c36
# via
# enrich
# molecule
rpds-py==2026.9.1 \
--hash=sha256:00ba2d8c7dd4ee537978ddf4b3fbd712bef2d8751603f7f3146b3f4287768e25 \
--hash=sha256:01445c8d194aa032a08e944f16567672da1c62dbdbefd8b6d0693032e290cf68 \
--hash=sha256:028ad274ea951dac64491b5d1e65712a4aeabfdbdb9fccf797b57bd899b0c495 \
--hash=sha256:0483515261947e4e8b8e1375bf7463e7eb6ccfb3d86e7b554d90cd5285f20f32 \
--hash=sha256:068c37bba854ec2fe42f7365c640af11dd9895890ccbf2df5070d0c059bd7f96 \
--hash=sha256:074a4d198bc34d9a8ea425114fc3ded6d11ec01f6a314a8db67454a5152d8834 \
--hash=sha256:07deecbfce94c78473018bc7d10b337cc651d12df87a1eb2cb3e4024bc9c33d0 \
--hash=sha256:08dae4a4095150a7c4545a1fb40b98e1ab1744fbc2770d92c977b9dadaa49ab6 \
--hash=sha256:0da298fb372dc192610a4b9ecbc68a0cd8b675bbbd1fc519d01b41cfd658333e \
--hash=sha256:0f045bb053c9057720d72c56dffe30dffdc05997b2897a827b9325f0ab6623fa \
--hash=sha256:10e208f2425d973938afcd56e28a7c4be32e27b6a60b5d381f49fb9d8acf9759 \
--hash=sha256:136a1c3fe4402b7008bc81cb62ee538481795b61a7e83df88dff3b3f02b726ff \
--hash=sha256:159a7aab5c5e8b112c8830f54717ce56da1252ebdbb526f5be2df2309280b9e7 \
--hash=sha256:172e47169583f46ce118cbec68e6795d0da0f4606b488b6434f8276bca0a058c \
--hash=sha256:1c2d1f6da5128eabf34e963d7163a818846075a52568250d006c4c953b40f903 \
--hash=sha256:1d55198263bb51f557550c6ed2e6d1cb6a6fed6eb5c9120b741c5926bef8a45d \
--hash=sha256:1d77b649e6f7cdf12ca5c2a98dad0ad37f9ea9b6f960408a92f0cb12bb3d04d9 \
--hash=sha256:1e8d4d79d828299bf44a55db22a9388ab967b49d17132c88eab0f4360b48da8e \
--hash=sha256:22ffd29a63d71fb1b81552c21f2c2b734949b7ac751a9be70675a939a900839b \
--hash=sha256:2693b2728bbcc48d09a981a356954b0c47c53ff25b545856f28a889ea619f69a \
--hash=sha256:270bdcdaac5d5b6f73c5e22e7e135c7f2a50e789f71d9e241d5be8d90026e19a \
--hash=sha256:2711d29b653b3bce48a63d18b9c6b53274669e6d6c4094dddeb4d9a0e45128b2 \
--hash=sha256:2c16ab111bc27c646ba8aa005d0527754edc538ebb636f0b1bf8e244b48d1945 \
--hash=sha256:306ee1850d8105b5baf977e78d45fcadd12c1a54678d614c9baf217708446e91 \
--hash=sha256:3231c4c0e521dafa5be0c9f114ee2c2ad46650836f2d72caa86801950c3e7044 \
--hash=sha256:3890a6aa36e6baa53d5258a2a25d3ef8b37ad165a6ab27a892d7c3e3a432cd69 \
--hash=sha256:3a72c11530d71abfb66c8d7696a2f86c43e63fca8b948f1a784ac490f4ec688e \
--hash=sha256:3b5a6f40f0a1486b4b36c888123afc67acdbd9f33235927acf5ff295429a0ba3 \
--hash=sha256:3c91c210ae7645626c608400e3519b4a642f837cce09ca830db3beb2e9f274d4 \
--hash=sha256:3cd182d7291d29b92c521a0069d9c01ba6193628a9a105531d11b40a6d731a33 \
--hash=sha256:3e524c7874ac72884d28e16dd5b8d839fd09e0fe76b020d3fbca23212a7b8c52 \
--hash=sha256:3e93b2cd69a9830be33e03945cd7cda940a0a8bfcfbff41d6144f0cb0d3d8bd9 \
--hash=sha256:3edae8c5ddfdb6985d49ae9d150516e5076888879022f91a26c2de9276ce0bdb \
--hash=sha256:3f0e9ac28fc067d4d34b88ae43c48e9489455c97fee9633d851f7eeed5a05d35 \
--hash=sha256:42e75466f83cd43f6026c81eab74246efb2bdadafb307b85700632d06c68f299 \
--hash=sha256:44b32a7c4f0da3d28af31c259e38ddcff096f855e205ed0671d02fcf44f1ea1c \
--hash=sha256:457866b85daf5034296666168b84a69e0b2e89dc4f1af102b46f6448a60b9063 \
--hash=sha256:45bc6bccf78b20fd834237d18db64965d7ee68ba7f60440a26c7ab71e7b8d51a \
--hash=sha256:46d80bc76b51a6c24f9944368c28d38b8bcbcea1da4f2f8d3ebc31a67e8c6ec6 \
--hash=sha256:4793ef7f78268b124b73fa933440f01d258bbae01de9fa53e9080c9ab0425a12 \
--hash=sha256:492e5e428cbe126221611f47e068f01660352feec4ad18bc0f5ea9b2ae88fb14 \
--hash=sha256:4b26b03d9d2658ee2fa234f8f4f19f38a09773fe5261028025032e26d4d35af0 \
--hash=sha256:4c0d2cb595a420b34d5086db0add011e26e2c09d6a024afbac4228bf8f863a30 \
--hash=sha256:4cfaf02209061880210819934de2f4f6aa83dc04dafe6770276acc240a56da31 \
--hash=sha256:501909f2e4a1e2dee528ef766fe3c469060ebc17e54a8383d404ba07a81a6f02 \
--hash=sha256:50906f5aea24b5a865cbd0a589698288631d9f3a54c3a937c83aefa95a0d14af \
--hash=sha256:54ac2158a6f96cfbabff0b2eedaf94b90c5ec7ca8317fcadc61e1c2b2e0ff6ef \
--hash=sha256:56c6952a9b15047466d0c2347c446a761d4527f89976156341e68f0ce5cc08b0 \
--hash=sha256:56cd8b3f77d7b6812f533b662186a1f28316931166ddc00fb893b1b0db7e9888 \
--hash=sha256:57492a550a1d88d29d003247e5f78dd8cf04a701fac0e4c8db8745a6d2504e0a \
--hash=sha256:5943980471829f6de242a20b109de3111ba6b77e3af0ffc587028ac854b05e6c \
--hash=sha256:5c6ee90dee3e85e055ddfd502d611643d9b0fd94c818220bda84ec3dacd9b27b \
--hash=sha256:5c90e7fa02e8f5de0d10c17595c568ada48c5302e749462c0ea1a4c362111a86 \
--hash=sha256:5ce8943f79c2210f7abcc28e86367b03b28d95027fd01c46d2472373ae70c86f \
--hash=sha256:617f59cde379b4f648a09797b7f683d04b90a46344cddab85639da5aff0f5531 \
--hash=sha256:6307a0da524939decb8ca4a3933b8ab62525794411d6984fca6726e732804af6 \
--hash=sha256:684fd492fff4fead00587544e059be2bbcb6f93454f21fa2a91b66fc7508be82 \
--hash=sha256:6b5b393eda5ea42cca1c1a6665f2a4882b4fd5d1777e41ce0545a107fb008c9d \
--hash=sha256:6b723eb406dec5bc9ec516c73ab9c3239a3284e017f7eb89ee2b3258bd504fb7 \
--hash=sha256:6b9bf3135b4ad5981df9a73d71a35272d650a2985ae9c2746357b24d59de2448 \
--hash=sha256:6beb738155fe8ab8091afdfa5a3226b21c2b1593f1e50ebb90eb25b44dbc0391 \
--hash=sha256:6c0dbbcc19735fe5f8b0a54c07659d154a9e69f47e15d0a6ab7299215daf62cb \
--hash=sha256:6cdc537c8633d7fd92a82e2e0d2ab74320a3f63d5e59fb9cf08711e08fe151c4 \
--hash=sha256:6eae33003518fd4cb4f83a218d5371469dd3001aa3b87128c005b07762f7fe5e \
--hash=sha256:740d0a99cf9de0b17a3943388e9294a59becf75e7c43421f387bd3c7a9901f7c \
--hash=sha256:75c38c50ab9aca840225d9a9a3810bf11d04bd5c1f186cabbb8aee56db3e9b15 \
--hash=sha256:761fdae6728ceb99ab182fad2f0cc1e262f610834dc891aea1d1a2a2e634776f \
--hash=sha256:7664419f27db41d4f1c43a78dccda7dd6e8ef2428df3ee01d0c2a07a6b071297 \
--hash=sha256:76d3af9732d2dab69f28179b40ba2d87e2f1d5824b4a694780aa787d685e8f36 \
--hash=sha256:78326f4cb4427a56ba4996c0762b63be45f06b85f086526420d2b3a66e40f84d \
--hash=sha256:7868b85224291c6cb6759f9b5adb9745f486d226f62b16a614dd5a2a5ab2b35b \
--hash=sha256:815d26356930846a40c7bc1366e7b1b0320ab8a063e66c11298a208bed0fd237 \
--hash=sha256:8171b44a054e5c67fd748ada04187f1250bf35b95f85e52ab64bcf3331a923bb \
--hash=sha256:821b2755db9194409254012f429c56643416fb96ef9be090be82ec8826b7f477 \
--hash=sha256:837c6b305e26fe0f75b15c92cf3b2ba29e0ae19dc40b1c557b026cb426347d0c \
--hash=sha256:839dde845559254f34885267c6878f60d61d5205180226d976fe488d45fa128e \
--hash=sha256:84a6ecc0c940169190d2c23bd969debd48c94dbc855acd60188a68d71d421608 \
--hash=sha256:8601470267d938bcb7f3ab1a336100af51a4fd5b6ed030ef52461bb3ef5e7e07 \
--hash=sha256:88b5268892fde430d5531f95bc560b6efbbd67c929662c586afd729a96e7461c \
--hash=sha256:8aa5dda18d39b6143eb24809d158f9252c88f402749b6f1b62a506cc7d96cc35 \
--hash=sha256:926bdd3e3b5998ddf70cc64bc8cf57209571f9044542913afb673799fec77dd0 \
--hash=sha256:96beca19ec79de272e8668585380ff9092c47077c1d7a1e098e00bbd921f4785 \
--hash=sha256:9a0460d43603d1fd9ef59c30278531e15d78581721ddb538fa560aa7817ea4ad \
--hash=sha256:a03d57b86d2a51d0a66c92177e2be154ad015f357791d306e714569999cdb4cc \
--hash=sha256:a36b70596407634ca82d4b989a3729074a008537a0522e4c8046a67c729103e9 \
--hash=sha256:a3a52a3ba86436ab3aef510fbe21512abc2ddd1993005dfe50514bd2284ef025 \
--hash=sha256:a3dbc5ed9514908d5046107d7b1346bde71eea61de6e0e4919c19354f97e769f \
--hash=sha256:a431156bb41865fc14cd5d79bb9d7bbed83110b0159e34e62ae30951f96c0009 \
--hash=sha256:a575404ebc9cf2e91edd32eaf570ec1430eb900d4f56724ba7dd4bc1fc9c176d \
--hash=sha256:a5cf77eb04f20b720be95265a3e00eb2a14814074255cc27069c551b2db53118 \
--hash=sha256:a8763f20692da7df39b0afdd1ba3042b004c50a45994f76c2d9a25641f7673db \
--hash=sha256:ab4b2fda7c2b542f7f9d886cc6a838c5079d2b76f72e6081411faba11adde2c9 \
--hash=sha256:addeda51556dac7c1a2f14cda62db8b621cd12afba3091d03a96c72932387eab \
--hash=sha256:b242c27c8f836305a4a72df9cdd564386ac57b807bd252a063223331c9316b37 \
--hash=sha256:b4f062343e7ad3fa94f2c66e5ae667dee47ee74dd41a9057c4fbe163236a123d \
--hash=sha256:b5b8b0753718d258fd454283fbd57e14545d3b40583fa672e27cb4f987626bcc \
--hash=sha256:be3e47e2d91aa3942ff9bf4077a505226005abfc39b6f7554a91c1b9393986b9 \
--hash=sha256:befc2d6a953e563f8a7bfd87a42c22ebf8a3e980dcb7b6a4d17b70b0e914e8a3 \
--hash=sha256:bf35d0568abda97233239ce32896d3ad53fccc537832c104e30c94aa5fb93569 \
--hash=sha256:c933c6678c6f116ff8af47a4c6db0868b8ace74af0343016c0ef00f00272ea69 \
--hash=sha256:c9d1aca01f49170fdcf5c92761b1fafe97f554b721ca4570c5949fff778f0d4b \
--hash=sha256:cdeaa99ce822dca76cfb1b993e9120c5ea212f2eb66d48950ad63c349668a018 \
--hash=sha256:ce4d4f52e2a4324396caddbd45a97d8d7be5f42edd25d2355282a9c34f9b2f7f \
--hash=sha256:d1028417bb44037eb3069c1009bd7b7277212876cda22fbe565b0bca9fab6d2c \
--hash=sha256:d151e148117294133bf8af7eeace085e7e87432db15ab6adf640330298a47f6f \
--hash=sha256:d7841166b7fa64c9c56404617ae4341448847482d45933b13135d26c130519e5 \
--hash=sha256:d7fca4eb6df565e2a928f1c7dad92d27db8f9df0f449e76423ed5d7e713ed445 \
--hash=sha256:d95a354e02393eada6d7351184671aced9d4cce109dabf927cb7aa99624352a1 \
--hash=sha256:d9edf30457d74eebfd76b045535e36f1cd89062566a128a0db2145ca042d787e \
--hash=sha256:dbc2673f9223d420c91145599b3ba45a8a50c207d1976908e5fb5ddb0c9b9429 \
--hash=sha256:e01b3c878c8641913e688edd1b3f08658c6783d29cf6b826bd3c0d1ae7a1ffaa \
--hash=sha256:e21c1429e205828ea886a2293a4a2c8e01f4c25d9893ca330e97a6cf73f52e7b \
--hash=sha256:e43d4a1f673e8a1cbd8533e809e02b4bf9d4f2280269bb640436556312121250 \
--hash=sha256:e6d198bad4e49dd6732fbd636e2fc5c082f45c8cad0b4acb756b00c82c76072e \
--hash=sha256:e6ea1cda8d8c688278430e4268a42f5e5da3bdd74578dfadc0820c3f1766ce83 \
--hash=sha256:ea394a937f17a54c51239348bdbe2e3518124c8d4a8951ba04a311d3095bd18f \
--hash=sha256:eac2f5dbafd585dfe31f86a23ebf0d3ba480a9d49ebc87947267b5608d4ea0cd \
--hash=sha256:eb61be926bb81567c1f48bdc8aa22b9855048dc2efd53871f9f7e6e9a5632346 \
--hash=sha256:eba5d173f7d5708b22a93815017a4611873ed54db9f268077c0dd1ed99cfc858 \
--hash=sha256:ec450527cbf485e13c8d3602a54f428ab0432fdade0ede75efd74b735421c871 \
--hash=sha256:eef6a03b0b6d08d0835ccfa8ec8d1bc70525e3801387567137b50c557695e6da \
--hash=sha256:ef0d8c843e2827d6c120ab4687e9423fb1d893db1df27b7c1506615bcb9734a0 \
--hash=sha256:ef6b65b03247c54692ad4fd9ee97cb772781927db72e3cb05e70b3db6d1ff14f \
--hash=sha256:f3d6ed6a98cfd19155996605474982cc470d7601746a6439078f1a5a3fa8b050 \
--hash=sha256:fce4b85234a0cbad67bf8e6e1201ee815d172c9aebad75f25645bc4d834f8e31 \
--hash=sha256:fda1d96e542c37b6c804547dbf489c129fe7c97183a76a5ec275909ba1a063df \
--hash=sha256:fdcd198979b4ecffcc1beba366a7fbcf4eb41243691a82fe52ceb0b902f09c12 \
--hash=sha256:fe5ad0664ec772b02c45859041aa17655709cced7a31005817fbbbd988c25567
# via
# jsonschema
# referencing
selinux==0.3.0 \
--hash=sha256:2a88b337ac46ad0f06f557b2806c3df62421972f766673dd8bf26732fb75a9ea \
--hash=sha256:ecf7add45c939e9dda682c390a2cd0a845c94a4793a2cce9e8870d4ee9501f99
# via molecule-plugins
subprocess-tee==0.4.2 \
--hash=sha256:21942e976715af4a19a526918adb03a8a27a8edab959f2d075b777e3d78f532d \
--hash=sha256:91b2b4da3aae9a7088d84acaf2ea0abee3f4fd9c0d2eae69a9b9122a71476590
# via ansible-compat
urllib3==2.8.0 \
--hash=sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3 \
--hash=sha256:63bf2ead4c879426ebf22ef2a781eeb4aa3b4ae798a0435506f8687fd5bb9b63
# via
# docker
# requests
wcmatch==12.0.4 \
--hash=sha256:23fe77fbfa3fff9e46f0f4a3d1891065270596774bd6131bd2f973fb822242a1 \
--hash=sha256:3e61e404a90a8b6c8bca197fb9ad5f1accbb34ee206b63e0c588a2ab9aa05862
# via molecule
+11
View File
@@ -0,0 +1,11 @@
# Pinned tooling of the molecule-controller image (images/molecule-controller, ADR 0003): what Molecule
# itself runs, nothing Lint uses. requirements-molecule.lock is its hashed lock and is what gets installed:
# pip install --require-hashes -r requirements-molecule.lock -r requirements-molecule.txt
# Renovate bumps a pin here and regenerates the lock (pip-compile manager); by hand, run
# scripts/lock-requirements.sh requirements-molecule.txt and commit both files.
# ansible-core equals the pin of requirements-dev.txt (check_image_versions.py pins fails otherwise), so
# Lint and Molecule judge the code with one ansible-core.
ansible-core==2.22.0
molecule==26.11.1
# The Docker driver, with the docker Python SDK it and the community.docker modules of its playbooks use.
molecule-plugins[docker]==26.11.0
+3 -2
View File
@@ -2,8 +2,9 @@
# Collections the roles of this Collection call (the dependencies of galaxy.yml, pinned exactly).
# galaxy.yml holds the lower bounds a consumer needs; this file holds the versions CI tests
# against. One file feeds every consumer, so they cannot drift apart:
# - the ci image (images/ci/Dockerfile) bakes it into /opt/collections for Lint and Molecule;
# - the Molecule job (.gitea/workflows/molecule.yml) installs it itself when a pull request changes it;
# - the ci image (images/ci/Dockerfile) bakes it into /opt/collections for Lint;
# - the molecule-controller image (images/molecule-controller/Dockerfile) bakes it for Molecule,
# and scripts/run_molecule_in_controller.sh installs it itself when a pull request changes it;
# - scripts/dev-setup.sh installs it into .ansible/collections for local lint.
# Renovate (renovate.json, ansible-galaxy manager) bumps these pins.
collections:
+8 -1
View File
@@ -68,6 +68,11 @@ names a check that does not exist yet and its backlog issue.
- **Secrets.** Never in plaintext in the repository, a role's defaults, task output or a file on
the controller; `no_log: true` on every task that carries one; a secret is a required input
with no default; a role generates one only straight into a secret store the consumer names.
A secret returned as a `no_log`, non-cacheable output fact from an opt-in entry point, for the
calling play to persist (for example vault-encrypted into inventory), counts as handed straight
to the consumer's store, as the gitea and cloudflared `mint` entry points do. Such an entry point
has a confirm flag, refuses under CI environment variables, sets `no_log` on every task, blanks
its intermediates, skips under `--check` and does nothing when the secret already exists.
Keys a host generates for itself and keeps (SSH host keys) are not covered. The README line
"`no_log` is not used: the role handles no secrets" stays only where true. *Why:* nothing leaks
today and a role writing to a secret store stays possible. *Held:* review.
@@ -114,7 +119,9 @@ names a check that does not exist yet and its backlog issue.
only on a supported entry point, an internal role on any entry point in its argument_specs.
*Why:* a task-level include keeps the order readable, where `meta` dependencies run hidden and
deduplicated. *Held:* the selector runs a dependent role's scenarios when a role it uses
changes; review for empty `dependencies` until Lint fails a non-empty one (#246).
changes; control: `test_roles_call_each_other_by_full_name_only` in
`tests/scripts/test_select_molecule_scenarios.py`, run by the Lint check, fails a non-empty
`dependencies`.
- **Internal roles.** A leading `_`; only roles of this Collection call it, by FQCN; it refuses
to run without a parent role (an `assert` on `ansible_parent_role_names`, as in
`_binary_update`); it has argument_specs and Molecule scenarios and follows the platform rules.
+4 -2
View File
@@ -27,6 +27,7 @@ The role targets Ubuntu hosts only: it installs from Docker's Ubuntu repository,
| `docker_keyring_path` | `/etc/apt/keyrings/docker.asc` | no | Repository key location. |
| `docker_apt_list_path` | `/etc/apt/sources.list.d/docker.list` | no | APT source file. |
| `docker_gpg_url` | `https://download.docker.com/linux/ubuntu/gpg` | no | Key URL. |
| `docker_keyring_checksum` | sha256 of the current Docker key | no | Expected sha256 (hex, no `sha256:` prefix) of the key at `docker_gpg_url`; set it too when `docker_gpg_url` is overridden; a mismatch fails the download, so a changed key stops the install until this is updated. |
| `docker_repo_base_url` | `https://download.docker.com/linux/ubuntu` | no | Repository base URL. |
| `docker_apt_arch` | derived from the host | no | Architecture in the APT source. Empty derives it (`x86_64` gives `amd64`, `aarch64` gives `arm64`); another architecture fails until this is set. A value set here is always used; lowercase letters and digits only. |
| `docker_start_missed` | `false` | no | Install a boot unit that starts the containers Docker skipped after a reboot (see [Boot and shutdown units](#boot-and-shutdown-units)). |
@@ -86,17 +87,18 @@ With any of `docker_daemon_options`, `docker_live_restore`, `docker_log_driver`,
## Tests
`molecule/default` runs in CI only (`.gitea/workflows/molecule.yml`, no local runner), on two platforms: `${MOLECULE_IMAGE}` (Ubuntu 24.04) and `${MOLECULE_IMAGE_2604}` (Ubuntu 26.04). A real Docker Engine cannot run there: `dockerd` needs the bridge, iptables rules and a delegated cgroup, and the container has no privileged mode. So the scenario builds a local APT repository, signs it with a throwaway key, and points the role at it with `docker_gpg_url` and `docker_repo_base_url`. The repository holds empty stand-ins for `docker-ce`, `docker-ce-cli` and `containerd.io`. The stand-in `docker-ce` ships a stub `docker.service` (`sleep infinity`) and creates the `docker` group, as the real package does. It runs `check` before the converge (on a fresh host) and after it (on the configured host).
`molecule/default` runs in CI only (`.gitea/workflows/molecule.yml`, no local runner), on two platforms: `${MOLECULE_IMAGE}` (Ubuntu 24.04) and `${MOLECULE_IMAGE_2604}` (Ubuntu 26.04). A real Docker Engine cannot run there: `dockerd` needs the bridge, iptables rules and a delegated cgroup, and the container has no privileged mode. So the scenario builds a local APT repository, signs it with a throwaway key, and points the role at it with `docker_gpg_url`, `docker_keyring_checksum` (the throwaway key's hash) and `docker_repo_base_url`. The repository holds empty stand-ins for `docker-ce`, `docker-ce-cli` and `containerd.io`. The stand-in `docker-ce` ships a stub `docker.service` (`sleep infinity`) and creates the `docker` group, as the real package does. It runs `check` before the converge (on a fresh host) and after it (on the configured host).
What it shows, with the role's tasks running unchanged:
- The key is fetched, stored at `docker_keyring_path` with mode `0644`, and apt really verifies the repository against it (an unsigned or wrongly signed repository would leave no install candidate).
- The key is fetched, checked against `docker_keyring_checksum`, stored at `docker_keyring_path` with mode `0644`, and apt really verifies the repository against it (an unsigned or wrongly signed repository would leave no install candidate).
- The source line has the architecture, the `signed-by` keyring and `ansible_facts['distribution_release']`.
- The packages are installed from that repository, the unit is enabled and active, and `docker_users` join `docker_group`.
- `docker_remove` with `docker_remove_data` removes the source line, the keyring, the packages, the unit and `/var/lib/docker`.
- Both units are installed, enabled, ordered against `docker.service` as stated, the shutdown unit is active, a unit is removed when its input is `false`, and `docker_remove` removes both.
- With the daemon inputs set, `/etc/docker/daemon.json` is valid JSON with exactly the expected keys, mode `0644` and root-owned. A change with `docker_daemon_restart: false` leaves dockerd running (its start time is unchanged); with `true` it restarts it. A key set both in `docker_daemon_options` and by a dedicated input, and a bad log size, driver or file count, are refused before any change.
- The argument check refuses a mapping for `docker_users`, a non-boolean `docker_remove` and a `docker_stop_at_shutdown_timeout` of 0.
- A key whose hash does not match `docker_keyring_checksum` fails the key download.
- A second run changes nothing (molecule's idempotence check).
What it does not show: what the units do at a real boot or shutdown (the container has no dockerd, no NFS shares and no reboot; the selection logic of `docker-start-missed` is unit-tested in `tests/scripts/test_docker_files.py`), that the upstream repository and key at `download.docker.com` are reachable and valid, that the real packages install, that `dockerd` starts, anything about container networking or iptables, the `docker_update` path (`tasks/update.yml`), and removal without `docker_remove_data` (the removal stops the unit first, so it can run only once per install). It needs the Ubuntu mirrors, for the `curl` the role installs. These gaps are a known residual risk of the role.
+4
View File
@@ -11,6 +11,10 @@ docker_packages:
docker_keyring_path: /etc/apt/keyrings/docker.asc
docker_apt_list_path: /etc/apt/sources.list.d/docker.list
docker_gpg_url: https://download.docker.com/linux/ubuntu/gpg
# sha256 of Docker's package signing key (9DC858229FC7DD38854AE2D88D81803C0EBFCD88), as the ASCII-armored file
# docker_gpg_url serves. Static on purpose: a rotated or re-armored key fails the install until a person has checked the
# new one and updated this hash.
docker_keyring_checksum: "1500c1f56fa9e26b9b8f42452a553675796ade0807cdce11975eb98170b3a570"
docker_repo_base_url: https://download.docker.com/linux/ubuntu
# Architecture written into the APT source. Empty (the default) derives it from the host: x86_64 gives amd64, aarch64 gives arm64, any
+8
View File
@@ -49,6 +49,14 @@ argument_specs:
default: https://download.docker.com/linux/ubuntu/gpg
description:
- URL of the repository signing key.
docker_keyring_checksum:
type: str
default: 1500c1f56fa9e26b9b8f42452a553675796ade0807cdce11975eb98170b3a570
description:
- >-
sha256 of the key at C(docker_gpg_url), as the hex digest without the C(sha256:) prefix. The download fails
on a mismatch, so a rotated or re-armored upstream key stops the install until the new key is checked and
the hash updated. Set C(docker_keyring_checksum) too when C(docker_gpg_url) is overridden.
docker_repo_base_url:
type: str
default: https://download.docker.com/linux/ubuntu
@@ -7,6 +7,8 @@
hosts: all
vars:
docker_gpg_url: file:///srv/docker-stub-repo/docker.asc
# The stand-in key is generated per run, so its hash is read here rather than pinned.
docker_keyring_checksum: "{{ docker_stub_key.stat.checksum }}"
docker_repo_base_url: file:///srv/docker-stub-repo
docker_users: [moleculeuser]
docker_start_missed: true
@@ -18,5 +20,11 @@
docker_log_max_file: "3"
docker_daemon_options:
max-concurrent-downloads: 3
pre_tasks:
- name: Stat the stand-in repository key
ansible.builtin.stat:
path: /srv/docker-stub-repo/docker.asc
checksum_algorithm: sha256
register: docker_stub_key
roles:
- role: mortis.kamino.docker
@@ -0,0 +1,27 @@
---
# The zeroed hash matches no file, so the key task must be the one that fails.
- name: Run the role with a checksum the stand-in key does not have
block:
- name: Include the role
ansible.builtin.include_role:
name: mortis.kamino.docker
vars:
docker_gpg_url: file:///srv/docker-stub-repo/docker.asc
docker_repo_base_url: file:///srv/docker-stub-repo
docker_keyring_path: /tmp/docker-refused-key.asc
docker_keyring_checksum: "{{ '0' * 64 }}"
- name: Fail when the wrong key was accepted
ansible.builtin.fail:
msg: MOLECULE-ACCEPTED
rescue:
- name: The key download stopped the play
ansible.builtin.assert:
that:
- ansible_failed_task.name == 'Install Docker APT GPG key'
- "'did not match' in ansible_failed_result.msg | default('')"
quiet: true
always:
- name: Remove the refused key path
ansible.builtin.file:
path: /tmp/docker-refused-key.asc
state: absent
+57 -45
View File
@@ -297,41 +297,7 @@
changed_when: false
failed_when: docker_verify_start_run.rc != 2
# Switching an input back to false removes that unit and script and leaves the other alone.
- name: Verify that a unit is removed when its input is false
hosts: all
vars:
docker_gpg_url: file:///srv/docker-stub-repo/docker.asc
docker_repo_base_url: file:///srv/docker-stub-repo
docker_users: [moleculeuser]
docker_start_missed: false
docker_stop_at_shutdown: true
docker_stop_at_shutdown_timeout: 20
tasks:
- name: Apply the role with the boot unit off
ansible.builtin.include_role:
name: mortis.kamino.docker
- name: Stat the boot unit's files and the shutdown unit's script
ansible.builtin.stat:
path: "{{ item }}"
loop:
- /usr/local/sbin/docker-start-missed
- /etc/systemd/system/docker-start-missed.service
- /usr/local/sbin/docker-stop-at-shutdown
register: docker_verify_off
- name: The boot unit is gone and the shutdown unit is still there
ansible.builtin.assert:
that: docker_verify_off.results | map(attribute='stat.exists') | list == [false, false, true]
quiet: true
- name: Apply the role again with both inputs on
ansible.builtin.include_role:
name: mortis.kamino.docker
vars:
docker_start_missed: true
# Converge's daemon.json, read before the role runs below change it.
- name: Verify the daemon settings
hosts: all
gather_facts: false
@@ -362,31 +328,43 @@
- docker_verify_daemon_stat.stat.pw_name == 'root'
quiet: true
# The stand-in docker.service runs for real, so a restart shows in its start time: a changed file with docker_daemon_restart false leaves
# it alone, and with true restarts it.
- name: Verify that dockerd restarts only when asked
# The stand-in docker.service runs for real, so a restart shows in its start time. The first run turns the boot unit off and changes
# daemon.json with docker_daemon_restart false: the unit goes, the other stays and dockerd keeps running. The second turns everything
# back on with docker_daemon_restart true: the boot unit returns and dockerd restarts.
- name: Verify the unit inputs and that dockerd restarts only when asked
hosts: all
vars:
docker_gpg_url: file:///srv/docker-stub-repo/docker.asc
docker_keyring_checksum: "{{ docker_stub_key.stat.checksum }}"
docker_repo_base_url: file:///srv/docker-stub-repo
docker_users: [moleculeuser]
docker_start_missed: true
docker_stop_at_shutdown: true
docker_stop_at_shutdown_timeout: 20
docker_log_driver: local
docker_log_max_size: 10m
docker_log_max_file: "3"
docker_live_restore: true
docker_verify_unit_paths:
- /usr/local/sbin/docker-start-missed
- /etc/systemd/system/docker-start-missed.service
- /usr/local/sbin/docker-stop-at-shutdown
tasks:
- name: Stat the stand-in repository key
ansible.builtin.stat:
path: /srv/docker-stub-repo/docker.asc
checksum_algorithm: sha256
register: docker_stub_key
- name: Read the start time of the service
ansible.builtin.command: systemctl show -p ActiveEnterTimestampMonotonic docker.service # noqa: command-instead-of-module
register: docker_verify_before
changed_when: false
- name: Apply a changed setting with docker_daemon_restart false
- name: Apply the boot unit off and a changed setting with docker_daemon_restart false
ansible.builtin.include_role:
name: mortis.kamino.docker
vars:
docker_start_missed: false
docker_daemon_options: {max-concurrent-downloads: 5}
docker_daemon_restart: false
@@ -395,10 +373,30 @@
register: docker_verify_kept
changed_when: false
- name: Apply another change with docker_daemon_restart true
- name: Stat the boot unit's files and the shutdown unit's script
ansible.builtin.stat:
path: "{{ item }}"
loop: "{{ docker_verify_unit_paths }}"
register: docker_verify_off
- name: Read daemon.json
ansible.builtin.slurp:
src: /etc/docker/daemon.json
register: docker_verify_daemon_kept
- name: The boot unit is gone, the shutdown unit is still there, and the changed file left dockerd running
ansible.builtin.assert:
that:
- docker_verify_off.results | map(attribute='stat.exists') | list == [false, false, true]
- (docker_verify_daemon_kept.content | b64decode | from_json)['max-concurrent-downloads'] == 5
- docker_verify_kept.stdout == docker_verify_before.stdout
quiet: true
- name: Apply both units on and another change with docker_daemon_restart true
ansible.builtin.include_role:
name: mortis.kamino.docker
vars:
docker_start_missed: true
docker_daemon_options: {max-concurrent-downloads: 6}
docker_daemon_restart: true
@@ -407,19 +405,33 @@
register: docker_verify_restarted
changed_when: false
- name: Read daemon.json
- name: Stat the unit files again
ansible.builtin.stat:
path: "{{ item }}"
loop: "{{ docker_verify_unit_paths }}"
register: docker_verify_on
- name: Read daemon.json again
ansible.builtin.slurp:
src: /etc/docker/daemon.json
register: docker_verify_daemon_after
- name: The first change left dockerd alone and the second restarted it
- name: Both units are back and the second change restarted dockerd
ansible.builtin.assert:
that:
- docker_verify_kept.stdout == docker_verify_before.stdout
- docker_verify_restarted.stdout != docker_verify_kept.stdout
- docker_verify_on.results | map(attribute='stat.exists') | unique | list == [true]
- (docker_verify_daemon_after.content | b64decode | from_json)['max-concurrent-downloads'] == 6
- docker_verify_restarted.stdout != docker_verify_kept.stdout
quiet: true
# A key that does not match docker_keyring_checksum fails at the key download, so the source line and packages are untouched. It goes to a separate path, so
# the installed key stays for the removal below.
- name: A key that does not match the pinned checksum is refused
hosts: all
tasks:
- name: Apply the role with a wrong checksum
ansible.builtin.include_tasks: tasks/refuse_checksum.yml
# docker_remove_data is set, so this also covers the destructive path: the packages are
# purged and /var/lib/docker, seeded in prepare.yml, is deleted. The removal stops the unit
# before the package takes it away, so it can only run once; a second run would fail on the
+1
View File
@@ -23,6 +23,7 @@
ansible.builtin.get_url:
url: "{{ docker_gpg_url }}"
dest: "{{ docker_keyring_path }}"
checksum: "sha256:{{ docker_keyring_checksum }}"
mode: "0644"
tags: [docker, install]
+5 -3
View File
@@ -82,24 +82,26 @@ Main entry point: `fail2ban` (everything), `fail2ban_install`, `fail2ban_validat
## Tests
The scenario `molecule/default/` runs in CI only, on two platforms: `${MOLECULE_IMAGE}` (Ubuntu 24.04) and `${MOLECULE_IMAGE_2604}` (Ubuntu 26.04). It runs `check` before the converge (a fresh host, where the image already has fail2ban installed) and after it (a configured host).
The scenario `molecule/default/` runs in CI only, on two platforms: `${MOLECULE_IMAGE}` (Ubuntu 24.04) and `${MOLECULE_IMAGE_2604}` (Ubuntu 26.04). It runs `check` before the converge (a fresh host, where the role installs fail2ban) and after it (a configured host).
- Converge applies the main entry point with an extra `fail2ban_ignoreip` network and calls `service_jail` twice, one jail with a `logpath` and one with a `journalmatch`.
- Converge also runs inputs that must be refused: a service filter without `failregex`, and a `fail2ban_ignoreip` entry with whitespace, a plain string instead of a list, and an entry starting with `;`. The `fail2ban_ignoreip` refusals are matched on their message.
- Verify checks that the `sshd` jail does not read `/var/log/auth.log`, that `jail.local` holds the configured `ignoreip` in `[DEFAULT]` and none of the refused values, that each service jail has its own `jail.d` file and the refused one left no file, that `fail2ban-client -t` passes, and that the running daemon loaded `sshd`, `svc-a` and `svc-b` and applies the `ignoreip` network to both a base jail and a service jail.
- The side effect bans an address and rewrites `jail.local` with a new `maxretry`; verify checks the new value is active, the ban is still in force and the daemon PID is unchanged, so the change reloaded Fail2Ban instead of restarting it.
The scenario `molecule/check-absent/` runs on the same two platforms: prepare purges fail2ban and refreshes the APT cache, then `check` runs the main entry point and `service_jail` under `--check`, which must pass with fail2ban not installed. Nothing is applied.
Not covered: no failure is sent through a jail, so a ban triggered by `failregex` is not tested, and the reload behaviours read from the Fail2Ban source (see Notes) are not run.
## Notes
- Idempotent: yes.
- Check mode: `--check` previews a host where fail2ban is already installed; a play-level `check_mode: true` is not supported. On a host without fail2ban it fails at the configuration and service tasks: the package is not installed under `--check`, so `/etc/fail2ban`, `fail2ban-client` and the unit are missing.
- Check mode: `--check` is the supported preview; a play-level `check_mode: true` is not supported. On a host without fail2ban the preview reports the install and skips the configuration, the service and the jail tasks, which need `/etc/fail2ban`, `fail2ban-client` and the unit.
- `fail2ban_ignoreip` lives in the `[DEFAULT]` section of `jail.local`, so it also applies to the jails that `service_jail` writes to `jail.d`. The exemption only exists once the main entry point has written `jail.local` on that host: `service_jail` does not read `fail2ban_ignoreip`, so a host that uses only `service_jail` has none.
- `fail2ban_ignoreip` replaces an `ignoreip` set in `jail.conf` or `jail.d/*.conf`, which Fail2Ban reads before `jail.local`; a `jail.d/*.local` file is read after it and can still override it for one jail. Entries must not contain whitespace, `;` or `%` (a `;` after whitespace starts a comment in Fail2Ban's config files and a `%` is interpolation syntax).
- Prefer IP addresses and CIDR networks in `fail2ban_ignoreip`. Fail2Ban resolves a hostname when the jail starts, and a failed lookup leaves that entry ineffective with only a log warning. The validation of `fail2ban_ignoreip` runs under the `fail2ban_validate` tag, so `--tags fail2ban_configure` skips it.
- Changing `jail.local` or a service jail reloads Fail2Ban instead of restarting it. A restart stops every jail, which flushes its bans out of the firewall until they are restored from the database, and forgets failures counted toward `maxretry`; a reload applies the new settings to the running jails. When the whole role runs, the reload comes after `fail2ban-client -t`.
- What a reload does not do, compared with the restart it replaces (read from the Fail2Ban 1.1.0 source, not run here): it does not unban an address that a widened `fail2ban_ignoreip` now covers (only a restart skips ignored addresses when it restores bans, so run `fail2ban-client unban <address>` to release one at once, or wait for the ban to expire); it does not change bans that already exist when `bantime` changes; and it does not apply server-level settings (`loglevel`, `dbfile`, `socket`, `pidfile`), which this role does not write. A changed `backend` restarts that jail by itself.
- With `--tags fail2ban_configure` only, `fail2ban-client -t` does not run before the reload; the reload (`fail2ban-client reload` in the upstream unit) still rejects a bad configuration and leaves the running daemon alone.
- `fail2ban-client -t` runs on every invocation of both entry points, not only when a file changed, so a broken file fails every run until fixed. It also runs in check mode.
- `fail2ban-client -t` runs on every invocation of both entry points, not only when a file changed, so a broken file fails every run until fixed. It also runs in check mode, except on a host without fail2ban.
- `no_log` is not used: the role handles no secrets.
+2
View File
@@ -11,3 +11,5 @@
ansible.builtin.systemd:
name: fail2ban
state: reloaded
# Under --check on a fresh host the package is not installed, so there is no unit to reload.
when: not ansible_check_mode or __fail2ban_install | default({}) is not changed
@@ -0,0 +1,21 @@
---
# Run only under --check (the check step): fail2ban is not installed, so the tasks that need it skip.
- name: Converge the base role on a host without fail2ban
hosts: all
roles:
- role: mortis.kamino.fail2ban
- name: Converge a service jail on a host without fail2ban
hosts: all
tasks:
- name: Service jail with a journalmatch
ansible.builtin.include_role:
name: mortis.kamino.fail2ban
tasks_from: service_jail
vars:
fail2ban_service_name: svc-a
fail2ban_service_jail:
port: "8080"
journalmatch: "_SYSTEMD_UNIT=ssh.service"
fail2ban_service_filter:
failregex: "^.*denied for <HOST>.*$"
@@ -0,0 +1,55 @@
---
# Runs on the repository's own runner (label kamino-molecule), in the molecule-ubuntu2404
# (MOLECULE_IMAGE) and molecule-ubuntu2604 (MOLECULE_IMAGE_2604) images, pinned in
# .gitea/workflows/molecule.yml. No privileged mode: systemd needs a writable cgroup and the
# firewall tools need NET_ADMIN, nothing else. Needs the network:
# prepare purges any fail2ban and refreshes the APT cache the image deletes.
driver:
name: docker
platforms:
- name: ${KAMINO_RUN_ID:-local}-fail2ban-check-absent-instance
labels:
net.rkdr.mortis.molecule-run: "${KAMINO_RUN_ID:-local}"
image: ${MOLECULE_IMAGE}
pre_build_image: true
pull: true
command: /sbin/init
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
tmpfs:
- /run
- /run/lock
capabilities:
- NET_ADMIN
security_opts:
- apparmor=unconfined
- name: ${KAMINO_RUN_ID:-local}-fail2ban-check-absent-2604-instance
labels:
net.rkdr.mortis.molecule-run: "${KAMINO_RUN_ID:-local}"
image: ${MOLECULE_IMAGE_2604}
pre_build_image: true
pull: true
command: /sbin/init
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
tmpfs:
- /run
- /run/lock
capabilities:
- NET_ADMIN
security_opts:
- apparmor=unconfined
provisioner:
name: ansible
verifier:
name: ansible
scenario:
# Previews the role on a host without fail2ban (--check only, nothing is applied); no destroy:
# scripts/run_molecule_scenarios.sh removes the container as soon as this scenario ends.
test_sequence:
- dependency
- create
- prepare
- check
@@ -0,0 +1,16 @@
---
# The purge keeps the scenario independent of what the image ships. The image keeps no APT lists,
# and the check step needs them, or the install task cannot even preview the package.
- name: Prepare a host without fail2ban
hosts: all
gather_facts: false
tasks:
- name: Purge fail2ban
ansible.builtin.apt:
name: fail2ban
state: absent
purge: true
- name: Refresh the APT cache
ansible.builtin.apt:
update_cache: true
+7 -1
View File
@@ -1,9 +1,15 @@
---
# The log file a service jail watches must exist, or `fail2ban-client -t` fails.
# The image keeps no APT lists, and --check does not refresh them, so the fresh-host check needs
# them to preview the fail2ban install. The log file a service jail watches must exist, or
# `fail2ban-client -t` fails.
- name: Prepare
hosts: all
gather_facts: false
tasks:
- name: Refresh the APT cache
ansible.builtin.apt:
update_cache: true
- name: Create the log file the logpath jail watches
ansible.builtin.file:
path: /var/log/svc-a.log
+2
View File
@@ -8,3 +8,5 @@
group: root
mode: "0600"
notify: Reload Fail2Ban
# Under --check on a fresh host the package is not installed, so /etc/fail2ban is missing.
when: not ansible_check_mode or __fail2ban_install | default({}) is not changed
+1
View File
@@ -7,3 +7,4 @@
# Required for `backend = systemd` jails (journalmatch), e.g. gitea's.
- python3-systemd
state: present
register: __fail2ban_install
+6 -1
View File
@@ -8,6 +8,8 @@
failed_when: fail2ban_test.rc != 0
changed_when: false
check_mode: false
# Under --check on a fresh host the package is not installed: no fail2ban-client and no unit.
when: not ansible_check_mode or __fail2ban_install | default({}) is not changed
- name: Ensure Fail2Ban service is running
become: true
@@ -15,6 +17,7 @@
name: fail2ban
enabled: "{{ fail2ban_service.enabled | default(true) }}"
state: "{{ fail2ban_service.state | default('started') }}"
when: not ansible_check_mode or __fail2ban_install | default({}) is not changed
# Handlers run at the end of the play; flush so the reload happens after the
# configuration test above and before the jail check below.
@@ -33,4 +36,6 @@
delay: 2
changed_when: false
check_mode: false
when: fail2ban_service.state | default('started') == 'started'
when:
- not ansible_check_mode or __fail2ban_install | default({}) is not changed
- fail2ban_service.state | default('started') == 'started'
+5 -2
View File
@@ -33,6 +33,8 @@
group: root
mode: "0644"
notify: Reload Fail2Ban
# Under --check on a fresh host the package is not installed, so /etc/fail2ban is missing.
when: not ansible_check_mode or __fail2ban_install | default({}) is not changed
tags: [fail2ban, fail2ban_service_jail]
- name: Deploy service jail
@@ -44,14 +46,15 @@
group: root
mode: "0644"
notify: Reload Fail2Ban
when: not ansible_check_mode or __fail2ban_install | default({}) is not changed
tags: [fail2ban, fail2ban_service_jail]
# Read-only, so it also runs in check mode. A failure leaves the broken file on
# disk and fails every run until fixed, instead of only the run that wrote it.
tags: [fail2ban, fail2ban_service_jail]
- name: Test Fail2Ban configuration
become: true
ansible.builtin.command: fail2ban-client -t
changed_when: false
check_mode: false
when: not ansible_check_mode or __fail2ban_install | default({}) is not changed
tags: [fail2ban, fail2ban_service_jail]
+1 -1
View File
@@ -7,7 +7,7 @@
# the service starts) is not covered. The mint tasks only assert, but the remove-path play at the
# end of verify.yml needs systemd (it stops and disables a stub unit) and ufw (it deletes the Gitea
# rules), so the container runs systemd as PID 1 with a writable cgroup and NET_ADMIN. No
# privileged mode. Both images have ufw and gnupg preinstalled, so the scenario downloads nothing.
# privileged mode. Both images have gnupg preinstalled; prepare.yml installs ufw from the archive.
driver:
name: docker
platforms:
+12
View File
@@ -0,0 +1,12 @@
---
# The remove-path play in verify.yml needs ufw, which the image does not ship. It keeps no APT
# lists, so the install refreshes them.
- name: Prepare
hosts: all
gather_facts: false
tasks:
- name: Install ufw
ansible.builtin.apt:
name: ufw
state: present
update_cache: true
+38 -38
View File
@@ -359,23 +359,26 @@
loop_var: gitea_runner_test_path
# 6.0.2 has a wrong checksum file (prepare.yml): the download must fail before anything is
# stopped, so the runner keeps running 6.0.1.
- name: Verify a failed download leaves the runner running
# stopped, so the runner keeps running 6.0.1. The same run sets the disk threshold to 0: prune
# runs before update, so the pressure units are already removed when the download fails.
- name: Verify a failed download leaves the runner running, and turning the pressure prune off
hosts: all
gather_facts: false
tasks:
- name: Update to a release whose checksum does not match
block:
- name: Include the role with gitea_runner_version 6.0.2
- name: Include the role with gitea_runner_version 6.0.2 and the disk threshold at 0
ansible.builtin.include_role:
name: mortis.kamino.gitea_runner
vars:
gitea_runner_version: 6.0.2
gitea_runner_docker_prune_disk_threshold_percent: 0
- name: Fail because the include returned
ansible.builtin.fail:
msg: The role accepted a binary with a wrong checksum
rescue:
# The message comes only from the staging rescue, so a prune error fails this assert.
- name: The staging failed, and nothing else failed first
ansible.builtin.assert:
that:
@@ -407,6 +410,31 @@
- not gitea_runner_test_staged.stat.exists
quiet: true
- name: Stat the pressure units and script
ansible.builtin.stat:
path: "{{ gitea_runner_test_path }}"
loop:
- /etc/systemd/system/gitea-runner-docker-prune-pressure.service
- /etc/systemd/system/gitea-runner-docker-prune-pressure.timer
- /usr/local/sbin/gitea-runner-docker-prune-disk-check
loop_control:
loop_var: gitea_runner_test_path
register: gitea_runner_test_pressure_off
- name: Ask systemd about the pressure timer after turning it off
ansible.builtin.systemd:
name: gitea-runner-docker-prune-pressure.timer
register: gitea_runner_test_pressure_timer_off
# The module errors for a unit that no longer exists, which is also a pass.
failed_when: false
- name: The pressure units are gone and the timer is not active
ansible.builtin.assert:
that:
- gitea_runner_test_pressure_off.results | map(attribute='stat') | map(attribute='exists') | select | list | length == 0
- gitea_runner_test_pressure_timer_off.status.ActiveState | default('inactive') != 'active'
quiet: true
# Each input assert, through the main entry point. Every one runs in validate.yml, before any
# change.
- name: Verify the input asserts
@@ -448,8 +476,9 @@
label: "{{ gitea_runner_test_refused.name }}"
# The CI guard and the mint-before-drop order of a forced re-registration, through a child
# ansible-playbook against this instance (see force_register.yml). Neither case may touch the
# registration or stop the runner.
# ansible-playbook against one instance (see force_register.yml). Neither case may touch the
# registration or stop the runner. The children run once: what they check is controller state
# and group_vars, the same for every host, and run_once gives every host their results.
- name: Verify the forced re-registration guards
hosts: all
gather_facts: false
@@ -465,6 +494,7 @@
- name: Force a re-registration under each CI variable, as a child process with only that one set
delegate_to: localhost
run_once: true
ansible.builtin.command:
argv:
- ansible-playbook
@@ -497,6 +527,7 @@
- name: Force a re-registration outside CI with no token host, as a child process
delegate_to: localhost
run_once: true
ansible.builtin.command:
argv:
- ansible-playbook
@@ -550,43 +581,12 @@
- gitea_runner_test_unit.status.ActiveState == 'active'
quiet: true
# A threshold of 0 removes the pressure units; the run after it, with the scenario's inputs,
# The failed-download run above removed the pressure units; this run, with the scenario's inputs,
# puts them back, so the remove path below still has them to remove.
- name: Verify turning the pressure prune off
- name: Verify turning the pressure prune on again
hosts: all
gather_facts: false
tasks:
- name: Run the role with the disk threshold at 0
ansible.builtin.include_role:
name: mortis.kamino.gitea_runner
vars:
gitea_runner_docker_prune_disk_threshold_percent: 0
- name: Stat the pressure units and script
ansible.builtin.stat:
path: "{{ gitea_runner_test_path }}"
loop:
- /etc/systemd/system/gitea-runner-docker-prune-pressure.service
- /etc/systemd/system/gitea-runner-docker-prune-pressure.timer
- /usr/local/sbin/gitea-runner-docker-prune-disk-check
loop_control:
loop_var: gitea_runner_test_path
register: gitea_runner_test_pressure_off
- name: Ask systemd about the pressure timer after turning it off
ansible.builtin.systemd:
name: gitea-runner-docker-prune-pressure.timer
register: gitea_runner_test_pressure_timer_off
# The module errors for a unit that no longer exists, which is also a pass.
failed_when: false
- name: The pressure units are gone and the timer is not active
ansible.builtin.assert:
that:
- gitea_runner_test_pressure_off.results | map(attribute='stat') | map(attribute='exists') | select | list | length == 0
- gitea_runner_test_pressure_timer_off.status.ActiveState | default('inactive') != 'active'
quiet: true
- name: Run the role again with the scenario's inputs
ansible.builtin.include_role:
name: mortis.kamino.gitea_runner
+74
View File
@@ -0,0 +1,74 @@
# nfs_client
Installs the NFS client (`nfs-common`) and manages NFS mount entries in `/etc/fstab`. It writes the fstab line, creates the mount point and reloads systemd; it never mounts or unmounts anything. Variables and their types are defined in [`meta/argument_specs.yml`](meta/argument_specs.yml), which is the source of truth.
## Supported platforms
Ubuntu 24.04 (noble) and 26.04 (resolute), the platforms the molecule scenario runs on. The role asserts a Debian-family host before any change.
Untested platforms: Debian 13 (trixie). The role has no OS-specific branch, but no scenario runs on it until the Debian image (#226) exists.
## Requirements and run order
- Use it by its fully qualified name, `mortis.kamino.nfs_client`, in a play that gathers facts: the Debian-family assert reads them.
- Role dependencies: none. The role calls `ansible.posix.mount`, so the Collection's `ansible.posix` dependency applies.
- `become` is used for every task that changes the host.
- The role does not set up an NFS server, autofs, CIFS/SMB or Kerberos, and it does not wait for a mount.
## Role variables
| Variable | Default | Description |
|---|---|---|
| `nfs_client_mounts` | `[]` | The mounts to manage: a list of entries, each mount point once. With no entries only the client package is installed. |
| `nfs_client_default_opts` | `_netdev,nofail` | Options for an entry that sets none. |
An entry takes these keys:
| Key | Default | Description |
|---|---|---|
| `src` | required | The export as `server:/export`, one word without spaces. |
| `path` | required | The mount point: absolute, without spaces, not `/`, no trailing slash. |
| `opts` | `nfs_client_default_opts` | The fstab options, one comma-separated word. Put the NFS version here, for example `vers=4.2`. |
| `state` | `present` | `present` writes the fstab line. `absent` removes it and nothing else. |
## Tags
- `nfs_client`: everything the role does.
- `install`: the client package.
- `configure`: the mount points and the fstab entries.
Validation runs under `always`, so a bad input fails before any change whatever tags the run selects.
## Example play
```yaml
- name: NFS client
hosts: nfs_clients
roles:
- role: mortis.kamino.nfs_client
vars:
nfs_client_mounts:
- src: nas.example:/export/data
path: /mnt/data
- src: nas.example:/export/media
path: /mnt/media
opts: _netdev,nofail,ro,vers=4.2
```
## Tests
`molecule/default` runs on Ubuntu noble and resolute: a check on a fresh host, the converge, a check on the configured host, an idempotence run, and `verify.yml`. The scenario seeds an fstab line for `/mnt/data` that names another server and a line and a directory for `/mnt/old`, so the run shows that a line is replaced once and that an `absent` entry loses only its line.
`verify.yml` first checks a refusal for each validation on the controller, once, in check mode (a missing or empty `src`, a `src` without an export, a relative path, the root, a trailing slash, options with a space or none, a duplicate path, `mounted` and `remounted`, a host without facts). It then asserts, on each container, the client package, the exact fstab fields, that a new mount point is root's and an existing one keeps its owner and mode, that the removed entry's directory and file are intact, that `/proc/mounts` shows nothing mounted, and that systemd has a mount unit for each new entry and none for the removed one.
What it does not show: that a real share mounts at boot (the server in the scenario does not exist), that `x-systemd.automount` or any option other than the defaults behaves, and Debian trixie.
## Notes
- **Why only the fstab.** `ansible.posix.mount` with `state: mounted` mounts from the play's own process. Where that process runs in a private mount namespace (a hardened sshd unit can), systemd and containers do not see the mount. The role writes the line and reloads systemd, and the share is mounted at the next boot or with `systemctl start <unit>.mount`. New options reach a share that is already mounted only after it is remounted or the host reboots.
- **No owner, group or mode on the mount point.** Once a share is mounted the path is the export root, and a `chown` or `chmod` there changes the permissions on the NFS server. A new directory gets the system defaults, and an existing one is left as it is.
- **A share that is mounted and unreachable.** On a re-run the role looks at each `present` mount point, and a mounted path whose server is gone can block that look. Fix or unmount the share, or leave that entry out of the run, before running the role again.
- **`absent` leaves the share alone.** The entry's line is removed; the share stays mounted until it is unmounted and the mount point is not deleted.
- **Default options.** `_netdev` orders the mount after the network and puts it in `remote-fs.target`; `nofail` keeps an unreachable server from holding up the boot. `x-systemd.automount` changes when a mount appears and can hide an unreachable server until first access, so it is left to the host that wants it. The `docker` role's `docker_stop_at_shutdown` relies on the same `remote-fs.target` ordering.
- `--check` is the supported preview; a play-level `check_mode: true` is not supported. `apt` and the fstab edit both report what would change.
- Idempotent: yes.
+8
View File
@@ -0,0 +1,8 @@
---
# Each entry: src (server:/export) and path (absolute mount point) are required; opts falls back
# to nfs_client_default_opts; state is present (default) or absent.
nfs_client_mounts: []
# _netdev orders the mount after the network and puts it in remote-fs.target; nofail keeps an
# unreachable server from holding up the boot. x-systemd.automount is left to the host that wants it.
nfs_client_default_opts: "_netdev,nofail"
+7
View File
@@ -0,0 +1,7 @@
---
# systemd builds a mount unit from each fstab line only when it reloads, so the reload is what
# makes a changed line known to systemd. It mounts nothing.
- name: Reload systemd for the nfs_client fstab entries
become: true
ansible.builtin.systemd_service:
daemon_reload: true
+57
View File
@@ -0,0 +1,57 @@
---
argument_specs:
main:
short_description: Install the NFS client and manage NFS entries in /etc/fstab
description:
- >-
Asserts a Debian-family host, installs C(nfs-common), creates each mount point of a C(present) entry without
owner, group or mode, writes or removes the entry's line in C(/etc/fstab), and reloads systemd after a change
so that the mount unit is generated now. Nothing is mounted.
- >-
It never mounts or unmounts anything. An C(absent) entry only loses its fstab line: the share stays mounted
until it is unmounted or the host reboots, and the mount point is not removed. Needs gathered facts.
options:
nfs_client_mounts:
type: list
elements: dict
default: []
description:
- >-
The NFS mounts to manage. Each mount point may appear once. With the default (no entries) only the client
package is installed.
options:
src:
type: str
required: true
description:
- The export as C(server:/export), one word without spaces.
path:
type: str
required: true
description:
- >-
The mount point: an absolute path without spaces, not C(/) and without a trailing slash. Created, when
the entry is C(present), with no owner, group or mode.
opts:
type: str
description:
- >-
The fstab options, one comma-separated word without spaces. Falls back to C(nfs_client_default_opts)
when left out or empty. Put the NFS version here, for example C(vers=4.2).
state:
type: str
default: present
choices: [present, absent]
description:
- >-
C(present) writes the fstab line. C(absent) removes it and nothing else. The role has no C(mounted),
C(unmounted) or C(remounted): mounting is left to systemd, so that a mount made from a play running in a
private mount namespace (a hardened sshd unit) cannot go unseen by systemd and by containers.
nfs_client_default_opts:
type: str
default: "_netdev,nofail"
description:
- >-
Options for an entry that sets none. C(_netdev) orders the mount after the network and puts it in
C(remote-fs.target); C(nofail) keeps an unreachable server from holding up the boot.
C(x-systemd.automount) is not in the default.
+18
View File
@@ -0,0 +1,18 @@
---
galaxy_info:
role_name: nfs_client
namespace: mortis
author: Dragonish
license: GPL-3.0-or-later
description: Install the NFS client and manage NFS mount entries in /etc/fstab, without mounting anything.
min_ansible_version: "2.22"
platforms:
- name: Ubuntu
versions:
- noble
- resolute
galaxy_tags:
- nfs
- fstab
- storage
dependencies: []
@@ -0,0 +1,7 @@
---
# The mounts come from molecule.yml.
- name: Converge
hosts: all
gather_facts: true
roles:
- role: mortis.kamino.nfs_client
@@ -0,0 +1,75 @@
---
# Runs on the repository's own runner (label kamino-molecule), in the molecule-ubuntu2404
# (MOLECULE_IMAGE) and molecule-ubuntu2604 (MOLECULE_IMAGE_2604) images, pinned in
# .gitea/workflows/molecule.yml. Needs the Ubuntu mirrors: the role installs nfs-common. The
# containers run systemd as PID 1 with a writable cgroup, so a daemon-reload builds mount units
# from /etc/fstab; no privileged mode. Nothing is ever mounted: the server below does not exist.
driver:
name: docker
platforms:
- name: ${KAMINO_RUN_ID:-local}-nfs-client-noble
labels:
net.rkdr.mortis.molecule-run: "${KAMINO_RUN_ID:-local}"
image: ${MOLECULE_IMAGE}
pre_build_image: true
pull: true
command: /sbin/init
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
tmpfs:
- /run
- /run/lock
security_opts:
- apparmor=unconfined
- name: ${KAMINO_RUN_ID:-local}-nfs-client-resolute
labels:
net.rkdr.mortis.molecule-run: "${KAMINO_RUN_ID:-local}"
image: ${MOLECULE_IMAGE_2604}
pre_build_image: true
pull: true
command: /sbin/init
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
tmpfs:
- /run
- /run/lock
security_opts:
- apparmor=unconfined
provisioner:
name: ansible
# One source for every play, so the converge and the plays in verify.yml start from the same
# valid input: a default-options mount, one with its own options, one to remove (prepare.yml
# seeds its line), and /mnt/data, whose seeded line has another server and must be replaced.
inventory:
group_vars:
all:
nfs_client_mounts:
- src: nas.example:/export/data
path: /mnt/data
- src: nas.example:/export/media
path: /mnt/media
opts: _netdev,nofail,ro,vers=4.2
- src: nas.example:/export/old
path: /mnt/old
state: absent
verifier:
name: ansible
scenario:
# molecule's default sequence minus both destroys (scripts/run_molecule_scenarios.sh removes the
# containers as soon as this scenario ends; after a local run, run `molecule destroy` yourself),
# plus a check before the converge (fresh host) and one after it (configured host).
test_sequence:
- dependency
- cleanup
- syntax
- create
- prepare
- check
- converge
- check
- idempotence
- side_effect
- verify
- cleanup
@@ -0,0 +1,43 @@
---
# The state a host has before the role runs: a line for /mnt/data that names another server (the
# role must replace it, once) and a line and a mount point for /mnt/old, the entry the converge
# removes. The file in /mnt/old shows that removing the line leaves the directory alone.
- name: Prepare
hosts: all
gather_facts: false
tasks:
# The image ships without apt lists, and --check does not refresh them, so without this the
# fresh-host check finds no nfs-common to install.
- name: Refresh the apt cache
ansible.builtin.apt:
update_cache: true
- name: Seed the fstab lines
ansible.builtin.lineinfile:
path: /etc/fstab
line: "{{ item }}"
create: true
mode: "0644"
loop:
- old-nas.example:/export/data /mnt/data nfs defaults 0 0
- nas.example:/export/old /mnt/old nfs _netdev,nofail 0 0
- name: Create the mount point that the converge leaves alone
ansible.builtin.file:
path: /mnt/old
state: directory
mode: "0750"
- name: Put a file in it
ansible.builtin.copy:
content: kept
dest: /mnt/old/keep
mode: "0644"
# An existing mount point of a present entry: the role must leave its owner and mode alone.
- name: Create a mount point with an owner and a mode of its own
ansible.builtin.file:
path: /mnt/media
state: directory
owner: daemon
mode: "0710"
@@ -0,0 +1,21 @@
---
# One failing run: includes the role with the inputs the caller sets on the include, and asserts
# that the expected message, not something else, stopped it. Input: nfs_client_test_case (name,
# expect).
- name: "Run the role, case {{ nfs_client_test_case.name }}"
block:
- name: "Include the role, case {{ nfs_client_test_case.name }}"
ansible.builtin.include_role:
name: mortis.kamino.nfs_client
# Only reached when the include returned. The message must not contain the expected
# text, so the rescue below cannot mistake it for the failure under test.
- name: "Fail because the include returned, case {{ nfs_client_test_case.name }}"
ansible.builtin.fail:
msg: The role accepted the input
rescue:
- name: "The expected failure stopped the run, case {{ nfs_client_test_case.name }}"
ansible.builtin.assert:
that: nfs_client_test_case.expect in (ansible_failed_result.msg | default(''))
fail_msg: "Expected '{{ nfs_client_test_case.expect }}', got: {{ ansible_failed_result.msg | default('') }}"
quiet: true
@@ -0,0 +1,247 @@
---
# The refusals below stop in validation, before any task that changes a host, so they need no
# container: they run once, on the controller, in check mode so that a regressed guard cannot
# change it.
#
# Runs first, before any play gathers facts: the role refuses a host it cannot identify as
# Debian-family, before any change.
- name: Refuse a host without facts
hosts: localhost
connection: local
check_mode: true
gather_facts: false
tasks:
- name: Run the role without gathered facts
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_test_case:
name: no-facts
expect: nfs_client supports Debian-family hosts only
# Negative tests: each validation stops the role before any change, with its own message. The
# inputs replace the converge's mounts for one include only.
- name: Refuse invalid input
hosts: localhost
connection: local
check_mode: true
gather_facts: true
tasks:
- name: Refuse a state the role does not have
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/data", path: /mnt/data, state: mounted}
nfs_client_test_case:
name: state-mounted
expect: "value of state must be one of: present, absent, got: mounted"
- name: Refuse remounted
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/data", path: /mnt/data, state: remounted}
nfs_client_test_case:
name: state-remounted
expect: "value of state must be one of: present, absent, got: remounted"
- name: Refuse an entry without a src
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {path: /mnt/data}
nfs_client_test_case:
name: src-missing
expect: "missing required arguments: src"
- name: Refuse an empty src
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "", path: /mnt/data}
nfs_client_test_case:
name: src-empty
expect: nfs_client_mounts src must be one word of the form server:/export
- name: Refuse a src without an export
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: nas.example, path: /mnt/data}
nfs_client_test_case:
name: src-no-export
expect: nfs_client_mounts src must be one word of the form server:/export
- name: Refuse a src with a space after the export
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/my data", path: /mnt/data}
nfs_client_test_case:
name: src-space
expect: nfs_client_mounts src must be one word of the form server:/export
- name: Refuse a mount point with a space
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/data", path: "/mnt/my data"}
nfs_client_test_case:
name: path-space
expect: nfs_client_mounts path must be an absolute path
- name: Refuse a relative mount point
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/data", path: mnt/data}
nfs_client_test_case:
name: path-relative
expect: nfs_client_mounts path must be an absolute path
- name: Refuse the root as a mount point
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/data", path: /}
nfs_client_test_case:
name: path-root
expect: nfs_client_mounts path must be an absolute path
- name: Refuse a trailing slash
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/data", path: /mnt/data/}
nfs_client_test_case:
name: path-trailing-slash
expect: nfs_client_mounts path must be an absolute path
- name: Refuse options with a space
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/data", path: /mnt/data, opts: "ro, nofail"}
nfs_client_test_case:
name: opts-space
expect: nfs_client_mounts options must be a non-empty comma-separated word
- name: Refuse an entry with no options when the default is empty
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_default_opts: ""
nfs_client_mounts:
- {src: "nas.example:/export/data", path: /mnt/data}
nfs_client_test_case:
name: opts-empty
expect: nfs_client_mounts options must be a non-empty comma-separated word
- name: Refuse the same mount point twice
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/data", path: /mnt/data}
- {src: "nas.example:/export/other", path: /mnt/data}
nfs_client_test_case:
name: duplicate-path
expect: nfs_client_mounts lists the same path twice
- name: Verify the host
hosts: all
gather_facts: true
tasks:
- name: Read the installed packages
ansible.builtin.package_facts:
manager: apt
- name: The client package is installed
ansible.builtin.assert:
that:
- "'nfs-common' in ansible_facts.packages"
quiet: true
- name: Read fstab
ansible.builtin.slurp:
src: /etc/fstab
register: nfs_client_test_fstab
# Each line split into its six fields, so the assertions do not depend on the spacing the
# module writes.
- name: Split the fstab lines into fields
ansible.builtin.set_fact:
nfs_client_test_rows: >-
{{ (nfs_client_test_fstab.content | b64decode).splitlines()
| reject('match', '^#')
| map('split')
| reject('equalto', [])
| list }}
# The seeded line for /mnt/data named another server and the default options: the role
# replaces it, so exactly one line is left for the path.
- name: The default-options entry replaced the seeded line
ansible.builtin.assert:
that:
- "['nas.example:/export/data', '/mnt/data', 'nfs', '_netdev,nofail', '0', '0'] in nfs_client_test_rows"
- nfs_client_test_rows | selectattr('1', 'eq', '/mnt/data') | list | length == 1
quiet: true
- name: The entry with its own options keeps them
ansible.builtin.assert:
that:
- "['nas.example:/export/media', '/mnt/media', 'nfs', '_netdev,nofail,ro,vers=4.2', '0', '0'] in nfs_client_test_rows"
quiet: true
- name: The absent entry lost its line
ansible.builtin.assert:
that:
- nfs_client_test_rows | selectattr('1', 'eq', '/mnt/old') | list | length == 0
quiet: true
- name: Stat the mount points
ansible.builtin.stat:
path: "{{ item }}"
loop: [/mnt/data, /mnt/media, /mnt/old, /mnt/old/keep]
register: nfs_client_test_stat
# prepare.yml gave /mnt/media an owner and a mode and /mnt/old a mode of its own. The role
# created /mnt/data (a new directory is root's) and changed neither of the others, and the
# removed entry's directory and the file in it are untouched.
- name: The mount points exist, keep their owner and mode, and the removed entry's directory is intact
ansible.builtin.assert:
that:
- nfs_client_test_stat.results | map(attribute='stat.exists') | min
- nfs_client_test_stat.results[0].stat.isdir
- nfs_client_test_stat.results[0].stat.pw_name == 'root'
- nfs_client_test_stat.results[1].stat.pw_name == 'daemon'
- nfs_client_test_stat.results[1].stat.mode == '0710'
- nfs_client_test_stat.results[2].stat.mode == '0750'
quiet: true
- name: Read what is mounted
ansible.builtin.slurp:
src: /proc/mounts
register: nfs_client_test_mounts
- name: Nothing was mounted
ansible.builtin.assert:
that:
- "'/mnt/data' not in (nfs_client_test_mounts.content | b64decode)"
- "'/mnt/media' not in (nfs_client_test_mounts.content | b64decode)"
quiet: true
# The daemon-reload is what turns an fstab line into a unit; the generator ran again, so the
# new lines have a unit and the removed one has none. systemctl and not the systemd module,
# which fails on a unit that is not loaded, the very state asserted for the removed entry.
- name: Ask systemd about the mount units # noqa: command-instead-of-module
ansible.builtin.command: "systemctl show --property=LoadState --value {{ item }}"
loop: [mnt-data.mount, mnt-media.mount, mnt-old.mount]
register: nfs_client_test_units
changed_when: false
check_mode: false
- name: Systemd knows the new entries and not the removed one
ansible.builtin.assert:
that:
- nfs_client_test_units.results[0].stdout == 'loaded'
- nfs_client_test_units.results[1].stdout == 'loaded'
- nfs_client_test_units.results[2].stdout == 'not-found'
quiet: true
+48
View File
@@ -0,0 +1,48 @@
---
# Validation first, under always, so a bad input fails before any change whatever tags the run
# selects.
- name: Validate the role inputs
ansible.builtin.import_tasks: validate.yml
tags: always
- name: Install the NFS client package
become: true
ansible.builtin.apt:
name: "{{ __nfs_client_package }}"
state: present
update_cache: true
cache_valid_time: 3600
tags: [nfs_client, install]
# No owner, group or mode: once a share is mounted the path is the export root, and a chown or
# chmod there changes the permissions on the NFS server.
- name: Create the mount points # noqa: risky-file-permissions
become: true
ansible.builtin.file:
path: "{{ item.path }}"
state: directory
loop: "{{ __nfs_client_entries | selectattr('state', 'eq', 'present') | list }}"
loop_control:
label: "{{ item.path }}"
tags: [nfs_client, configure]
# present writes the fstab line and mounts nothing. An absent entry only loses its line:
# ansible.posix.mount's own absent would also unmount the share and delete the mount point.
- name: Manage the fstab entries
become: true
ansible.posix.mount:
src: "{{ item.src }}"
path: "{{ item.path }}"
fstype: nfs
opts: "{{ item.opts }}"
dump: "0"
passno: "0"
state: "{{ 'present' if item.state == 'present' else 'absent_from_fstab' }}"
loop: "{{ __nfs_client_entries }}"
loop_control:
label: "{{ item.path }}"
notify: Reload systemd for the nfs_client fstab entries
tags: [nfs_client, configure]
- name: Flush handlers
ansible.builtin.meta: flush_handlers
+73
View File
@@ -0,0 +1,73 @@
---
# Input checks. Imported first in main.yml with tags: always, so a bad input fails before any
# change. The argument spec (types, choices, required keys) runs before this file; the rules
# below are the ones between values. Each assert covers the whole list, not one item per loop
# pass, so the failure message is the assert's own. fstab fields are split on whitespace, so
# "one word" is tested with split rather than a pattern.
# The package and the fstab format are Debian's, and the role reads gathered facts.
- name: Require a Debian-family host
ansible.builtin.assert:
that:
- ansible_facts['os_family'] | default('') == 'Debian'
fail_msg: >-
nfs_client supports Debian-family hosts only (found: {{ ansible_facts['os_family'] | default('no gathered facts') }}).
The role reads gathered facts, so run it in a play that gathers them.
quiet: true
# Fact-computing tasks that the checks below read. A statement block in one template would leave
# whitespace around the result and make it a string instead of a list, so the list is built by
# appending one entry per pass.
- name: Start the resolved entries
ansible.builtin.set_fact:
__nfs_client_entries: []
# Defaults of the suboptions are applied here: the spec's suboption defaults are documentation.
- name: Resolve the entries
ansible.builtin.set_fact:
__nfs_client_entries: >-
{{ __nfs_client_entries + [{
'src': item.src | trim,
'path': item.path,
'opts': (item.opts | default('', true) | trim) or (nfs_client_default_opts | trim),
'state': item.state | default('present', true)
}] }}
loop: "{{ nfs_client_mounts }}"
loop_control:
label: "{{ item.path }}"
- name: Require a server and an export in every src
ansible.builtin.assert:
that:
- __nfs_client_entries | map(attribute='src') | map('split') | map('length') | reject('eq', 1) | list | length == 0
- __nfs_client_entries | map(attribute='src') | reject('search', '^[^ ]+:/') | list | length == 0
fail_msg: >-
nfs_client_mounts src must be one word of the form server:/export, without spaces
(offending: {{ __nfs_client_entries | map(attribute='src') | reject('search', '^[^ ]+:/') | list }}).
quiet: true
- name: Require an absolute mount point that is not the root
ansible.builtin.assert:
that:
- __nfs_client_entries | map(attribute='path') | map('split') | map('length') | reject('eq', 1) | list | length == 0
- __nfs_client_entries | map(attribute='path') | reject('search', '^/[^ ]*[^/ ]$') | list | length == 0
fail_msg: >-
nfs_client_mounts path must be an absolute path without spaces, not the root and without a trailing slash
(offending: {{ __nfs_client_entries | map(attribute='path') | reject('search', '^/[^ ]*[^/ ]$') | list }}).
quiet: true
- name: Require options that fit one fstab field
ansible.builtin.assert:
that:
- __nfs_client_entries | map(attribute='opts') | map('split') | map('length') | reject('eq', 1) | list | length == 0
fail_msg: >-
nfs_client_mounts options must be a non-empty comma-separated word without spaces, from the entry's opts or, when
that is empty, from nfs_client_default_opts.
quiet: true
- name: Require one entry per mount point
ansible.builtin.assert:
that:
- __nfs_client_entries | map(attribute='path') | unique | list | length == __nfs_client_entries | length
fail_msg: nfs_client_mounts lists the same path twice; each mount point may appear once.
quiet: true
+3
View File
@@ -0,0 +1,3 @@
---
# Constant, not an input: the package that carries mount.nfs on Debian and Ubuntu.
__nfs_client_package: nfs-common
+76
View File
@@ -0,0 +1,76 @@
# openbao
Installs a single OpenBao server on integrated raft storage as a sandboxed systemd service, listening on TLS the consumer supplies. The role installs the pinned release tarball after checking it against a sha256 pinned in its defaults, creates its own system user, data directory, configuration and unit, starts the service and reads its seal status over TLS on loopback. It leaves a new server uninitialised and sealed. Variables and their types are defined in [`meta/argument_specs.yml`](meta/argument_specs.yml), which is the source of truth.
## Supported platforms
Ubuntu 24.04 (noble) and 26.04 (resolute), the platforms the molecule scenario runs on, on amd64 or arm64; the role needs `systemd`. The target needs outbound access to github.com for the release download.
Untested platforms: Debian 13 (trixie). The role uses nothing Ubuntu-specific, but no Debian test image exists yet, so it is not declared in `meta/main.yml`.
## Requirements and run order
- Use it by its fully qualified name, `mortis.kamino.openbao`.
- Role dependencies: none.
- Before the first run, deploy the listener's certificate (with its chain), its private key and the CA certificate that signed it to the host, and set `openbao_tls_cert_file`, `openbao_tls_key_file` and `openbao_tls_ca_file` to their paths. The role never creates or copies key material. Validation fails before any change when one is unset, does not exist, or, for the certificate and key, is not readable by `openbao_user` (default `openbao`) judging by the owner, group and mode of the file (behind a symlink, such as certbot's `live/` paths); the directories above the files are not checked. Create the `openbao_group` group (default `openbao`, a system group) before the first run and give it the key, for example `root:openbao` mode `0640`; the role finds the group and keeps it.
- The certificate must cover `127.0.0.1` as an IP subject alternative name: the role reads its own API at `https://127.0.0.1:<openbao_port>` and validates the certificate against `openbao_tls_ca_file`, so a certificate for the host name alone fails that check, with a message naming the SAN and `openbao_tls_ca_file`.
- A firewall rule for `openbao_port` (clients) and `openbao_cluster_port` (raft peers) is the consumer's: the role opens no port.
## Role variables
| Variable | Default | Description |
|---|---|---|
| `openbao_tls_cert_file` | `""` (asserted unless `openbao_tls_disable`) | Path of the listener certificate on the host; must cover `127.0.0.1`. |
| `openbao_tls_key_file` | `""` (asserted unless `openbao_tls_disable`) | Path of the listener key on the host, readable by `openbao_user`. |
| `openbao_tls_ca_file` | `""` (asserted unless `openbao_tls_disable`) | Path on the host of the CA certificate the role validates the API against. |
| `openbao_tls_min_version` | `tls12` | `tls12` or `tls13`. |
| `openbao_tls_disable` | `false` | Serve plain HTTP; the TLS inputs are then not needed and the role warns on every run. |
| `openbao_listen_address` | `0.0.0.0` | IPv4 or IPv6 listener address. `::` listens on every IPv4 and IPv6 address, 127.0.0.1 included. Any address other than `0.0.0.0`, `::` or `127.0.0.1` gets a second listener on `127.0.0.1` for the role's own calls. |
| `openbao_port` | `8200` | API port, 1024 or higher: the unit grants no capability to bind a lower one. |
| `openbao_cluster_port` | `8201` | Cluster port, 1024 or higher. |
| `openbao_api_addr` | `https://<inventory_hostname>:<openbao_port>` | Address advertised to clients (`http://` with `openbao_tls_disable`). |
| `openbao_cluster_addr` | `https://<inventory_hostname>:<openbao_cluster_port>` | Address advertised to raft peers, always `https://`. |
| `openbao_node_id` | `{{ inventory_hostname }}` | Raft node id. Do not change it on an initialised node. |
| `openbao_ui` | `false` | Serve the web UI. |
| `openbao_version` | pinned in `defaults/main.yml` | Release version, no leading `v`. |
| `openbao_sha256` | pinned, `amd64` and `arm64` | SHA-256 of the release tarball per architecture, from the release's `checksums.txt`. Update with the version. |
| `openbao_release_url` | github.com release directory of the version | URL of the directory holding `openbao_<version>_linux_<arch>.tar.gz`, no trailing slash. |
| `openbao_user`, `openbao_group` | `openbao` | Service account, created with no login shell. Create the group before the first run and give it the TLS key. |
| `openbao_bin_path` | `/usr/local/bin/bao` | Binary location; the file name must be `bao`. |
| `openbao_config_dir` | `/etc/openbao` | Configuration directory; the server reads `openbao.hcl` in it. |
| `openbao_data_dir` | `/var/lib/openbao` | Raft data directory, mode `0700`. |
## Tags
`openbao` (everything), `prereqs`, `install`, `configure`, `health`. The input checks (including the TLS files' existence and readability) and the `prereqs` tasks are also tagged `always`, so they run under any tag selection: `--tags health` still creates a missing user, group or directory, then checks the binary, the service state and the seal status without writing the configuration or the unit.
## Example play
```yaml
- name: Run OpenBao
hosts: secret_store
roles:
- role: mortis.kamino.openbao
vars:
openbao_tls_cert_file: /etc/ssl/openbao/server.crt
openbao_tls_key_file: /etc/ssl/openbao/server.key
openbao_tls_ca_file: /etc/ssl/openbao/ca.crt
```
## Tests
The `default` molecule scenario runs in CI only, on two platforms: `${MOLECULE_IMAGE}` (Ubuntu 24.04) and `${MOLECULE_IMAGE_2604}` (Ubuntu 26.04). Prepare builds a throwaway CA and a server certificate covering `127.0.0.1` with the `openssl` CLI; the role reaches the certificate and key through symlinks. The converge downloads the pinned release from GitHub and starts a real OpenBao server, left uninitialised and sealed. Verify asserts that the service is active with the unit's settings, the service user and the data directory, the installed version, the seal status over TLS validated against the test CA, a reload that keeps the server running, every input check (each failing with its own message and changing nothing), a CA that did not sign the certificate, a different `openbao_version` (a warning, no change), and the switch to plain HTTP and back with its warning. Prepare also runs the role on the fresh host with a key the service user cannot read and asserts that it changed nothing. It runs `check` before the converge (a fresh host) and after it (a configured host), then idempotence.
The unprivileged test container cannot set up the unit's namespace sandboxing or switch to the service user, so prepare adds a drop-in that resets those directives and runs the unit as root there; the unit's seccomp filters, signals and `MemorySwapMax` stay in force. The sandbox as a whole is therefore not covered by the scenario.
## Notes
- Idempotent: yes.
- The role does not initialise or unseal the server. A new server stays uninitialised and sealed, and every restart seals it again; the role warns on each run while the server is uninitialised or sealed.
- A restart runs only when the configuration, the unit or the binary changed. A change to the certificate files needs no restart: `systemctl reload openbao` sends SIGHUP, which makes OpenBao read them again without sealing.
- The binary is installed only when it is missing; `main` does not change the version of an installed binary, and warns when it differs from `openbao_version`. With `--skip-tags install` on a host without it, the role fails with that message before writing the configuration.
- mlock was removed in OpenBao 2.0, so the unit sets no `CAP_IPC_LOCK` and the configuration no `disable_mlock`; `MemorySwapMax=0` keeps the server's memory out of swap and `LimitCORE=0` out of core dumps. The unit stops the server with SIGINT, runs with an empty capability set and `ProtectSystem=strict`, and may write only the data directory.
- A reverse proxy in front of OpenBao must re-encrypt to the listener rather than end TLS at the proxy: the proxy would see every token and secret in plain text, and TLS certificate authentication needs the client's TLS connection to reach OpenBao itself.
- TLS can be turned off only through `openbao_tls_disable`, and the role warns on every such run.
- Check mode: `--check` is the supported preview; a play-level `check_mode: true` is not supported. Under `--check` on a fresh host the download, the start and the seal status read are skipped.
- Not covered yet: multi-node raft (#528), auto-unseal (#529), configuration through OpenBao's API (#530), installing a CA into trust stores (#531) and certificate issuance (#532).
+34
View File
@@ -0,0 +1,34 @@
---
# The sha256 values are those of the release's checksums.txt, whose GPG signature checks out
# against OpenBao's release key. Pin the version and both hashes together in inventory to move
# ahead of the role's pin.
openbao_version: "2.7.3"
openbao_sha256:
amd64: "131df9a21cf3dd2dff47107110b369c9974cbdaa482bcbc723b81b3403c68ecd"
arm64: "b505b07af4206fdf0e81b747fcb7e9e63f2c2b05e26ead973cce62d0ed07d0e0"
# The release directory; the role appends openbao_<version>_linux_<arch>.tar.gz.
openbao_release_url: "https://github.com/openbao/openbao/releases/download/v{{ openbao_version }}"
openbao_user: "openbao"
openbao_group: "openbao"
openbao_bin_path: "/usr/local/bin/bao"
openbao_config_dir: "/etc/openbao"
openbao_data_dir: "/var/lib/openbao"
openbao_listen_address: "0.0.0.0"
openbao_port: 8200
openbao_cluster_port: 8201
openbao_api_addr: "{{ 'http' if openbao_tls_disable | bool else 'https' }}://{{ inventory_hostname }}:{{ openbao_port }}"
openbao_cluster_addr: "https://{{ inventory_hostname }}:{{ openbao_cluster_port }}"
openbao_node_id: "{{ inventory_hostname }}"
# Paths on the host. The role never creates or copies key material: it asserts that these files
# exist and that the service user can read them. Required unless openbao_tls_disable is true.
openbao_tls_cert_file: ""
openbao_tls_key_file: ""
openbao_tls_ca_file: ""
openbao_tls_min_version: "tls12"
# Plain HTTP on the listener; the role accepts it with a warning.
openbao_tls_disable: false
openbao_ui: false
+143
View File
@@ -0,0 +1,143 @@
---
argument_specs:
main:
short_description: Install and run a single OpenBao server on integrated raft storage, over TLS
description:
- >-
Validates the inputs, then creates the C(openbao) system user and group, the configuration directory and the
raft data directory, downloads the pinned release tarball and checks it against C(openbao_sha256) when the
binary is missing, writes the server configuration and a sandboxed systemd unit, and starts the service.
- >-
TLS on the listener is required: C(openbao_tls_cert_file), C(openbao_tls_key_file) and
C(openbao_tls_ca_file) must name files that already exist on the host, unless C(openbao_tls_disable) is true,
which the role accepts with a warning. The role never creates or copies key material.
- >-
Finally it reads the seal status from C(https://127.0.0.1:<openbao_port>), validating the certificate
against C(openbao_tls_ca_file), and warns when the server is uninitialised or sealed. This entry point
neither initialises nor unseals the server.
options:
openbao_version:
type: str
default: "2.7.3"
description:
- >-
OpenBao release version, with no leading C(v). Pin it in inventory together with C(openbao_sha256) to
move ahead of the role's pin. The binary is installed only when it is missing; an installed binary is
not changed.
openbao_sha256:
type: dict
default:
amd64: "131df9a21cf3dd2dff47107110b369c9974cbdaa482bcbc723b81b3403c68ecd"
arm64: "b505b07af4206fdf0e81b747fcb7e9e63f2c2b05e26ead973cce62d0ed07d0e0"
description:
- >-
SHA-256 of the release tarball per architecture (C(amd64), C(arm64)), from the release's
C(checksums.txt). Only the entry of the host's architecture is read, and it must be 64 hex digits.
openbao_release_url:
type: str
description:
- >-
URL of the directory that holds the release tarball, with no trailing slash; the role appends
C(openbao_<version>_linux_<arch>.tar.gz). The role default is a Jinja expression, the github.com release
directory of C(openbao_version).
openbao_user:
type: str
default: openbao
description:
- System user that runs the service and owns the data directory. Created with no login shell.
openbao_group:
type: str
default: openbao
description:
- Group of the service user; it owns the configuration. Give the TLS key file to this group.
openbao_bin_path:
type: path
default: /usr/local/bin/bao
description:
- Absolute path of the C(bao) binary. Its file name must be C(bao).
openbao_config_dir:
type: path
default: /etc/openbao
description:
- Absolute path of the configuration directory; the server configuration is C(openbao.hcl) in it.
openbao_data_dir:
type: path
default: /var/lib/openbao
description:
- Absolute path of the raft data directory, mode C(0700), owned by the service user.
openbao_listen_address:
type: str
default: 0.0.0.0
description:
- >-
IPv4 or IPv6 address of the TCP listener; C(0.0.0.0) listens on every address. C(::) listens on every IPv4
and IPv6 address, C(127.0.0.1) included. For any other address than C(0.0.0.0), C(::) or C(127.0.0.1), a
second listener on C(127.0.0.1) is added for the role's own API calls.
openbao_port:
type: int
default: 8200
description:
- Port of the API listener, 1024 or higher (the unit grants no capability to bind a lower port).
openbao_cluster_port:
type: int
default: 8201
description:
- Port of the cluster listener, used by raft peers, 1024 or higher.
openbao_api_addr:
type: str
description:
- >-
Address the server advertises to clients. The role default is a Jinja expression,
C(https://<inventory_hostname>:<openbao_port>), or C(http://) when C(openbao_tls_disable) is true.
openbao_cluster_addr:
type: str
description:
- >-
Address the server advertises to raft peers, always C(https://). The role default is a Jinja expression,
C(https://<inventory_hostname>:<openbao_cluster_port>).
openbao_node_id:
type: str
description:
- >-
Raft node id: letters, digits, dots, hyphens or underscores. The role default is a Jinja expression,
the C(inventory_hostname). Do not change it on an initialised node.
openbao_tls_cert_file:
type: path
default: ""
description:
- >-
Absolute path of the listener's certificate (with its chain) on the host. Required unless
C(openbao_tls_disable) is true. It must cover C(127.0.0.1) as an IP subject alternative name, because the
role calls the API on loopback.
openbao_tls_key_file:
type: path
default: ""
description:
- >-
Absolute path of the listener's private key on the host, readable by C(openbao_user). Required unless
C(openbao_tls_disable) is true.
openbao_tls_ca_file:
type: path
default: ""
description:
- >-
Absolute path on the host of the CA certificate that signed the listener's certificate; the role
validates the API's certificate against it. Required unless C(openbao_tls_disable) is true.
openbao_tls_min_version:
type: str
default: tls12
choices: [tls12, tls13]
description:
- Lowest TLS version the listener accepts.
openbao_tls_disable:
type: bool
default: false
description:
- >-
Serve plain HTTP on the listener. The role then needs no TLS input and warns on every run. Tokens and
secrets cross the network unencrypted.
openbao_ui:
type: bool
default: false
description:
- Serve the web UI on the listener.
+19
View File
@@ -0,0 +1,19 @@
---
galaxy_info:
role_name: openbao
namespace: mortis
author: Defame1297
license: GPL-3.0-or-later
description: Install and run a single OpenBao server on raft storage, from a checksum-verified release, with a sandboxed unit and the consumer's TLS.
min_ansible_version: "2.22"
platforms:
- name: Ubuntu
versions:
- noble
- resolute
galaxy_tags:
- openbao
- secrets
- vault
- systemd
dependencies: []
@@ -0,0 +1,8 @@
---
# Role variables come from the inventory group_vars in molecule.yml, so the idempotence step
# reruns converge with identical configuration. Facts are off: the role gathers the one it reads.
- name: Converge
hosts: all
gather_facts: false
roles:
- role: mortis.kamino.openbao
@@ -0,0 +1,72 @@
---
# Runs on the repository's own runner (label kamino-molecule), in the molecule-ubuntu2404
# (MOLECULE_IMAGE) and molecule-ubuntu2604 (MOLECULE_IMAGE_2604) images, pinned in
# .gitea/workflows/molecule.yml. Needs outbound network: prepare installs openssl with apt and the
# converge downloads the pinned OpenBao release from GitHub. prepare.yml builds a throwaway CA and
# server certificate. The container runs systemd as PID 1 with a writable cgroup; no privileged mode.
driver:
name: docker
platforms:
- name: ${KAMINO_RUN_ID:-local}-openbao-instance
labels:
net.rkdr.mortis.molecule-run: "${KAMINO_RUN_ID:-local}"
image: ${MOLECULE_IMAGE}
pre_build_image: true
pull: true
command: /sbin/init
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
tmpfs:
- /run
- /run/lock
security_opts:
- apparmor=unconfined
- name: ${KAMINO_RUN_ID:-local}-openbao-2604-instance
labels:
net.rkdr.mortis.molecule-run: "${KAMINO_RUN_ID:-local}"
image: ${MOLECULE_IMAGE_2604}
pre_build_image: true
pull: true
command: /sbin/init
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
tmpfs:
- /run
- /run/lock
security_opts:
- apparmor=unconfined
provisioner:
name: ansible
# One source for every play, so a verify play that runs the role again renders the same
# configuration and the idempotence step reruns converge with identical inputs.
inventory:
group_vars:
all:
openbao_test_tls_dir: /etc/molecule-tls
# Symlinks into the files, as in certbot's live/ layout.
openbao_tls_cert_file: "{{ openbao_test_tls_dir }}/live/server.crt"
openbao_tls_key_file: "{{ openbao_test_tls_dir }}/live/server.key"
openbao_tls_ca_file: "{{ openbao_test_tls_dir }}/ca.crt"
# The role's pinned version and checksums, for the failure cases that change other inputs.
openbao_test_defaults: "{{ lookup('ansible.builtin.file', playbook_dir ~ '/../../defaults/main.yml') | from_yaml }}"
verifier:
name: ansible
scenario:
# molecule's default sequence minus both destroys: scripts/run_molecule_scenarios.sh removes the
# container as soon as this scenario ends. After a local run, run `molecule destroy` yourself.
# A check runs before the converge (fresh host) and after it (configured host).
test_sequence:
- dependency
- cleanup
- syntax
- create
- prepare
- check
- converge
- check
- idempotence
- side_effect
- verify
- cleanup
+173
View File
@@ -0,0 +1,173 @@
---
# systemd's sandboxing directives that need a mount or UTS namespace need CAP_SYS_ADMIN, which the
# unprivileged test container lacks, so without this drop-in the unit fails with status
# 226/NAMESPACE. The drop-in resets only those directives; the seccomp filters, Type, signals,
# MemorySwapMax and ExecStart under test are the role's own. The namespace sandbox itself is
# therefore not covered by this scenario.
#
# User and Group are reset too, as in the traefik scenario: the switch to the service user fails in
# the unprivileged container, so the unit runs as root here. Root then needs the capabilities the
# role's empty bounding set removes, to enter the 0700 data directory it does not own. The service
# user, the directory ownership and the key's readability by that user are still asserted.
- name: Prepare
hosts: all
gather_facts: false
tasks:
- name: Install openssl
ansible.builtin.apt:
name: openssl
update_cache: true
- name: Create the unit drop-in directory
ansible.builtin.file:
path: /etc/systemd/system/openbao.service.d
state: directory
mode: "0755"
- name: Disable the namespace-based sandboxing for the unprivileged container
ansible.builtin.copy:
dest: /etc/systemd/system/openbao.service.d/molecule.conf
mode: "0644"
content: |
[Service]
ProtectSystem=no
ProtectHome=no
PrivateTmp=no
PrivateDevices=no
ProtectKernelModules=no
ProtectKernelTunables=no
ProtectKernelLogs=no
ProtectControlGroups=no
ProtectClock=no
ProtectHostname=no
ReadWritePaths=
User=
Group=
CapabilityBoundingSet=CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH CAP_FOWNER CAP_CHOWN
# A consumer deploys the key for the service group before the role runs, so the group
# exists first here too; the role finds it and leaves it as it is.
- name: Create the openbao group
ansible.builtin.group:
name: openbao
system: true
- name: Create the TLS directory
ansible.builtin.file:
path: "{{ openbao_test_tls_dir }}"
state: directory
mode: "0755"
# A throwaway CA and a server certificate covering 127.0.0.1, with the openssl CLI so the
# scenario needs no crypto collection. The extensions satisfy Python's strict verification.
- name: Create the test CA
ansible.builtin.command:
argv: [openssl, req, -x509, -newkey, ec, -pkeyopt, "ec_paramgen_curve:prime256v1", -nodes,
-keyout, ca.key, -out, ca.crt, -days, "3", -subj, "/CN=Molecule OpenBao test CA",
-addext, "basicConstraints=critical,CA:TRUE", -addext, "keyUsage=critical,keyCertSign,cRLSign"]
chdir: "{{ openbao_test_tls_dir }}"
creates: ca.crt
- name: Write the server certificate extensions
ansible.builtin.copy:
dest: "{{ openbao_test_tls_dir }}/server.ext"
mode: "0644"
content: |
basicConstraints=critical,CA:FALSE
keyUsage=critical,digitalSignature
extendedKeyUsage=serverAuth
subjectAltName=IP:127.0.0.1,DNS:{{ inventory_hostname }}
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid
- name: Create the server key and request
ansible.builtin.command:
argv: [openssl, req, -new, -newkey, ec, -pkeyopt, "ec_paramgen_curve:prime256v1", -nodes,
-keyout, server.key, -out, server.csr, -subj, "/CN={{ inventory_hostname }}"]
chdir: "{{ openbao_test_tls_dir }}"
creates: server.csr
- name: Sign the server certificate
ansible.builtin.command:
argv: [openssl, x509, -req, -in, server.csr, -CA, ca.crt, -CAkey, ca.key, -CAcreateserial,
-out, server.crt, -days, "3", -extfile, server.ext]
chdir: "{{ openbao_test_tls_dir }}"
creates: server.crt
- name: Give the server key to the openbao group
ansible.builtin.file:
path: "{{ openbao_test_tls_dir }}/server.key"
owner: root
group: openbao
mode: "0640"
# The scenario's certificate and key paths are symlinks: the role must judge the files behind
# them, not the links' own 0777 mode.
- name: Create the live directory
ansible.builtin.file:
path: "{{ openbao_test_tls_dir }}/live"
state: directory
mode: "0755"
- name: Link the certificate and key into the live directory
ansible.builtin.file:
src: "../{{ openbao_test_link }}"
dest: "{{ openbao_test_tls_dir }}/live/{{ openbao_test_link }}"
state: link
loop: [server.crt, server.key]
loop_control:
loop_var: openbao_test_link
# For the failure case of a key the service user cannot read.
- name: Copy the server key to a root-only file
ansible.builtin.copy:
src: "{{ openbao_test_tls_dir }}/server.key"
dest: "{{ openbao_test_tls_dir }}/root-only.key"
remote_src: true
owner: root
group: root
mode: "0600"
# For the failure case of a CA that did not sign the listener certificate.
- name: Create a second, unrelated CA
ansible.builtin.command:
argv: [openssl, req, -x509, -newkey, ec, -pkeyopt, "ec_paramgen_curve:prime256v1", -nodes,
-keyout, other-ca.key, -out, other-ca.crt, -days, "3", -subj, "/CN=Molecule unrelated CA",
-addext, "basicConstraints=critical,CA:TRUE", -addext, "keyUsage=critical,keyCertSign,cRLSign"]
chdir: "{{ openbao_test_tls_dir }}"
creates: other-ca.crt
# On the fresh host, before the converge: a key the service user cannot read stops the role
# before it changes anything.
- name: Refuse an unreadable key on a fresh host
hosts: all
gather_facts: false
tasks:
- name: Run the role with a root-only key
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
openbao_test_case:
name: fresh-host-key-unreadable
vars: {openbao_tls_key_file: /etc/molecule-tls/root-only.key}
expect: The user openbao could not read /etc/molecule-tls/root-only.key
- name: Read the service account
ansible.builtin.getent:
database: passwd
key: openbao
fail_key: false
- name: Stat what the role would create
ansible.builtin.stat:
path: "{{ openbao_test_path }}"
loop: [/etc/openbao, /var/lib/openbao, /usr/local/bin/bao, /etc/systemd/system/openbao.service]
loop_control:
loop_var: openbao_test_path
register: openbao_test_fresh
- name: The refused run changed nothing
ansible.builtin.assert:
that:
- ansible_facts.getent_passwd.openbao is none
- openbao_test_fresh.results | selectattr('stat.exists') | list | length == 0
quiet: true
@@ -0,0 +1,40 @@
---
# One failing run: runs the main entry point with the inputs of the case and asserts that the
# expected message, not something else, stopped it. Input: openbao_test_case (name, vars,
# expect). Task vars cannot come from a template as a whole, so each input a case may change is
# passed with its scenario value as the default.
- name: "Run the role, case {{ openbao_test_case.name }}"
block:
- name: "Include the role, case {{ openbao_test_case.name }}"
ansible.builtin.include_role:
name: mortis.kamino.openbao
vars:
openbao_version: "{{ openbao_test_case.vars.openbao_version | default(openbao_test_defaults.openbao_version) }}"
openbao_sha256: "{{ openbao_test_case.vars.openbao_sha256 | default(openbao_test_defaults.openbao_sha256) }}"
openbao_bin_path: "{{ openbao_test_case.vars.openbao_bin_path | default('/usr/local/bin/bao') }}"
openbao_listen_address: "{{ openbao_test_case.vars.openbao_listen_address | default('0.0.0.0') }}"
openbao_port: "{{ openbao_test_case.vars.openbao_port | default(8200) }}"
openbao_cluster_port: "{{ openbao_test_case.vars.openbao_cluster_port | default(8201) }}"
openbao_node_id: "{{ openbao_test_case.vars.openbao_node_id | default(inventory_hostname) }}"
openbao_cluster_addr: "{{ openbao_test_case.vars.openbao_cluster_addr | default('https://' ~ inventory_hostname ~ ':8201') }}"
openbao_tls_cert_file: "{{ openbao_test_case.vars.openbao_tls_cert_file | default(openbao_test_tls_dir ~ '/live/server.crt') }}"
openbao_tls_key_file: "{{ openbao_test_case.vars.openbao_tls_key_file | default(openbao_test_tls_dir ~ '/live/server.key') }}"
openbao_tls_ca_file: "{{ openbao_test_case.vars.openbao_tls_ca_file | default(openbao_test_tls_dir ~ '/ca.crt') }}"
openbao_tls_min_version: "{{ openbao_test_case.vars.openbao_tls_min_version | default('tls12') }}"
# Only reached when the include returned. The message must not contain the expected
# text, so the rescue below cannot mistake it for the failure under test.
- name: "Fail because the include returned, case {{ openbao_test_case.name }}"
ansible.builtin.fail:
msg: The role accepted the input
rescue:
# A failed loop task reports its message per item.
- name: "The expected failure stopped the run, case {{ openbao_test_case.name }}"
vars:
openbao_test_messages: >-
{{ (ansible_failed_result.msg | default('')) ~ ' '
~ (ansible_failed_result.results | default([]) | map(attribute='msg', default='') | join(' ')) }}
ansible.builtin.assert:
that: openbao_test_case.expect in openbao_test_messages
fail_msg: "Expected '{{ openbao_test_case.expect }}', got: {{ openbao_test_messages }}"
quiet: true
+229
View File
@@ -0,0 +1,229 @@
---
- name: Verify the converged server
hosts: all
gather_facts: false
tasks:
- name: Ask systemd about the service
ansible.builtin.systemd_service:
name: openbao
register: openbao_test_service
- name: The service runs with the role's unit settings
ansible.builtin.assert:
that:
- openbao_test_service.status.ActiveState == 'active'
- openbao_test_service.status.UnitFileState == 'enabled'
- openbao_test_service.status.Type == 'notify'
- openbao_test_service.status.KillSignal == '2'
- openbao_test_service.status.MemorySwapMax == '0'
- openbao_test_service.status.NoNewPrivileges == 'yes'
- "'HUP' in openbao_test_service.status.ExecReload"
quiet: true
- name: Read the service account
ansible.builtin.getent:
database: passwd
key: openbao
- name: Stat the data directory and the configuration
ansible.builtin.stat:
path: "{{ openbao_test_path }}"
loop: [/var/lib/openbao, /etc/openbao/openbao.hcl]
loop_control:
loop_var: openbao_test_path
register: openbao_test_paths
- name: The service user has no shell and owns the private data directory
ansible.builtin.assert:
that:
- ansible_facts.getent_passwd.openbao[5] == '/usr/sbin/nologin'
- openbao_test_paths.results[0].stat.pw_name == 'openbao'
- openbao_test_paths.results[0].stat.mode == '0700'
- openbao_test_paths.results[1].stat.gr_name == 'openbao'
- openbao_test_paths.results[1].stat.mode == '0640'
quiet: true
- name: Ask the installed binary for its version
ansible.builtin.command:
argv: [/usr/local/bin/bao, version]
register: openbao_test_version
changed_when: false
# Over TLS on loopback, validated against the test CA: the listener serves the supplied
# certificate, and the server is left uninitialised and sealed on raft storage.
- name: Read the seal status over TLS
ansible.builtin.uri:
url: https://127.0.0.1:8200/v1/sys/seal-status
ca_path: "{{ openbao_tls_ca_file }}"
validate_certs: true
register: openbao_test_seal
- name: The pinned server answers uninitialised and sealed on raft
ansible.builtin.assert:
that:
- ('OpenBao v' ~ openbao_test_defaults.openbao_version ~ ' ') in openbao_test_version.stdout
- openbao_test_seal.json.version == openbao_test_defaults.openbao_version
- openbao_test_seal.json.storage_type == 'raft'
- not openbao_test_seal.json.initialized
- openbao_test_seal.json.sealed
quiet: true
- name: Reload the service
ansible.builtin.systemd_service:
name: openbao
state: reloaded
- name: Ask systemd about the service after the reload
ansible.builtin.systemd_service:
name: openbao
register: openbao_test_reloaded
- name: The reload signalled the running server instead of restarting it
ansible.builtin.assert:
that:
- openbao_test_reloaded.status.ActiveState == 'active'
- openbao_test_reloaded.status.MainPID == openbao_test_service.status.MainPID
quiet: true
- name: Verify the failure paths
hosts: all
gather_facts: false
tasks:
- name: Checksum the configuration before the failure cases
ansible.builtin.stat:
path: /etc/openbao/openbao.hcl
checksum_algorithm: sha256
register: openbao_test_config_before
- name: Run each case
ansible.builtin.include_tasks: tasks/failed_run.yml
loop:
- name: tls-cert-missing
vars: {openbao_tls_cert_file: ""}
expect: must be absolute paths of files on the host
- name: tls-ca-missing
vars: {openbao_tls_ca_file: ""}
expect: must be absolute paths of files on the host
- name: tls-key-absent
vars: {openbao_tls_key_file: /etc/molecule-tls/absent.key}
expect: /etc/molecule-tls/absent.key do not exist
- name: tls-key-unreadable
vars: {openbao_tls_key_file: /etc/molecule-tls/root-only.key}
expect: The user openbao could not read /etc/molecule-tls/root-only.key
# Changes nothing: the CA file is read only by the role's own seal status call.
- name: ca-not-the-signer
vars: {openbao_tls_ca_file: /etc/molecule-tls/other-ca.crt}
expect: must cover 127.0.0.1 as an IP subject alternative name
- name: tls-min-version-unknown
vars: {openbao_tls_min_version: tls10}
expect: openbao_tls_min_version must be one of
- name: version-with-v
vars: {openbao_version: v2.7.3}
expect: openbao_version must be a release version
- name: sha256-not-hex
vars: {openbao_sha256: {amd64: not-a-hash, arm64: not-a-hash}}
expect: openbao_sha256 must map
- name: bin-path-not-bao
vars: {openbao_bin_path: /usr/local/bin/openbao}
expect: the file name of openbao_bin_path must be bao
- name: listen-address-hostname
vars: {openbao_listen_address: localhost}
expect: openbao_listen_address must be an IPv4 or IPv6 address
- name: listen-address-dots
vars: {openbao_listen_address: "..."}
expect: openbao_listen_address must be an IPv4 or IPv6 address
- name: listen-address-triple-colon
vars: {openbao_listen_address: ":::"}
expect: openbao_listen_address must be an IPv4 or IPv6 address
- name: port-privileged
vars: {openbao_port: 443}
expect: must be two different ports from 1024 to 65535
- name: ports-equal
vars: {openbao_cluster_port: 8200}
expect: must be two different ports
- name: node-id-with-space
vars: {openbao_node_id: "node one"}
expect: openbao_node_id must be letters
- name: cluster-addr-plain-http
vars: {openbao_cluster_addr: "http://127.0.0.1:8201"}
expect: openbao_cluster_addr an https:// URL
loop_control:
loop_var: openbao_test_case
label: "{{ openbao_test_case.name }}"
# Not a failure: the installed binary stays, and the role says so.
- name: Run the role with another openbao_version
ansible.builtin.include_role:
name: mortis.kamino.openbao
vars:
openbao_version: 2.7.2
- name: The role warned that it keeps the installed version
ansible.builtin.assert:
that:
- "'not openbao_version 2.7.2' in hostvars[inventory_hostname].__openbao_version_warning.msg"
- "('OpenBao v' ~ openbao_test_defaults.openbao_version) in hostvars[inventory_hostname].__openbao_version_warning.msg"
quiet: true
- name: Checksum the configuration after the failure cases
ansible.builtin.stat:
path: /etc/openbao/openbao.hcl
checksum_algorithm: sha256
register: openbao_test_config_after
- name: Ask systemd about the service after the failure cases
ansible.builtin.systemd_service:
name: openbao
register: openbao_test_after_failures
- name: The failures changed nothing and the server still runs
ansible.builtin.assert:
that:
- openbao_test_config_after.stat.checksum == openbao_test_config_before.stat.checksum
- openbao_test_after_failures.status.ActiveState == 'active'
- openbao_test_after_failures.status.MainPID == openbao_test_reloaded.status.MainPID
quiet: true
# Runs last: it rewrites the configuration and restarts the server, then the TLS run restores it.
- name: Verify the TLS switch
hosts: all
gather_facts: false
tasks:
- name: Run the role with TLS disabled and no TLS input
ansible.builtin.include_role:
name: mortis.kamino.openbao
vars:
openbao_tls_disable: true
openbao_tls_cert_file: ""
openbao_tls_key_file: ""
openbao_tls_ca_file: ""
# The role registers the warning it gave; the next run replaces it.
- name: Keep the warning of the plain HTTP run
ansible.builtin.set_fact:
openbao_test_plain_warning: "{{ hostvars[inventory_hostname].__openbao_tls_warning }}"
- name: Read the seal status over plain HTTP
ansible.builtin.uri:
url: http://127.0.0.1:8200/v1/sys/seal-status
register: openbao_test_plain
- name: Run the role with the scenario's TLS inputs again
ansible.builtin.include_role:
name: mortis.kamino.openbao
- name: Read the seal status over TLS again
ansible.builtin.uri:
url: https://127.0.0.1:8200/v1/sys/seal-status
ca_path: "{{ openbao_tls_ca_file }}"
validate_certs: true
register: openbao_test_tls_again
- name: The switch warned, served plain HTTP, and TLS came back without the warning
ansible.builtin.assert:
that:
- "'openbao_tls_disable is true' in openbao_test_plain_warning.msg"
- openbao_test_plain.json.sealed
- openbao_test_tls_again.json.sealed
- hostvars[inventory_hostname].__openbao_tls_warning is skipped
quiet: true
+97
View File
@@ -0,0 +1,97 @@
---
# Under --skip-tags install the binary may still be missing; say so instead of a systemd error.
- name: Check that the OpenBao binary is installed
ansible.builtin.stat:
path: "{{ openbao_bin_path }}"
register: __openbao_binary_now
tags: [openbao, configure, health]
- name: Fail if the OpenBao binary is missing
ansible.builtin.fail:
msg: >-
The OpenBao binary {{ openbao_bin_path }} is missing, so the service cannot start. Run the role without
--skip-tags install (or with --tags install) to download it.
when:
- not __openbao_binary_now.stat.exists
# Nothing is downloaded under --check.
- not ansible_check_mode
tags: [openbao, configure, health]
- name: Ask the installed binary for its version
ansible.builtin.command:
argv: ["{{ openbao_bin_path }}", version]
register: __openbao_installed_version
changed_when: false
# Read-only: runs in --check too, where a new binary is not there yet.
check_mode: false
when: __openbao_binary_now.stat.exists
tags: [openbao, configure, health]
# Moving an installed server to another version needs a stop, a data copy and a rollback path,
# which this entry point does not do.
- name: Warn that the installed version differs from openbao_version
ansible.builtin.debug:
msg: >-
WARNING: {{ openbao_bin_path }} reports "{{ __openbao_installed_version.stdout_lines | first | default('') }}",
not openbao_version {{ openbao_version }}. The main entry point does not change the version of an installed
binary.
register: __openbao_version_warning
when:
- __openbao_installed_version.stdout is defined
- ('OpenBao v' ~ openbao_version ~ ' ') not in __openbao_installed_version.stdout
tags: [openbao, configure, health]
- name: Write the OpenBao configuration
become: true
ansible.builtin.template:
src: openbao.hcl.j2
dest: "{{ openbao_config_dir }}/openbao.hcl"
owner: root
group: "{{ openbao_group }}"
mode: "0640"
register: __openbao_config
tags: [openbao, configure]
- name: Write the OpenBao systemd unit
become: true
ansible.builtin.template:
src: openbao.service.j2
dest: /etc/systemd/system/openbao.service
owner: root
group: root
mode: "0644"
register: __openbao_unit
tags: [openbao, configure]
# A restart seals the server, so it runs only when the configuration, the unit or the binary
# changed; a sealed server stays sealed until it is unsealed again.
- name: Enable and start OpenBao
become: true
ansible.builtin.systemd_service:
name: openbao
enabled: true
state: "{{ 'restarted' if __openbao_restart else 'started' }}"
daemon_reload: "{{ __openbao_unit is changed }}"
vars:
__openbao_restart: "{{ __openbao_config is changed or __openbao_unit is changed or not __openbao_installed }}"
# Under --check a new unit or binary is only simulated, so systemd would not find it.
when: not ansible_check_mode or (__openbao_unit is not changed and __openbao_installed)
tags: [openbao, configure]
- name: Check the OpenBao service status
become: true
ansible.builtin.systemd_service:
name: openbao
register: __openbao_service_status
tags: [openbao, configure, health]
- name: Fail if OpenBao is not running
ansible.builtin.fail:
msg: >-
The openbao service is {{ __openbao_service_status.status.ActiveState }}. See journalctl -u openbao on the
host.
when:
- __openbao_service_status.status.ActiveState != "active"
# The start above is skipped under --check for a new unit or binary.
- not ansible_check_mode or (__openbao_unit | default({}) is not changed and __openbao_installed)
tags: [openbao, configure, health]
+39
View File
@@ -0,0 +1,39 @@
---
# get_url checks the pinned sha256 before it keeps the archive, so a tampered or replaced asset
# never reaches the extraction. Only bao is extracted: the archive also holds the licence,
# README and changelog, which do not belong in a bin directory.
# Skipped under --check: tempfile and the extraction of a gzipped tarball cannot run in check
# mode, and nothing is downloaded.
- name: Download, verify and extract OpenBao
become: true
when: not ansible_check_mode
tags: [openbao, install]
block:
- name: Create a download directory
ansible.builtin.tempfile:
state: directory
suffix: .openbao
register: __openbao_download_dir
- name: Download and verify the OpenBao archive
ansible.builtin.get_url:
url: "{{ openbao_release_url }}/openbao_{{ openbao_version }}_linux_{{ __openbao_arch }}.tar.gz"
dest: "{{ __openbao_download_dir.path }}/openbao.tar.gz"
checksum: "sha256:{{ openbao_sha256[__openbao_arch] }}"
mode: "0600"
- name: Extract the bao binary
ansible.builtin.unarchive:
src: "{{ __openbao_download_dir.path }}/openbao.tar.gz"
dest: "{{ openbao_bin_path | dirname }}"
remote_src: true
include: [bao]
owner: root
group: root
mode: "0755"
always:
- name: Remove the download directory
ansible.builtin.file:
path: "{{ __openbao_download_dir.path }}"
state: absent
when: __openbao_download_dir.path is defined
+34
View File
@@ -0,0 +1,34 @@
---
# The download and the sha256 pick depend on the CPU architecture; a play with gather_facts off
# has none, so the smallest subset is gathered here.
- name: Gather the architecture fact
ansible.builtin.setup:
gather_subset: [min]
when: ansible_facts.architecture is undefined
tags: [openbao, always]
- name: Map the architecture to the release name
ansible.builtin.set_fact:
__openbao_arch: "{{ {'x86_64': 'amd64', 'aarch64': 'arm64'}.get(ansible_facts.architecture, ansible_facts.architecture) }}"
tags: [openbao, always]
- name: Validate the role inputs
ansible.builtin.import_tasks: validate.yml
tags: [openbao, always]
- name: Include prerequisites
ansible.builtin.include_tasks: prereqs.yml
tags: [openbao, prereqs, always]
- name: Install OpenBao if missing
ansible.builtin.include_tasks: install.yml
when: not __openbao_installed
tags: [openbao, install]
- name: Configure and start OpenBao
ansible.builtin.include_tasks: configure.yml
tags: [openbao, configure, health]
- name: Read the seal status
ansible.builtin.include_tasks: seal_status.yml
tags: [openbao, configure, health]
+51
View File
@@ -0,0 +1,51 @@
---
- name: Create the OpenBao group
become: true
ansible.builtin.group:
name: "{{ openbao_group }}"
system: true
register: __openbao_group_account
tags: [openbao, prereqs, always]
- name: Create the OpenBao user
become: true
ansible.builtin.user:
name: "{{ openbao_user }}"
group: "{{ openbao_group }}"
shell: /usr/sbin/nologin
home: "{{ openbao_data_dir }}"
comment: "OpenBao secret store"
system: true
create_home: false
register: __openbao_user_account
tags: [openbao, prereqs, always]
# The config holds no secret, but the service user reads it and no one else needs to.
- name: Create the OpenBao directories
become: true
ansible.builtin.file:
path: "{{ __openbao_dir.path }}"
state: directory
owner: "{{ __openbao_dir.owner }}"
group: "{{ openbao_group }}"
mode: "{{ __openbao_dir.mode }}"
loop:
- {path: "{{ openbao_config_dir }}", owner: root, mode: "0750"}
- {path: "{{ openbao_data_dir }}", owner: "{{ openbao_user }}", mode: "0700"}
loop_control:
loop_var: __openbao_dir
label: "{{ __openbao_dir.path }}"
# Under --check a new account is only simulated, so a directory cannot be chowned to it.
when: not ansible_check_mode or (__openbao_group_account is not changed and __openbao_user_account is not changed)
tags: [openbao, prereqs, always]
- name: Check if the OpenBao binary exists
ansible.builtin.stat:
path: "{{ openbao_bin_path }}"
register: __openbao_binary
tags: [openbao, prereqs, always]
- name: Set the OpenBao install fact
ansible.builtin.set_fact:
__openbao_installed: "{{ __openbao_binary.stat.exists }}"
tags: [openbao, prereqs, always]
+55
View File
@@ -0,0 +1,55 @@
---
# Reads the seal status on loopback, so it depends neither on DNS nor on the listen address,
# and validates the certificate against openbao_tls_ca_file: the certificate must cover
# 127.0.0.1. The endpoint needs no token.
- name: Read the OpenBao seal status
# Under --check a new unit or binary is only simulated, so nothing listens yet.
when: not ansible_check_mode or (__openbao_unit | default({}) is not changed and __openbao_installed)
tags: [openbao, configure, health]
block:
- name: Read the seal status on loopback
become: true
ansible.builtin.uri:
url: "{{ 'http' if openbao_tls_disable | bool else 'https' }}://127.0.0.1:{{ openbao_port }}/v1/sys/seal-status"
method: GET
validate_certs: true
ca_path: "{{ omit if openbao_tls_disable | bool else openbao_tls_ca_file }}"
status_code: [200]
register: __openbao_seal_status
# The listener opens a moment after systemd reports the unit started.
until: __openbao_seal_status.status | default(0) == 200
retries: 10
delay: 2
# Read-only GET: runs in --check too.
check_mode: false
rescue:
# A raw SSL error does not say which input is wrong.
- name: Fail with the likely cause
ansible.builtin.fail:
msg: >-
OpenBao did not answer its seal status at {{ __openbao_seal_status.url | default('127.0.0.1') }}
({{ __openbao_seal_status.msg | default('no response') }}).
{{ 'Check journalctl -u openbao on the host.' if openbao_tls_disable | bool else
'The listener certificate must cover 127.0.0.1 as an IP subject alternative name and be signed by the CA in openbao_tls_ca_file ('
~ openbao_tls_ca_file ~ '); otherwise check journalctl -u openbao on the host.' }}
- name: Warn that OpenBao is not initialised
ansible.builtin.debug:
msg: >-
WARNING: OpenBao on {{ inventory_hostname }} is not initialised and stays sealed. Initialise it before use;
until then it serves no secret.
when:
- __openbao_seal_status.json is defined
- not __openbao_seal_status.json.initialized
tags: [openbao, configure, health]
- name: Warn that OpenBao is sealed
ansible.builtin.debug:
msg: >-
WARNING: OpenBao on {{ inventory_hostname }} is sealed and serves no secret until it is unsealed with the
unseal keys.
when:
- __openbao_seal_status.json is defined
- __openbao_seal_status.json.initialized
- __openbao_seal_status.json.sealed
tags: [openbao, configure, health]
+179
View File
@@ -0,0 +1,179 @@
---
# Input checks. Imported first in main.yml with tags: always, so a bad input fails before any
# change, whatever tags the run selects.
- name: Require a plain openbao_version
ansible.builtin.assert:
that:
- openbao_version is string
- openbao_version is match('^[0-9]+\\.[0-9]+\\.[0-9]+\\Z')
fail_msg: >-
openbao_version must be a release version such as 2.7.3, with no leading v: it is used in the
download URL.
quiet: true
- name: Require a supported architecture
ansible.builtin.assert:
that: __openbao_arch in ['amd64', 'arm64']
fail_msg: >-
OpenBao release tarballs are installed for amd64 and arm64 only; this host reports
{{ ansible_facts.architecture }}.
quiet: true
- name: Require a sha256 for this architecture
ansible.builtin.assert:
that:
- openbao_sha256 is mapping
- openbao_sha256[__openbao_arch] | default('') is string
- openbao_sha256[__openbao_arch] | default('') is match('^[0-9a-fA-F]{64}\\Z')
fail_msg: >-
openbao_sha256 must map {{ __openbao_arch }} to the 64-digit hex sha256 of
openbao_{{ openbao_version }}_linux_{{ __openbao_arch }}.tar.gz, as listed in the release's checksums.txt.
quiet: true
# The values land in the systemd unit and in file paths: a newline or % would inject or expand
# unit directives, and a space would split ReadWritePaths.
- name: Require plain service account names and absolute paths
ansible.builtin.assert:
that:
- openbao_user is string
- openbao_group is string
- openbao_bin_path is string
- openbao_config_dir is string
- openbao_data_dir is string
- (openbao_user ~ openbao_group ~ openbao_bin_path ~ openbao_config_dir ~ openbao_data_dir) is not search('[\\s%]')
- openbao_bin_path is match('/')
- openbao_bin_path | basename == 'bao'
- openbao_config_dir is match('/')
- openbao_data_dir is match('/')
fail_msg: >-
openbao_user, openbao_group, openbao_bin_path, openbao_config_dir and openbao_data_dir must not contain
whitespace or %; the three paths must be absolute, and the file name of openbao_bin_path must be bao.
quiet: true
# Without a Collection dependency for an IP test: a dotted quad, or IPv6 in full or with one ::
# (no embedded IPv4), at most 8 groups in full form and 7 around a ::.
- name: Require an IP listen address
ansible.builtin.assert:
that:
- openbao_listen_address is string
- >-
openbao_listen_address is match(__openbao_ipv4_pattern)
or (openbao_listen_address is match(__openbao_ipv6_pattern)
and openbao_listen_address.split(':') | select | list | length
<= (7 if '::' in openbao_listen_address else 8))
fail_msg: >-
openbao_listen_address must be an IPv4 or IPv6 address (0.0.0.0 for every address), such as 192.0.2.10 or
2001:db8::10, with no brackets or port.
quiet: true
vars:
__openbao_octet: '(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])'
__openbao_ipv4_pattern: '^({{ __openbao_octet }}\.){3}{{ __openbao_octet }}\Z'
__openbao_hex: '[0-9A-Fa-f]{1,4}'
__openbao_ipv6_pattern: >-
^(({{ __openbao_hex }}:){7}{{ __openbao_hex }}|(({{ __openbao_hex }}:){0,6}{{ __openbao_hex }})?::(({{
__openbao_hex }}:){0,6}{{ __openbao_hex }})?)\Z
- name: Require ports and a node id
ansible.builtin.assert:
that:
- openbao_port | int(0) >= 1024
- openbao_port | int(0) <= 65535
- openbao_cluster_port | int(0) >= 1024
- openbao_cluster_port | int(0) <= 65535
- openbao_port | int != openbao_cluster_port | int
- openbao_node_id is string
- openbao_node_id is match('^[A-Za-z0-9._-]+\\Z')
fail_msg: >-
openbao_port and openbao_cluster_port must be two different ports from 1024 to 65535 (the unit grants no
capability to bind a lower one); openbao_node_id must be letters, digits, dots, hyphens or underscores.
quiet: true
- name: Require API and cluster addresses
ansible.builtin.assert:
that:
- openbao_api_addr is string
- openbao_api_addr is match('^https?://[^\\s"]+\\Z')
- openbao_cluster_addr is string
- openbao_cluster_addr is match('^https://[^\\s"]+\\Z')
fail_msg: >-
openbao_api_addr must be an http:// or https:// URL and openbao_cluster_addr an https:// URL (cluster
traffic is always TLS), with no whitespace or quote.
quiet: true
- name: Require the TLS files unless TLS is disabled
ansible.builtin.assert:
that:
- openbao_tls_cert_file is string
- openbao_tls_key_file is string
- openbao_tls_ca_file is string
- openbao_tls_cert_file is match('/')
- openbao_tls_key_file is match('/')
- openbao_tls_ca_file is match('/')
fail_msg: >-
openbao_tls_cert_file, openbao_tls_key_file and openbao_tls_ca_file must be absolute paths of files on the
host: the role does not create key material. Set them, or set openbao_tls_disable to true to serve plain
HTTP.
quiet: true
when: not (openbao_tls_disable | bool)
- name: Stat the TLS files
become: true
ansible.builtin.stat:
path: "{{ __openbao_tls_file }}"
# A certbot-style live/ path is a symlink; the server reads the file behind it.
follow: true
loop:
- "{{ openbao_tls_cert_file }}"
- "{{ openbao_tls_key_file }}"
- "{{ openbao_tls_ca_file }}"
loop_control:
loop_var: __openbao_tls_file
register: __openbao_tls_stat
# Read-only: runs in --check too, so a missing file is caught in the preview.
check_mode: false
when: not (openbao_tls_disable | bool)
- name: Require the TLS files to exist
ansible.builtin.assert:
that: __openbao_tls_missing | length == 0
fail_msg: >-
The TLS file(s) {{ __openbao_tls_missing | join(', ') }} do not exist or are not regular files on the host.
Deploy the certificate, key and CA file before running the role.
quiet: true
vars:
__openbao_tls_missing: >-
{{ __openbao_tls_stat.results | rejectattr('stat.exists') | map(attribute='__openbao_tls_file') | list
+ __openbao_tls_stat.results | selectattr('stat.exists') | rejectattr('stat.isreg')
| map(attribute='__openbao_tls_file') | list }}
when: not (openbao_tls_disable | bool)
# From the permission bits, because the service user may not exist yet: the server refuses to
# start without its certificate and key, and this fails before the role changes anything. The
# directories above the files are not checked.
- name: Require the certificate and key to be readable by the service user
ansible.builtin.assert:
that: >-
__openbao_mode[2] in '4567'
or (__openbao_tls_item.stat.gr_name | default('') == openbao_group and __openbao_mode[1] in '4567')
or (__openbao_tls_item.stat.pw_name | default('') == openbao_user and __openbao_mode[0] in '4567')
fail_msg: >-
The user {{ openbao_user }} could not read {{ __openbao_tls_item.__openbao_tls_file }}. Create the
{{ openbao_group }} system group before the role runs and give it the file (for example
root:{{ openbao_group }}, mode 0640), or make the file readable by everyone (a certificate, not a key).
quiet: true
vars:
__openbao_mode: "{{ __openbao_tls_item.stat.mode[-3:] }}"
loop: "{{ (__openbao_tls_stat.results | default([]))[:2] }}"
loop_control:
loop_var: __openbao_tls_item
label: "{{ __openbao_tls_item.__openbao_tls_file }}"
when: not (openbao_tls_disable | bool)
- name: Warn that TLS is disabled
ansible.builtin.debug:
msg: >-
WARNING: openbao_tls_disable is true, so OpenBao serves plain HTTP: tokens and secrets cross the network
unencrypted. Use it only behind a listener address no one else can reach.
# Registered so a caller (and the scenario) can see whether the warning was given.
register: __openbao_tls_warning
when: openbao_tls_disable | bool
+35
View File
@@ -0,0 +1,35 @@
{{ ansible_managed | comment }}
{% macro hostport(address, port) %}{{ ('[' ~ address ~ ']') if ':' in address else address }}:{{ port }}{% endmacro %}
{% macro tls() %}
{% if openbao_tls_disable | bool %}
tls_disable = true
{% else %}
tls_cert_file = {{ openbao_tls_cert_file | to_json }}
tls_key_file = {{ openbao_tls_key_file | to_json }}
tls_min_version = {{ openbao_tls_min_version | to_json }}
{% endif %}
{% endmacro %}
ui = {{ openbao_ui | bool | lower }}
api_addr = {{ openbao_api_addr | to_json }}
cluster_addr = {{ openbao_cluster_addr | to_json }}
storage "raft" {
path = {{ openbao_data_dir | to_json }}
node_id = {{ openbao_node_id | to_json }}
}
listener "tcp" {
address = {{ hostport(openbao_listen_address, openbao_port) | to_json }}
cluster_address = {{ hostport(openbao_listen_address, openbao_cluster_port) | to_json }}
{{ tls() -}}
}
{# Go opens a :: listener dual-stack, so it already serves 127.0.0.1; a second one would not bind. #}
{% if openbao_listen_address not in ['0.0.0.0', '::', '127.0.0.1'] %}
# The role reads its own API on loopback.
listener "tcp" {
address = {{ hostport('127.0.0.1', openbao_port) | to_json }}
{{ tls() -}}
}
{% endif %}
@@ -0,0 +1,55 @@
{{ ansible_managed | comment }}
[Unit]
Description=OpenBao secret store
Documentation=https://openbao.org/docs/
Wants=network-online.target
After=network-online.target
ConditionFileNotEmpty={{ openbao_config_dir }}/openbao.hcl
[Service]
Type=notify
User={{ openbao_user }}
Group={{ openbao_group }}
ExecStart={{ openbao_bin_path }} server -config={{ openbao_config_dir }}/openbao.hcl
# SIGHUP reloads the listener certificates and the log level without sealing the server. The
# shell's own kill, because the kill binary (procps) is not on every host.
ExecReload=/bin/sh -c 'kill -HUP "$MAINPID"'
KillMode=process
KillSignal=SIGINT
TimeoutStopSec=30
Restart=on-failure
RestartSec=5
LimitNOFILE=65536
# OpenBao has no mlock since 2.0: keep its memory out of swap and out of core dumps instead.
MemorySwapMax=0
LimitCORE=0
UMask=0077
NoNewPrivileges=true
CapabilityBoundingSet=
AmbientCapabilities=
ProtectSystem=strict
ReadWritePaths={{ openbao_data_dir }}
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectKernelLogs=true
ProtectControlGroups=true
ProtectClock=true
ProtectHostname=true
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
LockPersonality=true
MemoryDenyWriteExecute=true
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=~@privileged @resources
# A filtered call fails with EPERM instead of killing the server with SIGSYS.
SystemCallErrorNumber=EPERM
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
[Install]
WantedBy=multi-user.target
+133
View File
@@ -0,0 +1,133 @@
# pve_vm
Clones a Proxmox VE QEMU VM from a template through the Proxmox API and keeps its configuration, cloud-init settings, boot disk size and power state in line with the inputs. The configuration is updated only when drift is detected. Variables and their types are defined in [`meta/argument_specs.yml`](meta/argument_specs.yml), which is the source of truth.
## Supported platforms
Ubuntu 24.04 (noble) and 26.04 (resolute) guests, the platforms the molecule scenario runs on. The play runs for the VM's inventory host: the API calls run on the controller (`pve_vm_delegate`, default `localhost`), and only the cloud-init wait runs on the guest itself. The template the VM is cloned from must be a cloud-init image of one of these releases.
The guest-side cloud-init wait (`cloud-init status --wait`) is untested on both releases: the test images do not ship cloud-init.
The role targets the guests, not the Proxmox node, so it does not declare Debian trixie: the node is reached only through its API.
## Requirements and run order
- Use it by its fully qualified name, `mortis.kamino.pve_vm`, in a play over the VM hosts with `gather_facts: false`: the VM may not exist yet when the play starts.
- The controller needs the `community.proxmox` collection and the Python libraries `proxmoxer` 2.3 or later and `requests`.
- Role dependencies: none.
- `pve_vm_node` and `pve_vm_vmid` are required. `pve_vm_api_user` and `pve_vm_api_token_secret` have no usable default and are asserted non-empty before any change; `pve_vm_disk_size` too while `pve_vm_manage_disk` is true, unless `pve_vm_state` is `absent`.
- `pve_vm_api_host` defaults to the `ansible_host` of `pve_vm_node` from hostvars, so the node must then be an inventory host even when only the VM hosts are targeted. Set `pve_vm_api_host` explicitly when the node is not in the inventory.
- The VM's own `ansible_host` is the target of the SSH wait, and `inventory_hostname`, lowercased with underscores replaced by dashes, is its name in Proxmox.
- Run it before any role that configures the inside of the VM. Gate those on `pve_vm_exists` (below).
### API privileges
The API token needs, on the VM (or a pool or path above it), the template and the storage:
- `VM.Allocate`, `VM.Clone` (on the template), `VM.Audit` and `VM.Config.*` (`VM.Config.CDROM`, `VM.Config.CPU`, `VM.Config.Cloudinit`, `VM.Config.Disk`, `VM.Config.HWType`, `VM.Config.Memory`, `VM.Config.Network`, `VM.Config.Options`), and `VM.PowerMgmt` for the power state and restarts;
- `Datastore.AllocateSpace` on the storage that holds the disks;
- `SDN.Use` on the bridge or zone when `pve_vm_network` sets a network.
A token with privilege separation (the Proxmox default) gets the intersection of its own ACL and its user's: grant the role on both the user and the token.
## Role variables
| Variable | Default | Description |
|---|---|---|
| `pve_vm_node` | none (required) | Name of the Proxmox node that owns the VM. |
| `pve_vm_vmid` | none (required) | VM id; for a clone, the new id. |
| `pve_vm_state` | `present` | `present`, `started`, `stopped` or `absent`. `present` leaves the power state alone. |
| `pve_vm_allow_destroy` | `false` | Required before `absent` deletes the VM. |
| `pve_vm_clone_vmid` | none | Template id, read and asserted set only when the VM does not exist and is cloned. |
| `pve_vm_full_clone` | `true` | Full clone instead of a linked clone. |
| `pve_vm_delegate` | `localhost` | Host that runs the API module tasks. |
| `pve_vm_wait_for_guest` | `true` | Wait for SSH and cloud-init when `started`. |
| `pve_vm_agent` | `true` | QEMU guest agent. |
| `pve_vm_onboot` | `true` | Start on node boot. |
| `pve_vm_autostart` | `true` | Sent as `autostart` on update, never compared. |
| `pve_vm_memory`, `pve_vm_cores`, `pve_vm_sockets` | none | Sizing, omitted when undefined. |
| `pve_vm_network`, `pve_vm_ipconfig` | none | Mappings for `net` and `ipconfig`, see the spec. Omitted when undefined. |
| `pve_vm_nameservers` | none | List, or space or comma separated string. Omitted when undefined. |
| `pve_vm_sshkeys` | none | Cloud-init public keys, one per line. Omitted when undefined. |
| `pve_vm_ci_user` | `""` | Cloud-init user (`ciuser`). Left out of the update and of the drift check when empty. |
| `pve_vm_force_update` | `false` | Push the configuration and cloud-init settings without drift. |
| `pve_vm_manage_disk` | `true` | Grow the boot disk to `pve_vm_disk_size`. |
| `pve_vm_disk_size` | none (asserted) | Boot disk size, for example `32G`; only ever grown. |
| `pve_vm_boot_disk` | `scsi0` | Disk key whose size is read and resized. |
| `pve_vm_reboot_if_required` | `true` | Restart the VM after its boot disk was grown. |
| `pve_vm_api_user` | `""` (asserted) | API user without realm; `@<pve_vm_api_realm>` is appended. |
| `pve_vm_api_realm` | `pam` | Realm of the API user. |
| `pve_vm_api_token_id` | `<pve_vm_api_user>-token` | API token id. |
| `pve_vm_api_token_secret` | none (asserted) | API token secret, normally vaulted. No default. `no_log`. |
| `pve_vm_api_host` | `ansible_host` of `pve_vm_node`, empty without it | Proxmox API address (port 8006). |
The `pve_vm_api_*` inputs are applied through `module_defaults` inside the block that holds every API call of the role, and the REST lookup of the VM config sends the header `PVEAPIToken=<user>@<realm>!<token_id>=<secret>`, derived in `vars/main.yml`.
## Variables set by the role
- `pve_vm_exists`: the VM exists on the node.
## Tags
The input validation (`tasks/validate.yml`) carries `always`, so it runs whatever tags are selected. No other task is tagged, so only a play-level tag applies to them.
## Example play
```yaml
- name: Provision VMs
hosts: vms
gather_facts: false
roles:
- role: mortis.kamino.pve_vm
vars:
pve_vm_state: started
pve_vm_node: pve1
pve_vm_vmid: 210
pve_vm_clone_vmid: 9000
pve_vm_memory: 4096
pve_vm_cores: 2
pve_vm_disk_size: 32G
pve_vm_network:
net0:
model: virtio
bridge: vmbr0
tag: 20
pve_vm_ipconfig:
ipconfig0: "ip={{ ansible_host }}/24,gw=192.0.2.1"
pve_vm_ci_user: ubuntu
pve_vm_sshkeys: "{{ lookup('ansible.builtin.file', 'files/admin.pub') }}"
pve_vm_api_user: ansible
pve_vm_api_token_secret: "{{ vault_pve_api_token_secret }}"
- name: Configure the VMs
hosts: vms
tasks:
- name: Configure the guest
ansible.builtin.include_role:
name: mortis.kamino.user_management
when: pve_vm_exists | default(false)
```
## Tests
The `default` molecule scenario runs in CI on Ubuntu 24.04 (noble) and 26.04 (resolute), the `molecule-ubuntu2404` and `molecule-ubuntu2604` images, which stand in for the guest. It runs `check` before the converge (a fresh host) and after it. The converge includes the internal task files `validate` and `detect_drift`, with a seeded VM config in Proxmox's own forms standing in for the REST lookup.
- Positive: `validate` accepts the scenario inputs, an unmanaged disk without a size, and `absent` without a size.
- Negative: through `main`, a state outside the spec, a VM id that is not a number, a missing API user and a missing token secret; through `validate`, a missing token secret with `absent` and a managed disk without a size; through `create`, a clone without `pve_vm_clone_vmid`. Each asserts the expected message.
- Drift: `detect_drift` over seeded configs: a matching config; the cloud-init user (empty input with a different or missing live `ciuser`, a changed user, a missing `ciuser`); the SSH keys (missing, rotated, empty input); a forced update; Proxmox's other value forms; every compared dimension at once; a dropped VLAN tag.
- Static, over every task file under `tasks/` (subdirectories and nested `block`, `rescue` and `always` included): no task calling `proxmox_kvm` (as `community.proxmox.proxmox_kvm`, `community.general.proxmox_kvm`, `ansible.legacy.proxmox_kvm` or `proxmox_kvm`, by its key or through `action` or `local_action`, with its `args` merged) sends `cipassword`; no `module_defaults` entry of any task or block sets `cipassword`; exactly one such task deletes a stored `cipassword`, and it is `no_log`.
Not exercised: the API lifecycle (lookup, clone, update, the `cipassword` delete, resize, start, stop, restart and delete), as there is no Proxmox API in the scenario; and the guest-side cloud-init wait, as the test images do not ship cloud-init.
## Notes
- Idempotent: yes, as far as drift detection goes, which the scenario checks: the update runs only on drift. The API calls themselves rely on `community.proxmox`, which is not tested; the update and the `cipassword` delete report changed whenever they run.
- Check mode: `--check` is the supported preview; a play-level `check_mode: true` is not supported. `proxmox_kvm` and `proxmox_disk` have no check mode support, so under `--check` the two reads (the `proxmox_kvm` `state: current` lookup and the REST GET of the VM config) run for real with `check_mode: false`, and every write is skipped and previewed instead: `Preview VM creation` for a missing VM (nothing else runs for it), `Report configuration drift` names the drifted dimensions and a pending disk resize (changed when the update or resize would run; it also reports on a real run), `Preview deletion of the stored cloud-init password` and `Preview VM power state`. Delete and restart are skipped. Roles gated on `pve_vm_exists` therefore run in check mode against existing VMs.
- Drift is checked for name, CPU type (always `host`), memory, cores, sockets, cloud-init user, `ipconfig0`, nameservers, `onboot`, agent and `net0`. A missing `ciuser` or `sshkeys` key in the live config also counts, and so does the first run after a clone.
- Cloud-init `sshkeys` are stored URL-encoded by Proxmox and cannot be diffed. A rotated `pve_vm_sshkeys` reaches an existing VM only through other detected drift, a fresh clone or `pve_vm_force_update: true`.
- The role never sets a cloud-init password (`cipassword`): the first login is by SSH key. A `cipassword` stored on a VM is deleted on the next real run, by a `no_log` task.
- Disk: the boot disk only grows. Only the digits of `pve_vm_disk_size` are compared with the current size in GB. After a resize the VM is restarted when `pve_vm_reboot_if_required` is true.
- With `pve_vm_state: absent` and `pve_vm_allow_destroy` true the VM is stopped and deleted and the play ends for that host. Without `pve_vm_allow_destroy` the role only looks the VM up and changes nothing.
- A VM that does not exist is detected by the module's "does not exist in cluster" message. Any other lookup failure stops the run, re-raised with only the module message.
- TLS certificates of the API are not verified.
- `no_log` is set on every task that carries the API token.
+31
View File
@@ -0,0 +1,31 @@
---
pve_vm_state: present # present | started | stopped | absent
pve_vm_allow_destroy: false
pve_vm_full_clone: true
pve_vm_wait_for_guest: true
pve_vm_delegate: localhost
pve_vm_agent: true
pve_vm_onboot: true
# Sent on update only; Proxmox does not return it in the VM config, so it is never compared.
pve_vm_autostart: true
pve_vm_manage_disk: true
pve_vm_boot_disk: scsi0
# Restart the VM after its boot disk was grown.
pve_vm_reboot_if_required: true
# Cloud-init (ciuser, sshkeys) is pushed to an existing VM only on other drift, on the first run
# after a clone, or when this is true: Proxmox stores sshkeys URL-encoded, so a rotated key is not
# detected as drift.
pve_vm_force_update: false
# Cloud-init user (ciuser). Empty means not sent to Proxmox and not compared for drift.
pve_vm_ci_user: ""
# Proxmox API credentials, asserted in tasks/validate.yml before any change. The user is the bare
# name: the role appends @<pve_vm_api_realm>. The token secret, pve_vm_api_token_secret, is a secret
# input with no default, normally vaulted.
pve_vm_api_user: ""
pve_vm_api_realm: pam
pve_vm_api_token_id: "{{ pve_vm_api_user }}-token"
# The Proxmox node's address. Guarded so the default templates to '' (and the argument validation
# passes) on a host without pve_vm_node.
pve_vm_api_host: "{{ hostvars[pve_vm_node].ansible_host if pve_vm_node is defined else '' }}"
Loaded 100 of 190 files, more files were not shown because too many files have changed in this diff. Show more