Compare commits
69
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a60fb6407e | ||
|
|
6e89e4d857 | ||
|
|
f1598486f0 | ||
|
|
c64b4b932b | ||
|
|
6e9709f0da | ||
|
|
ac9a11413d | ||
|
|
1289da3104 | ||
|
|
7f28fccfe4 | ||
|
|
c402720376 | ||
|
|
468d167d3a | ||
|
|
a1d42eadce | ||
|
|
14c7dde464 | ||
|
|
56c5c6dd72 | ||
|
|
c3a7cef195 | ||
|
|
a9a973a523 | ||
|
|
0fb4fd70ee | ||
|
|
fd448d7e9e | ||
|
|
26c6026d1a | ||
|
|
2d338d4764 | ||
|
|
f31279f9f3 | ||
|
|
49afd900dc | ||
|
|
924a0ea7a7 | ||
|
|
0173f6f226 | ||
|
|
dfc25640b6 | ||
|
|
11b75d9014 | ||
|
|
258cbaf516 | ||
|
|
41820fd9a7 | ||
|
|
e8f739904a | ||
|
|
040dd9fbf2 | ||
|
|
edf31df045 | ||
|
|
6070179126 | ||
|
|
2b221b69a5 | ||
|
|
ec972b90a4 | ||
|
|
922a79a871 | ||
|
|
ac8967f6a5 | ||
|
|
8548ab8c9d | ||
|
|
06853aa6f6 | ||
|
|
035669c26f | ||
|
|
ca62d4aaa8 | ||
|
|
2b2e2c4021 | ||
|
|
876ff2ada5 | ||
|
|
dbcbf3b02d | ||
|
|
53f5df4378 | ||
|
|
40d5c49e33 | ||
|
|
4201300291 | ||
|
|
0779e8b5c7 | ||
|
|
f766666476 | ||
|
|
7bc3cc6bdf | ||
|
|
2865573429 | ||
|
|
be8c3f2ed9 | ||
|
|
716baa19c7 | ||
|
|
0961dfdff4 | ||
|
|
cdc5937e45 | ||
|
|
cd46e9dfb4 | ||
|
|
8c3f9c4594 | ||
|
|
c109d24229 | ||
|
|
faf1c7e36f | ||
|
|
b5a5a4efa1 | ||
|
|
c0c1485470 | ||
|
|
92cf7257d4 | ||
|
|
e34a0eb2e0 | ||
|
|
ef840c8952 | ||
|
|
29db4985fe | ||
|
|
1fedced1d3 | ||
|
|
a2ab13a6e1 | ||
|
|
a185a301db | ||
|
|
c7c38c6bc0 | ||
|
|
fcd2290e14 | ||
|
|
5ce5e3c932 |
No files matched your search
@@ -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 ci 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
|
||||
@@ -96,7 +96,9 @@ issue.
|
||||
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.
|
||||
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,12 +112,20 @@ 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.
|
||||
|
||||
@@ -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
|
||||
@@ -44,6 +45,9 @@ on: # yamllint disable-line rule:truthy
|
||||
- 'requirements.yml'
|
||||
- 'extensions/molecule/requirements.yml'
|
||||
- '.pre-commit-config.yaml'
|
||||
# The molecule-controller image bakes these (images/molecule-controller/Dockerfile).
|
||||
- 'requirements-molecule.txt'
|
||||
- 'requirements-molecule.lock'
|
||||
- '.gitea/workflows/image.yml'
|
||||
workflow_dispatch: {}
|
||||
|
||||
@@ -90,6 +94,11 @@ jobs:
|
||||
subpath: ""
|
||||
dockerfile: images/ci/Dockerfile
|
||||
job_image: ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
|
||||
- name: molecule-controller
|
||||
base: "0.1"
|
||||
subpath: ""
|
||||
dockerfile: images/molecule-controller/Dockerfile
|
||||
job_image: ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
|
||||
container:
|
||||
image: ${{ matrix.job_image }}
|
||||
# Keeps a runaway build from taking the whole runner down with it.
|
||||
|
||||
@@ -24,7 +24,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
|
||||
@@ -57,11 +63,11 @@ jobs:
|
||||
# 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.12@sha256:5f96ae95e16e205cc433607bab31307b36633ad73468aa7bdc57f4bbddb1c571
|
||||
# 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.8@sha256:96496c7fb35e6091d08b057e53ba603256d07483769f27c19582d336ddc11173
|
||||
# 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 }}
|
||||
@@ -123,6 +129,8 @@ jobs:
|
||||
EVENT_NAME: ${{ github.event_name }}
|
||||
# The workflow only runs for pull requests to main; lint.yml uses the same constant.
|
||||
BASE_REF: origin/main
|
||||
# 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
|
||||
@@ -154,7 +162,7 @@ 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 \
|
||||
-e MOLECULE_IMAGE -e MOLECULE_IMAGE_2604 -e KAMINO_RUN_ID -e MOLECULE_LANES \
|
||||
"$CI_IMAGE" scripts/run_molecule_in_ci_image.sh <<< "$selected"
|
||||
|
||||
# A cancelled run can leave its containers running when the docker client is killed.
|
||||
|
||||
+2
-1
@@ -13,10 +13,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
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
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
|
||||
`nfs_client`, `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).
|
||||
|
||||
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).
|
||||
|
||||
+227
-28
@@ -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-11-29T13:12:37.842657+00:00'
|
||||
apm_version: 0.38.1
|
||||
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:2538b3dbb3860ebe93a39cad95cd5a1adcbeded19f404a84201b3e8aa7ce91c7
|
||||
.claude/commands/ship.md: sha256:f108f73e60a884f46285955027fba47d6309fed6a89812948f577e27be180af8
|
||||
.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:2538b3dbb3860ebe93a39cad95cd5a1adcbeded19f404a84201b3e8aa7ce91c7
|
||||
- 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:f108f73e60a884f46285955027fba47d6309fed6a89812948f577e27be180af8
|
||||
- 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
|
||||
|
||||
@@ -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: []
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
minor_changes:
|
||||
- >-
|
||||
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.
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
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.
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
trivial:
|
||||
- >-
|
||||
system_baseline - Purge the unwanted packages that are installed in one apt call instead of one call per package.
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
minor_changes:
|
||||
- >-
|
||||
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.
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
bugfixes:
|
||||
- >-
|
||||
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.
|
||||
- >-
|
||||
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.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
trivial:
|
||||
- >-
|
||||
system_baseline - The registered results of the unattended-upgrades check and the reboot-required
|
||||
check carry the internal ``__system_baseline_`` prefix.
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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` and `ca-certificates` 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 and no `git`: 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`.
|
||||
|
||||
No workflow consumes it yet; the Molecule workflow still runs in the [`ci`](ci.md) image until its first pin is made
|
||||
by hand.
|
||||
|
||||
## 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.
|
||||
@@ -11,9 +11,10 @@ It is the release the hosts run today.
|
||||
- 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.
|
||||
|
||||
|
||||
@@ -11,9 +11,10 @@ It is the release the hosts are moving to; every role scenario whose role declar
|
||||
- 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.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+4
-2
@@ -7,7 +7,7 @@ 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, pihole, pve_lxc, 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 (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:
|
||||
@@ -63,6 +63,8 @@ build_ignore:
|
||||
- ruff.toml
|
||||
- requirements-dev.txt
|
||||
- requirements-dev.lock
|
||||
- requirements-molecule.txt
|
||||
- requirements-molecule.lock
|
||||
- requirements.yml
|
||||
- gitleaks-report.json
|
||||
- importer_result.json
|
||||
|
||||
+8
-3
@@ -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
|
||||
@@ -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.
|
||||
@@ -90,3 +90,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.
|
||||
@@ -0,0 +1,130 @@
|
||||
# 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:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db 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. apt lists are removed in the same layer.
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ca-certificates 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.9; \
|
||||
/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 (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"; \
|
||||
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
|
||||
@@ -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,7 +14,7 @@
|
||||
# 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
|
||||
@@ -28,7 +28,7 @@
|
||||
FROM ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b
|
||||
|
||||
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 +36,20 @@ 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
|
||||
|
||||
# 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 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/* \
|
||||
|
||||
@@ -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,7 +14,7 @@
|
||||
# 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
|
||||
@@ -28,7 +28,7 @@
|
||||
FROM ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
|
||||
|
||||
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 +36,22 @@ 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
|
||||
|
||||
# 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 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/* \
|
||||
|
||||
+6
-4
@@ -31,7 +31,8 @@
|
||||
},
|
||||
"pip-compile": {
|
||||
"managerFilePatterns": [
|
||||
"/^requirements-dev\\.lock$/"
|
||||
"/^requirements-dev\\.lock$/",
|
||||
"/^requirements-molecule\\.lock$/"
|
||||
]
|
||||
},
|
||||
"pre-commit": {
|
||||
@@ -53,9 +54,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 interpreters of the ci and molecule-controller images (their Dockerfiles). 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.+!_-]*)"
|
||||
@@ -124,7 +126,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 (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. The group spans requirements-dev.lock and requirements-molecule.lock, so one pull request moves both ansible-core pins, which check_image_versions.py pins holds equal.",
|
||||
"groupName": "ansible tooling",
|
||||
"matchDatasources": [
|
||||
"pypi"
|
||||
|
||||
@@ -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.0 \
|
||||
--hash=sha256:5e48f66e97ce03ba1e9cfdf4a3667db499e960543c91bb62f530c6cd6337dd9b \
|
||||
--hash=sha256:706bb3d9a34e1531cfe1cda294974aad4ccba70af3ecb2d434266e0df73b0c09
|
||||
# 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
|
||||
@@ -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.0
|
||||
# The Docker driver, with the docker Python SDK it and the community.docker modules of its playbooks use.
|
||||
molecule-plugins[docker]==26.11.0
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
|
||||
@@ -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.
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -7,3 +7,4 @@
|
||||
# Required for `backend = systemd` jails (journalmatch), e.g. gitea's.
|
||||
- python3-systemd
|
||||
state: present
|
||||
register: __fail2ban_install
|
||||
@@ -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'
|
||||
@@ -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]
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
@@ -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"
|
||||
@@ -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
|
||||
@@ -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.
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
# Constant, not an input: the package that carries mount.nfs on Debian and Ubuntu.
|
||||
__nfs_client_package: nfs-common
|
||||
@@ -134,8 +134,8 @@ The scenario `molecule/default/` runs in CI only, on two platforms: `${MOLECULE_
|
||||
- Verify checks the installed and removed packages, the journal size cap, the apt settings in `20auto-upgrades` and `50unattended-upgrades`, the locale, and that systemd loaded the `apt-daily.service` timeout.
|
||||
- Verify checks the tmux snippet: root-owned, valid shell, the session and quoted window command, no effect without a terminal, a session name or window command ending in a newline refused, and the file removed when autostart is off.
|
||||
- Verify refuses bad items in `system_baseline_extra_packages` and `system_baseline_extra_remove_packages` (whitespace, a null, an empty string, a trailing minus, upper case, a bare string) and a package that one input installs and another purges; converge applies the `ubuntu_lxc` profile with `jq` as an extra package and `ed` as an extra removal; verify checks that `jq` is installed, `ed` is gone and the profile's packages are still there, and that an extra `tmux` installs the snippet where a flat list without it installs none.
|
||||
- Verify also checks that a bad `system_baseline_apt_tmpdir` (under `/tmp` or `/var/tmp`, relative, with `..`, empty) is refused in the main flow and in the `update` entry point. It reads `tasks/update.yml` and checks that the scratch directory is created with mode `0700`, that both apt tasks set `TMPDIR` to it, and that the connection is reset afterwards: the scenario skips the `update` tag, so the upgrade itself never runs there.
|
||||
- Verify runs the `update` entry point in check mode on the Ubuntu container with `system_baseline_system_type: pve` and a `pvesh` stub, in seven cases (a running, a finished or no vzdump task, the input off, `ubuntu_lxc`), and asserts the fact that decides the upgrade and that `pvesh` was run, with `--source active`, only when it should be. It does not assert that the apt task itself was skipped. The stub stands for the real answer, which no CI image has.
|
||||
- Verify also checks that a bad `system_baseline_apt_tmpdir` (under `/tmp` or `/var/tmp`, relative, with `..`, empty) is refused in the main flow and in the `update` entry point. It reads `tasks/update.yml` and checks that the scratch directory is created with mode `0700`, that both apt tasks set `TMPDIR` to it, that the connection is reset afterwards, and that the vzdump guard is imported before the upgrade, whose `when` reads the guard's fact: the scenario skips the `update` tag, so the upgrade itself never runs there.
|
||||
- Verify runs the vzdump guard in check mode on the Ubuntu container with `system_baseline_system_type: pve` and a `pvesh` stub, in seven cases (a running, a finished or no vzdump task, the input off, `ubuntu_lxc`); six run the guard's task file alone and the `ubuntu_lxc` case runs the whole `update` entry point. Each case asserts the fact that decides the upgrade and that `pvesh` was run, with `--source active`, only when it should be. It does not assert that the apt task itself was skipped. The stub stands for the real answer, which no CI image has.
|
||||
- Verify ends by running the role once with `system_baseline_journal_max_use: ""` after removing the drop-in, and asserts that no drop-in is written and that `systemd-journald` was not restarted.
|
||||
- Verify runs the `reboot` entry point with `system_baseline_reboot_if_required: false`, without and with `/var/run/reboot-required`, and checks the fact and that the host did not reboot.
|
||||
- The `pve` origins pin is applied to the Ubuntu container and read back with `apt-config dump`, then removed again. The package blacklist is written, read back as a list, left alone by a second run and removed by an empty list.
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
- name: Converge the LXC profile
|
||||
hosts: all
|
||||
gather_facts: true
|
||||
gather_subset: [min]
|
||||
vars:
|
||||
system_baseline_system_type: ubuntu_lxc
|
||||
system_baseline_extra_packages: [jq]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
# One case of the vzdump guard: a pvesh stub answers with system_baseline_case_answer, the update entry point runs in check mode, and the
|
||||
# fact that decides the upgrade, and whether pvesh was asked at all, are compared with what the case expects. Kept outside the role's own tasks:
|
||||
# no CI image is a Proxmox node, so the stub stands for the real `pvesh get /nodes/<node>/tasks` answer.
|
||||
# One case of the vzdump guard: a pvesh stub answers with system_baseline_case.answer, the role's tasks_from file (the guard alone unless the
|
||||
# case names update) runs in check mode, and the fact that decides the upgrade, and whether pvesh was asked at all, are compared with what the
|
||||
# case expects. Kept outside the role's own tasks: no CI image is a Proxmox node, so the stub stands for the real `pvesh get` answer.
|
||||
- name: Write the pvesh stub
|
||||
check_mode: false
|
||||
ansible.builtin.copy:
|
||||
@@ -14,8 +14,9 @@
|
||||
{{ system_baseline_case.answer | to_json }}
|
||||
JSON
|
||||
|
||||
- name: Create the apt scratch directory, which a check mode run does not
|
||||
- name: Create the apt scratch directory, which a check mode run of the update entry point does not
|
||||
check_mode: false
|
||||
when: system_baseline_case.tasks_from | default('vzdump_guard') == 'update'
|
||||
ansible.builtin.file:
|
||||
path: /var/cache/system-baseline-apt-tmp
|
||||
state: directory
|
||||
@@ -26,13 +27,13 @@
|
||||
path: /var/tmp/pvesh-calls
|
||||
state: absent
|
||||
|
||||
- name: Run the update entry point in check mode
|
||||
- name: Run the case's tasks in check mode
|
||||
check_mode: true
|
||||
block:
|
||||
- name: Include system_baseline, tasks_from update
|
||||
- name: Include system_baseline, tasks_from {{ system_baseline_case.tasks_from | default('vzdump_guard') }}
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.system_baseline
|
||||
tasks_from: update
|
||||
tasks_from: "{{ system_baseline_case.tasks_from | default('vzdump_guard') }}"
|
||||
vars:
|
||||
system_baseline_system_type: "{{ system_baseline_case.type }}"
|
||||
system_baseline_skip_upgrade_during_vzdump: "{{ system_baseline_case.input }}"
|
||||
|
||||
@@ -464,6 +464,19 @@
|
||||
- system_baseline_verify_update_tasks is search('(?m)^ ansible.builtin.meta:\sreset_connection$')
|
||||
quiet: true
|
||||
|
||||
# The guard cases below run vzdump_guard.yml alone, so this holds the wiring: the guard is imported before the upgrade, and the upgrade
|
||||
# task's when reads the guard's fact.
|
||||
- name: The vzdump guard is imported before the upgrade, and the upgrade waits on its fact
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- >-
|
||||
system_baseline_verify_update_tasks is search('(?ms)^ ansible\.builtin\.import_tasks:\svzdump_guard\.yml$'
|
||||
~ '.*^- name:\sUpdate & upgrade apt packages$')
|
||||
- >-
|
||||
system_baseline_verify_update_tasks is search('(?m)^- name:\sUpdate & upgrade apt packages\n(?: .*\n)*?'
|
||||
~ ' - not \(__system_baseline_vzdump_running \| default\(false\)\)$')
|
||||
quiet: true
|
||||
|
||||
# The reboot entry point is a supported interface: with system_baseline_reboot_if_required
|
||||
# false it only sets system_baseline_reboot_required. Here and not in converge, because it
|
||||
# creates and removes the marker file, which the idempotence run would report as a change.
|
||||
@@ -471,6 +484,7 @@
|
||||
- name: The reboot entry point only computes the fact when told not to reboot
|
||||
hosts: all
|
||||
gather_facts: true
|
||||
gather_subset: [min]
|
||||
tasks:
|
||||
- name: Remove the reboot marker
|
||||
ansible.builtin.file:
|
||||
@@ -785,7 +799,8 @@
|
||||
tags: always
|
||||
|
||||
# The vzdump guard (system_baseline_skip_upgrade_during_vzdump): a running backup is a vzdump task without an endtime. With the input off, or on
|
||||
# a system type other than pve, pvesh is never run. Only the decision is asserted: the upgrade itself is not run in CI.
|
||||
# a system type other than pve, pvesh is never run. Only the decision is asserted: the upgrade itself is not run in CI. The cases run the guard
|
||||
# alone; the last one runs the update entry point, so it still runs end to end in check mode.
|
||||
- name: The vzdump guard skips the upgrade only for a running backup on a pve node
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
@@ -801,7 +816,7 @@
|
||||
- {type: pve, input: true, running: false, asked: true, answer: [{type: qmstart, upid: b, starttime: 1}]}
|
||||
- {type: pve, input: true, running: false, asked: true, answer: []}
|
||||
- {type: pve, input: false, running: false, asked: false, answer: [{type: vzdump, upid: a, starttime: 1}]}
|
||||
- {type: ubuntu_lxc, input: true, running: false, asked: false, answer: [{type: vzdump, upid: a, starttime: 1}]}
|
||||
- {type: ubuntu_lxc, input: true, running: false, asked: false, answer: [{type: vzdump, upid: a, starttime: 1}], tasks_from: update}
|
||||
|
||||
# An empty system_baseline_journal_max_use leaves journald alone: with the drop-in gone, the role neither writes it again nor restarts
|
||||
# systemd-journald. It runs last, because it applies the role with its defaults (the converge's tmux autostart and apt-daily timeout are
|
||||
@@ -810,6 +825,7 @@
|
||||
- name: An empty journal size cap leaves journald alone
|
||||
hosts: all
|
||||
gather_facts: true
|
||||
gather_subset: [min]
|
||||
tasks:
|
||||
- name: Remove the drop-in and its directory
|
||||
ansible.builtin.file:
|
||||
|
||||
@@ -12,11 +12,13 @@
|
||||
manager: auto
|
||||
become: true
|
||||
|
||||
# One apt call for every unwanted package that is installed, skipped when none is.
|
||||
- name: Remove unnecessary packages if installed
|
||||
ansible.builtin.package:
|
||||
name: "{{ item }}"
|
||||
name: "{{ __system_baseline_purge_present }}"
|
||||
state: absent
|
||||
purge: true
|
||||
loop: "{{ __system_baseline_purge_packages }}"
|
||||
when: item in ansible_facts.packages
|
||||
vars:
|
||||
__system_baseline_purge_present: "{{ __system_baseline_purge_packages | select('in', ansible_facts.packages) | list }}"
|
||||
when: __system_baseline_purge_present | length > 0
|
||||
become: true
|
||||
@@ -9,11 +9,11 @@
|
||||
- name: Check if reboot is required (Debian)
|
||||
ansible.builtin.stat:
|
||||
path: /var/run/reboot-required
|
||||
register: system_baseline_reboot_required_file
|
||||
register: __system_baseline_reboot_required_file
|
||||
|
||||
- name: Set system_baseline_reboot_required fact
|
||||
ansible.builtin.set_fact:
|
||||
system_baseline_reboot_required: "{{ system_baseline_reboot_required_file.stat.exists }}"
|
||||
system_baseline_reboot_required: "{{ __system_baseline_reboot_required_file.stat.exists }}"
|
||||
|
||||
- name: Reboot the server if required
|
||||
ansible.builtin.reboot:
|
||||
|
||||
@@ -60,6 +60,6 @@
|
||||
- name: Validate unattended-upgrades config
|
||||
become: true
|
||||
ansible.builtin.command: unattended-upgrades --dry-run --debug
|
||||
register: system_baseline_unattended_check
|
||||
register: __system_baseline_unattended_check
|
||||
changed_when: false
|
||||
failed_when: system_baseline_unattended_check.rc != 0
|
||||
failed_when: __system_baseline_unattended_check.rc != 0
|
||||
@@ -21,57 +21,9 @@
|
||||
mode: "0700"
|
||||
become: true
|
||||
|
||||
# Opt-in guard (system_baseline_skip_upgrade_during_vzdump, pve only): an upgrade can restart Proxmox services while a backup holds a snapshot
|
||||
# of a guest, so the upgrade waits for the next run when this node has a vzdump task without an end time. Both tasks read state only, so
|
||||
# they run in check mode too; they are skipped where the upgrade is (a dry run of the main flow). `localhost` is the node's own alias, so no
|
||||
# node name and no gathered facts are needed. --source active lists the running tasks: the default, archive, holds only finished ones. The
|
||||
# fact is set on every run, so a guard that is off or skipped never inherits the answer of an earlier run in the same play.
|
||||
- name: List the recent Proxmox tasks of this node
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- pvesh
|
||||
- get
|
||||
- /nodes/localhost/tasks
|
||||
- --source
|
||||
- active
|
||||
- --limit
|
||||
- "0"
|
||||
- --output-format
|
||||
- json
|
||||
register: __system_baseline_pve_tasks
|
||||
changed_when: false
|
||||
check_mode: false
|
||||
become: true
|
||||
when:
|
||||
- system_baseline_skip_upgrade_during_vzdump | bool
|
||||
- system_baseline_system_type | default('') == 'pve'
|
||||
- not (ansible_check_mode and __system_baseline_main_flow | default(false))
|
||||
|
||||
- name: Check that pvesh answered with a list of tasks
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- __system_baseline_pve_tasks.stdout | from_json is sequence
|
||||
- __system_baseline_pve_tasks.stdout | from_json is not string
|
||||
- __system_baseline_pve_tasks.stdout | from_json is not mapping
|
||||
fail_msg: pvesh did not answer with a JSON list of tasks, so the role cannot tell whether a backup is running.
|
||||
quiet: true
|
||||
when: __system_baseline_pve_tasks is not skipped
|
||||
|
||||
- name: Note whether a vzdump backup is running on this node
|
||||
ansible.builtin.set_fact:
|
||||
__system_baseline_vzdump_running: >-
|
||||
{{ __system_baseline_pve_tasks is not skipped
|
||||
and (__system_baseline_pve_tasks.stdout | from_json
|
||||
| selectattr('type', 'equalto', 'vzdump')
|
||||
| rejectattr('endtime', 'defined')
|
||||
| list | length) > 0 }}
|
||||
|
||||
- name: Skip the upgrade while a vzdump backup is running
|
||||
ansible.builtin.debug:
|
||||
msg: >-
|
||||
Skipping the apt upgrade on {{ inventory_hostname }}: a vzdump task is running on this node. Run the update again after the backup
|
||||
has finished.
|
||||
when: __system_baseline_vzdump_running | default(false)
|
||||
# import_tasks, not include_tasks: the update tag, the caller's when and __system_baseline_main_flow must reach the guard's tasks.
|
||||
- name: Decide whether a vzdump backup holds back the upgrade
|
||||
ansible.builtin.import_tasks: vzdump_guard.yml
|
||||
|
||||
# safe is the apt module's name for the plain upgrade (apt-get upgrade --with-new-pkgs), what `true` meant here before; dist runs
|
||||
# apt-get dist-upgrade (profile key apt_upgrade, `pve` by default).
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
---
|
||||
# Opt-in guard (system_baseline_skip_upgrade_during_vzdump, pve only): an upgrade can restart Proxmox services while a backup holds a snapshot
|
||||
# of a guest, so the upgrade waits for the next run when this node has a vzdump task without an end time. Both tasks read state only, so
|
||||
# they run in check mode too; they are skipped where the upgrade is (a dry run of the main flow). `localhost` is the node's own alias, so no
|
||||
# node name and no gathered facts are needed. --source active lists the running tasks: the default, archive, holds only finished ones. The
|
||||
# fact is set on every run, so a guard that is off or skipped never inherits the answer of an earlier run in the same play.
|
||||
- name: List the recent Proxmox tasks of this node
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- pvesh
|
||||
- get
|
||||
- /nodes/localhost/tasks
|
||||
- --source
|
||||
- active
|
||||
- --limit
|
||||
- "0"
|
||||
- --output-format
|
||||
- json
|
||||
register: __system_baseline_pve_tasks
|
||||
changed_when: false
|
||||
check_mode: false
|
||||
become: true
|
||||
when:
|
||||
- system_baseline_skip_upgrade_during_vzdump | bool
|
||||
- system_baseline_system_type | default('') == 'pve'
|
||||
- not (ansible_check_mode and __system_baseline_main_flow | default(false))
|
||||
|
||||
- name: Check that pvesh answered with a list of tasks
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- __system_baseline_pve_tasks.stdout | from_json is sequence
|
||||
- __system_baseline_pve_tasks.stdout | from_json is not string
|
||||
- __system_baseline_pve_tasks.stdout | from_json is not mapping
|
||||
fail_msg: pvesh did not answer with a JSON list of tasks, so the role cannot tell whether a backup is running.
|
||||
quiet: true
|
||||
when: __system_baseline_pve_tasks is not skipped
|
||||
|
||||
- name: Note whether a vzdump backup is running on this node
|
||||
ansible.builtin.set_fact:
|
||||
__system_baseline_vzdump_running: >-
|
||||
{{ __system_baseline_pve_tasks is not skipped
|
||||
and (__system_baseline_pve_tasks.stdout | from_json
|
||||
| selectattr('type', 'equalto', 'vzdump')
|
||||
| rejectattr('endtime', 'defined')
|
||||
| list | length) > 0 }}
|
||||
|
||||
- name: Skip the upgrade while a vzdump backup is running
|
||||
ansible.builtin.debug:
|
||||
msg: >-
|
||||
Skipping the apt upgrade on {{ inventory_hostname }}: a vzdump task is running on this node. Run the update again after the backup
|
||||
has finished.
|
||||
when: __system_baseline_vzdump_running | default(false)
|
||||
@@ -80,14 +80,14 @@ Update or remove: pass `-e traefik_update=true`, or `-e "traefik_remove=true tra
|
||||
|
||||
## Tests
|
||||
|
||||
The `default` molecule scenario runs in CI only, on two platforms: `${MOLECULE_IMAGE}` (Ubuntu 24.04) and `${MOLECULE_IMAGE_2604}` (Ubuntu 26.04). It needs outbound network: the role installs packages with apt and the converge downloads the real Traefik release from GitHub. Converge runs `mortis.kamino.ufw`, then the role. It runs `check` before the converge (on a fresh host) and after it (on the configured host). Verify covers:
|
||||
The `default` molecule scenario runs in CI only, on two platforms: `${MOLECULE_IMAGE}` (Ubuntu 24.04) and `${MOLECULE_IMAGE_2604}` (Ubuntu 26.04). It needs outbound network: the role installs packages with apt and the converge downloads the real Traefik release from GitHub. Prepare runs `mortis.kamino.ufw`, so converge runs only the role. It runs `check` before the converge (on a fresh host) and after it (on the configured host). Verify covers:
|
||||
|
||||
- The input guards, first: one play expects the failure message containing `unauthenticated Traefik dashboard` (the dashboard guard: enabled without valid `user:hash` users); the next expects `collides with the middleware`, raised by the dashboard-auth collision assert, which runs whenever users are set, also with the dashboard off.
|
||||
- The install: the pinned version runs, and only the binary is left from the archive.
|
||||
- Files: `traefik.env` mode 0600 owned by root, `dynamic.yml` mode 0600 owned by `traefik`, `traefik.yml` mode 0600, the binary mode 0755; the logrotate configuration, which `logrotate --debug` parses.
|
||||
- Rendering: the ACME resolvers render when set and are absent when empty; the dashboard is off by default with the extra app routed, and renders behind basicAuth when enabled (a template render, not a running dashboard).
|
||||
- The service: running and enabled with `NoNewPrivileges`, `MemoryDenyWriteExecute` and `CAP_NET_BIND_SERVICE`, listening on 80 and 443 and redirecting http to https; ufw allows 80 and 443 next to SSH, with the traefik owner tag, in order.
|
||||
- The update path: it updates to another release and back with `traefik_update` (download from local `file://` stand-in releases, checksum check and swap) and asserts the version, an active unit and no leftovers. It leaves the stand-in stub installed, so nothing after it asserts real Traefik behaviour.
|
||||
- The update path: it updates to another release with `traefik_update` (download from local `file://` stand-in releases, checksum check and swap) and asserts the version, an active unit and no leftovers. It leaves the stand-in stub installed, so nothing after it asserts real Traefik behaviour.
|
||||
- The remove path, last: unit and binary are deleted, the service is no longer active, and only the traefik ufw rules are removed.
|
||||
|
||||
The scenario disables the namespace-based sandboxing and the `User=` switch with a drop-in because its container is unprivileged, so that sandboxing is not covered by CI. Certificate issuance is not covered: the Cloudflare credentials are dummies.
|
||||
@@ -96,6 +96,7 @@ The scenario disables the namespace-based sandboxing and the `User=` switch with
|
||||
|
||||
- Idempotent: yes.
|
||||
- Check mode: `--check` is the supported preview; a play-level `check_mode: true` is not supported. On a host without the Traefik binary, the ACME file permissions, the service start and its running check, the `Restart Traefik` handler and the `traefik_update` tasks are skipped under `--check`, because nothing is extracted and the unit file is only simulated.
|
||||
- The role does not refresh an APT cache younger than an hour, so a package from a source you add just before the role (`ansible.builtin.deb822_repository` does not refresh) needs your own cache refresh first.
|
||||
- The role is not a state selector. `main.yml` runs prerequisites and configure unless `traefik_remove` is true; install runs only when the binary is absent; update only when `traefik_update` is true; remove only when `traefik_remove` is true, and then every other task in `main.yml` is skipped.
|
||||
- Download integrity: the archive SHA-256 must appear in the release's checksum file or the play fails.
|
||||
- Secrets: `traefik.env` (mode 0600, root) and `dynamic.yml` are rendered with `no_log: true`, and no backups are kept, so `--diff` never shows them. `dynamic.yml` may hold dashboard htpasswd hashes.
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
---
|
||||
# Role variables come from the inventory group_vars in molecule.yml, so the idempotence step
|
||||
# reruns converge with identical configuration; verify's plays override only what they test.
|
||||
# The base ufw play comes first: traefik passes its rules through the mortis.kamino.ufw
|
||||
# service_rules entry point, which needs ufw installed and active. ufw_rules comes from the
|
||||
# same group_vars (the SSH allow rule the lock-out guard requires).
|
||||
# mortis.kamino.ufw runs in prepare.yml, so only traefik counts toward idempotence. Facts are
|
||||
# off: neither the role nor the roles it includes reads any.
|
||||
- name: Converge
|
||||
hosts: all
|
||||
gather_facts: true
|
||||
gather_facts: false
|
||||
roles:
|
||||
- role: mortis.kamino.ufw
|
||||
- role: mortis.kamino.traefik
|
||||
@@ -3,7 +3,7 @@
|
||||
# (MOLECULE_IMAGE) and molecule-ubuntu2604 (MOLECULE_IMAGE_2604) images, pinned in
|
||||
# .gitea/workflows/molecule.yml. Needs outbound network, unlike most scenarios: the role installs
|
||||
# packages with apt and the converge downloads the Traefik release from GitHub (verify's update
|
||||
# path uses file:// stand-ins built by prepare.yml). No privileged mode: systemd needs a writable
|
||||
# path uses a file:// stand-in built by prepare.yml). No privileged mode: systemd needs a writable
|
||||
# cgroup and the firewall tools need NET_ADMIN.
|
||||
driver:
|
||||
name: docker
|
||||
@@ -44,9 +44,10 @@ platforms:
|
||||
- apparmor=unconfined
|
||||
provisioner:
|
||||
name: ansible
|
||||
# One source for every play in converge.yml and verify.yml. The role renders traefik.yml before
|
||||
# its dashboard-auth collision check, so that guard play with other values would change it (and
|
||||
# restart Traefik) before verify's assertions; converge's values must also stay fixed for idempotence.
|
||||
# One source for the prepare plays that read them, converge.yml and verify.yml. The role renders
|
||||
# traefik.yml before its dashboard-auth collision check, so that guard play with other values
|
||||
# would change it (and restart Traefik) before verify's assertions; converge's values must also
|
||||
# stay fixed for idempotence.
|
||||
inventory:
|
||||
group_vars:
|
||||
all:
|
||||
@@ -55,8 +56,8 @@ provisioner:
|
||||
traefik_cloudflare_email: [email protected]
|
||||
traefik_cloudflare_api_token: molecule-not-a-token
|
||||
traefik_domain: example.test
|
||||
# Any release other than the role default: verify's update path goes there and back,
|
||||
# from the stand-ins prepare.yml builds.
|
||||
# Any release other than the role default: verify's update path goes there, from the
|
||||
# stand-in prepare.yml builds.
|
||||
traefik_verify_other_version: v3.7.18
|
||||
ufw_rules:
|
||||
- {rule: allow, port: 22, proto: tcp, comment: ssh}
|
||||
|
||||
@@ -41,26 +41,34 @@
|
||||
ReadWritePaths=
|
||||
User=
|
||||
|
||||
# Stand-in releases for verify's update path, behind file:// URLs: the role's download, checksum
|
||||
# check and swap run unchanged, without fetching two more real releases per host. The converge
|
||||
# traefik passes its rules through the mortis.kamino.ufw service_rules entry point, which needs ufw
|
||||
# installed and active. ufw_rules comes from the inventory group_vars (the SSH allow rule the
|
||||
# lock-out guard requires); the ufw scenario tests that role, so it runs once here, not in converge.
|
||||
- name: Install and enable ufw
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
roles:
|
||||
- role: mortis.kamino.ufw
|
||||
|
||||
# A stand-in release for verify's update path, behind a file:// URL: the role's download, checksum
|
||||
# check and swap run unchanged, without fetching another real release per host. The converge
|
||||
# still downloads the real role default from GitHub.
|
||||
- name: Prepare the stand-in releases
|
||||
- name: Prepare the stand-in release
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
vars_files:
|
||||
- ../../defaults/main.yml
|
||||
vars:
|
||||
traefik_test_release: "{{ traefik_verify_other_version }}"
|
||||
tasks:
|
||||
- name: Create a directory per stand-in release
|
||||
- name: Create the stand-in release directory
|
||||
ansible.builtin.file:
|
||||
path: "/opt/molecule-download/{{ traefik_test_release }}"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
loop: ["{{ traefik_verify_other_version }}", "{{ traefik_version }}"]
|
||||
loop_control:
|
||||
loop_var: traefik_test_release
|
||||
|
||||
# Answers `version` like Traefik and otherwise stays up like the service.
|
||||
- name: Write the stand-in binaries
|
||||
- name: Write the stand-in binary
|
||||
ansible.builtin.copy:
|
||||
dest: "/opt/molecule-download/{{ traefik_test_release }}/traefik"
|
||||
mode: "0755"
|
||||
@@ -70,25 +78,16 @@
|
||||
version) echo "Version: {{ traefik_test_release | regex_replace('^v', '') }}" ;;
|
||||
*) exec sleep infinity ;;
|
||||
esac
|
||||
loop: ["{{ traefik_verify_other_version }}", "{{ traefik_version }}"]
|
||||
loop_control:
|
||||
loop_var: traefik_test_release
|
||||
|
||||
- name: Pack the stand-in archives
|
||||
- name: Pack the stand-in archive
|
||||
ansible.builtin.command:
|
||||
argv: [tar, -czf, "{{ traefik_test_archive }}", -C, "/opt/molecule-download/{{ traefik_test_release }}", traefik]
|
||||
creates: "{{ traefik_test_archive }}"
|
||||
vars:
|
||||
traefik_test_archive: "/opt/molecule-download/{{ traefik_test_release }}/traefik_{{ traefik_test_release }}_{{ traefik_os }}_{{ traefik_arch }}.tar.gz"
|
||||
loop: ["{{ traefik_verify_other_version }}", "{{ traefik_version }}"]
|
||||
loop_control:
|
||||
loop_var: traefik_test_release
|
||||
|
||||
- name: Write the checksums files in the release format
|
||||
- name: Write the checksums file in the release format
|
||||
ansible.builtin.shell:
|
||||
cmd: sha256sum traefik_*.tar.gz > traefik_{{ traefik_test_release }}_checksums.txt
|
||||
chdir: "/opt/molecule-download/{{ traefik_test_release }}"
|
||||
creates: "traefik_{{ traefik_test_release }}_checksums.txt"
|
||||
loop: ["{{ traefik_verify_other_version }}", "{{ traefik_version }}"]
|
||||
loop_control:
|
||||
loop_var: traefik_test_release
|
||||
@@ -293,11 +293,11 @@
|
||||
traefik_ufw_key_443: "{{ ('allow|443|||||in' | hash('sha1'))[:10] }}"
|
||||
traefik_ufw_tagged: "{{ traefik_ufw_added.stdout_lines | select('match', '^ufw ') | select('search', 'ansible-ufw') | list }}"
|
||||
|
||||
# A version bump through the update path and mortis.kamino._binary_update: down to another
|
||||
# release and back to the role default, both with traefik_update, from prepare.yml's stand-ins.
|
||||
# After the idempotence step, because each run changes the binary, and before the remove path.
|
||||
# A version bump through the update path and mortis.kamino._binary_update: to another release
|
||||
# with traefik_update, from prepare.yml's stand-in. One bump covers the download, checksum check
|
||||
# and swap. After the idempotence step, because it changes the binary, and before the remove path.
|
||||
# It leaves the stand-in stub installed, so nothing after it may assert real Traefik behaviour.
|
||||
- name: Verify the update path with stand-in releases
|
||||
- name: Verify the update path with a stand-in release
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
vars_files:
|
||||
@@ -309,13 +309,10 @@
|
||||
fail_msg: Move traefik_verify_other_version off the role default ({{ traefik_version }}).
|
||||
quiet: true
|
||||
|
||||
- name: Update to the other release, then back to the role default
|
||||
- name: Update to the other release
|
||||
ansible.builtin.include_tasks: tasks/update_and_check.yml
|
||||
loop:
|
||||
- "{{ traefik_verify_other_version }}"
|
||||
- "{{ traefik_version }}"
|
||||
loop_control:
|
||||
loop_var: traefik_verify_target
|
||||
vars:
|
||||
traefik_verify_target: "{{ traefik_verify_other_version }}"
|
||||
|
||||
# The remove path. Last on purpose: it destroys what the plays above verify, and it runs
|
||||
# once, outside the idempotence step (a converge play that changed state would fail that step).
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
- logrotate
|
||||
state: present
|
||||
update_cache: true
|
||||
cache_valid_time: 3600
|
||||
tags: [traefik, prereqs, always]
|
||||
|
||||
- name: Create Traefik group
|
||||
|
||||
+3
-1
@@ -145,6 +145,8 @@ The scenario `molecule/default/` runs in CI only, on two platforms: `${MOLECULE_
|
||||
- Verify checks `before.rules`: the loopback accept, the INVALID-state drop behind its logging rule and in its place among the input rules.
|
||||
- Verify runs `service_rules` under the `check_mode` keyword and checks that the rule list did not change.
|
||||
|
||||
The scenario `molecule/check-absent/` runs on the same two platforms: prepare purges ufw and refreshes the APT cache, then `check` runs the main entry point and `service_rules` under `--check`, which must pass with ufw not installed. Nothing is applied.
|
||||
|
||||
Not covered: `ufw_before_rules` entries and `ufw_sysctl_overrides` are never set, and `orphan_rules` runs in check mode only under `--check` (the `check` steps), not under the `check_mode` keyword.
|
||||
|
||||
## Notes
|
||||
@@ -156,5 +158,5 @@ Not covered: `ufw_before_rules` entries and `ufw_sysctl_overrides` are never set
|
||||
- Rule schema is asserted before anything changes: `rule` must be allow, deny, reject or limit, `port` a positive integer, `proto` tcp or udp, and each rule needs `port`, `from`, `to` or `interface`.
|
||||
- UFW is only re-enabled when `ufw status verbose` shows it inactive or the logging line differs, because the module rewrites rules and re-applies sysctl on every call.
|
||||
- The `Reload UFW` handler runs `ufw reload`.
|
||||
- Check mode: `--check` previews a host where ufw is already installed; a play-level `check_mode: true` is not supported. On a host without ufw it fails at the default policy tasks: the package is not installed under `--check`, and the module needs the `ufw` binary.
|
||||
- Check mode: `--check` is the supported preview; a play-level `check_mode: true` is not supported. On a host without ufw the preview reports the install and skips the configuration (`before.rules`, default policies, rules, enable), which needs the `ufw` binary.
|
||||
- `no_log` is not used: the role handles no secrets.
|
||||
@@ -0,0 +1,26 @@
|
||||
---
|
||||
# Run only under --check (the check step): ufw is not installed, so the tasks that need it skip.
|
||||
- name: Converge on a host without ufw
|
||||
hosts: all
|
||||
# The role reads no facts; ufw_ssh_port defaults from ansible_port.
|
||||
gather_facts: false
|
||||
roles:
|
||||
- role: mortis.kamino.ufw
|
||||
vars:
|
||||
ufw_rules:
|
||||
- {rule: allow, port: 22, proto: tcp, comment: ssh}
|
||||
- {rule: allow, port: 8080, proto: tcp, comment: web}
|
||||
|
||||
# The entry point a service role calls: its `ufw status` read fails on this host, so it must skip.
|
||||
- name: Converge the rules of a service on a host without ufw
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Rules of one service through the entry point
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.ufw
|
||||
tasks_from: service_rules
|
||||
vars:
|
||||
ufw_service_name: svc_a
|
||||
ufw_service_rules:
|
||||
- {rule: allow, port: 8001, proto: tcp, comment: alpha web}
|
||||
@@ -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 ufw and refreshes the APT cache the image deletes.
|
||||
driver:
|
||||
name: docker
|
||||
platforms:
|
||||
- name: ${KAMINO_RUN_ID:-local}-ufw-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}-ufw-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 ufw (--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 ufw
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Purge ufw
|
||||
ansible.builtin.apt:
|
||||
name: ufw
|
||||
state: absent
|
||||
purge: true
|
||||
|
||||
- name: Refresh the APT cache
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
@@ -2,7 +2,8 @@
|
||||
# Only runs that apply the role; the refusal cases are in verify.yml.
|
||||
- name: Converge with an SSH rule and service rules
|
||||
hosts: all
|
||||
gather_facts: true
|
||||
# The role reads no facts; ufw_ssh_port defaults from ansible_port.
|
||||
gather_facts: false
|
||||
roles:
|
||||
- role: mortis.kamino.ufw
|
||||
vars:
|
||||
@@ -17,14 +18,15 @@
|
||||
# no proto: both protocols, and the guard must cope with the key missing
|
||||
- {rule: allow, port: 9090, comment: metrics}
|
||||
|
||||
# The service_rules entry point. prepare.yml stored a stale rule for svc_c,
|
||||
# a rule of the removed service svc_d and a stale rule for svc_e, so every pass here
|
||||
# is a no-op after the first one, purge included.
|
||||
# The service_rules entry point. prepare.yml stored a stale rule for svc_a, stale rules for
|
||||
# svc_c and a rule of the removed service svc_d, so every pass here is a no-op after the
|
||||
# first one, purge included. svc_c purges after svc_a ran, so svc_a's stale rule surviving
|
||||
# proves a purge touches only its own owner.
|
||||
- name: Converge the rules of several services through the entry point
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Two rules for svc_a
|
||||
- name: Keep the stale rule of svc_a because purging is off
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.ufw
|
||||
tasks_from: service_rules
|
||||
@@ -33,18 +35,16 @@
|
||||
ufw_service_rules:
|
||||
- {rule: allow, port: 8001, proto: tcp, comment: alpha web}
|
||||
- {rule: allow, port: 8002, proto: udp, from: 10.1.0.0/16, comment: alpha dns}
|
||||
|
||||
- name: Two rules for svc_b, one without a comment
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.ufw
|
||||
tasks_from: service_rules
|
||||
vars:
|
||||
ufw_service_name: svc_b
|
||||
ufw_service_rules:
|
||||
- {rule: allow, port: 8003, proto: tcp, comment: beta}
|
||||
# No comment and no proto: the tag alone, and both protocols.
|
||||
- {rule: deny, port: 8004}
|
||||
# A comment that mentions the SSH port on another port.
|
||||
- {rule: allow, port: 8022, proto: tcp, comment: forward to 22 here}
|
||||
- {rule: allow, port: 7201, proto: tcp, comment: epsilon}
|
||||
|
||||
- name: Keep one rule for svc_c and purge its stale rule
|
||||
# Of the stale rules, only 7001 and 7601 are single numeric ports; the SSH lookalike, the
|
||||
# rule with no port, the source-only rule and the range are kept as possible SSH paths.
|
||||
- name: Purge the stale rules of svc_c except those that may carry SSH
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.ufw
|
||||
tasks_from: service_rules
|
||||
@@ -53,6 +53,8 @@
|
||||
ufw_purge_stale: true
|
||||
ufw_service_rules:
|
||||
- {rule: allow, port: 7101, proto: tcp, comment: gamma}
|
||||
- {rule: allow, port: 7301, proto: tcp, comment: eta}
|
||||
- {rule: allow, port: 7602, proto: tcp, comment: desired}
|
||||
|
||||
- name: Remove svc_d, which deletes without ufw_purge_stale
|
||||
ansible.builtin.include_role:
|
||||
@@ -62,50 +64,6 @@
|
||||
ufw_service_name: svc_d
|
||||
ufw_service_state: absent
|
||||
|
||||
- name: Keep the stale rule of svc_e because purging is off
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.ufw
|
||||
tasks_from: service_rules
|
||||
vars:
|
||||
ufw_service_name: svc_e
|
||||
ufw_service_rules:
|
||||
- {rule: allow, port: 7201, proto: tcp, comment: epsilon}
|
||||
|
||||
- name: A comment that mentions the SSH port on another port
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.ufw
|
||||
tasks_from: service_rules
|
||||
vars:
|
||||
ufw_service_name: svc_g
|
||||
ufw_service_rules:
|
||||
- {rule: allow, port: 8022, proto: tcp, comment: forward to 22 here}
|
||||
|
||||
- name: Purge svc_h without touching its stale rule that looks like the SSH rule
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.ufw
|
||||
tasks_from: service_rules
|
||||
vars:
|
||||
ufw_service_name: svc_h
|
||||
ufw_purge_stale: true
|
||||
ufw_service_rules:
|
||||
- {rule: allow, port: 7301, proto: tcp, comment: eta}
|
||||
|
||||
- name: Purge svc_p but keep its stale rules that may carry SSH
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
# prepare.yml stored four stale rules for svc_p: a numeric port (deleted), and a rule
|
||||
# with no port, a source-only rule and a range, which are kept as possible SSH paths.
|
||||
- name: Keep one rule for svc_p and purge its stale rules
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.ufw
|
||||
tasks_from: service_rules
|
||||
vars:
|
||||
ufw_service_name: svc_p
|
||||
ufw_purge_stale: true
|
||||
ufw_service_rules:
|
||||
- {rule: allow, port: 7602, proto: tcp, comment: desired}
|
||||
|
||||
# The orphan_rules entry point. prepare.yml stored two rules of svc_o1, a rule of
|
||||
# svc_o2 that looks like the SSH rule, and a rule of svc_m. The managed owners below are
|
||||
# the ones used above plus svc_m (listed but never called), so svc_o1 and svc_o2 are
|
||||
@@ -118,14 +76,9 @@
|
||||
vars:
|
||||
ufw_converge_managed:
|
||||
- svc_a
|
||||
- svc_b
|
||||
- svc_c
|
||||
- svc_d
|
||||
- svc_e
|
||||
- svc_g
|
||||
- svc_h
|
||||
- svc_m
|
||||
- svc_p
|
||||
tasks:
|
||||
# The marker is written after the purge, so the expected counts are absolute on both
|
||||
# passes: svc_o1 holds 2 rules before the purge and 0 once the marker exists.
|
||||
@@ -138,9 +91,6 @@
|
||||
ansible.builtin.set_fact:
|
||||
ufw_conv_o1_initial: "{{ 0 if ufw_conv_marker.stat.exists else 2 }}"
|
||||
|
||||
- name: Assert it before the first case
|
||||
ansible.builtin.include_tasks: tasks/orphan_check.yml
|
||||
|
||||
- name: No managed owners given, purge requested
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.ufw
|
||||
@@ -148,9 +98,6 @@
|
||||
vars:
|
||||
ufw_purge_orphans: true
|
||||
|
||||
- name: Nothing was deleted without a list
|
||||
ansible.builtin.include_tasks: tasks/orphan_check.yml
|
||||
|
||||
- name: An empty list of managed owners, purge requested
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.ufw
|
||||
@@ -159,9 +106,6 @@
|
||||
ufw_managed_owners: []
|
||||
ufw_purge_orphans: true
|
||||
|
||||
- name: Nothing was deleted with an empty list
|
||||
ansible.builtin.include_tasks: tasks/orphan_check.yml
|
||||
|
||||
- name: Report the orphans only
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.ufw
|
||||
@@ -170,7 +114,8 @@
|
||||
ufw_managed_owners: "{{ ufw_converge_managed }}"
|
||||
ufw_purge_orphans: false
|
||||
|
||||
- name: Reporting deleted nothing
|
||||
# The counts are absolute, so one check proves none of the three cases above deleted.
|
||||
- name: The cases without a purge deleted nothing
|
||||
ansible.builtin.include_tasks: tasks/orphan_check.yml
|
||||
|
||||
- name: Purge the orphans
|
||||
|
||||
@@ -7,10 +7,12 @@
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
# The image keeps no APT lists, so the install refreshes them.
|
||||
- name: Install ufw
|
||||
ansible.builtin.package:
|
||||
ansible.builtin.apt:
|
||||
name: ufw
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
# An application profile whose name holds openssh, for the orphan seeds below.
|
||||
- name: Define an application profile named like SSH
|
||||
@@ -39,9 +41,9 @@
|
||||
proto: tcp
|
||||
comment: replaced
|
||||
|
||||
# Owners svc_c, svc_d and svc_e keep rules in converge.yml that these entries are
|
||||
# not part of: a stale rule to purge, a rule of a removed service, a stale rule
|
||||
# that is only reported.
|
||||
# Owners svc_a, svc_c and svc_d keep rules in converge.yml that these entries are
|
||||
# not part of: a stale rule that is only reported, stale rules to purge, a rule of
|
||||
# a removed service.
|
||||
- name: Store tagged rules that are no longer wanted
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
@@ -56,9 +58,10 @@
|
||||
# svc_c: the old spec of a rule whose port changed (key of allow|7001|tcp||||in)
|
||||
- {port: 7001, comment: "ansible-ufw[svc_c:128c086248]: old"}
|
||||
- {port: 7002, comment: "ansible-ufw[svc_d:abcdef0123]: gone"}
|
||||
- {port: 7003, comment: "ansible-ufw[svc_e:aaaaaaaaaa]: kept"}
|
||||
# svc_h: a stale rule that looks like an SSH rule, which a purge must skip
|
||||
- {port: 22, from: 10.9.0.0/16, comment: "ansible-ufw[svc_h:bbbbbbbbbb]: old"}
|
||||
# svc_a: a stale rule kept because svc_a does not purge, while svc_c's purge runs
|
||||
- {port: 7003, comment: "ansible-ufw[svc_a:aaaaaaaaaa]: kept"}
|
||||
# svc_c: a stale rule that looks like an SSH rule, which a purge must skip
|
||||
- {port: 22, from: 10.9.0.0/16, comment: "ansible-ufw[svc_c:bbbbbbbbbb]: old"}
|
||||
# orphan_rules: svc_o1 and svc_o2 are never listed as managed owners in converge.yml.
|
||||
# svc_o2's rule looks like the SSH rule and must survive a purge; svc_m is managed
|
||||
# but its role is never called, so its rule must survive too.
|
||||
@@ -73,11 +76,11 @@
|
||||
- {from: 10.20.0.0/24, comment: "ansible-ufw[svc_o3:5555555552]: source only"}
|
||||
- {port: "20:30", comment: "ansible-ufw[svc_o3:5555555553]: range over 22"}
|
||||
- {name: OrphanOpenSSH, comment: "ansible-ufw[svc_o3:5555555554]: openssh profile"}
|
||||
# service_rules purge of svc_p (converge.yml keeps only a rule for 7602): 7601 is stale
|
||||
# and deleted, the other three are stale and may carry SSH, so they stay.
|
||||
- {port: 7601, comment: "ansible-ufw[svc_p:6666666664]: stale numeric"}
|
||||
- {interface: wg0, direction: in, comment: "ansible-ufw[svc_p:6666666661]: no port"}
|
||||
- {from: 10.30.0.0/24, comment: "ansible-ufw[svc_p:6666666662]: source only"}
|
||||
- {port: "40:50", comment: "ansible-ufw[svc_p:6666666663]: range"}
|
||||
# svc_c again: 7601 is stale and deleted by its purge, the other three are stale and
|
||||
# may carry SSH, so they stay.
|
||||
- {port: 7601, comment: "ansible-ufw[svc_c:6666666664]: stale numeric"}
|
||||
- {interface: wg0, direction: in, comment: "ansible-ufw[svc_c:6666666661]: no port"}
|
||||
- {from: 10.30.0.0/24, comment: "ansible-ufw[svc_c:6666666662]: source only"}
|
||||
- {port: "40:50", comment: "ansible-ufw[svc_c:6666666663]: range"}
|
||||
loop_control:
|
||||
loop_var: ufw_prepare_rule
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
# Included by converge.yml and verify.yml after each orphan_rules case. The counts are
|
||||
# absolute: svc_o1 holds ufw_conv_o1_want rules (default ufw_conv_o1_initial: 2 before the
|
||||
# purge, 0 after), and the tagged total is 20 plus those. The 20: svc_a 2, svc_b 2, svc_c 1,
|
||||
# svc_e 2, svc_g 1, svc_h 2, svc_m 1, svc_o2 1, svc_o3 4 (kept orphans that may carry SSH),
|
||||
# svc_p 4 (its desired rule and three kept stale rules).
|
||||
# Included by converge.yml around the orphan_rules cases. The counts are absolute: svc_o1
|
||||
# holds ufw_conv_o1_want rules (default ufw_conv_o1_initial: 2 before the purge, 0 after),
|
||||
# and the tagged total is 20 plus those. The 20: svc_a 7 (six desired, one stale), svc_c 7
|
||||
# (three desired, four stale kept as possible SSH paths), svc_m 1, svc_o2 1, svc_o3 4 (kept
|
||||
# orphans that may carry SSH).
|
||||
- name: Read the rules ufw would load
|
||||
ansible.builtin.command: ufw show added
|
||||
register: ufw_conv_added
|
||||
@@ -18,8 +18,8 @@
|
||||
- ufw_conv_added.stdout_lines | select('search', 'svc_o2:3333333333') | list | length == 1
|
||||
- ufw_conv_added.stdout_lines | select('search', 'svc_o3:555555555[1-4]') | list | length == 4
|
||||
- ufw_conv_added.stdout_lines | select('search', 'svc_m:4444444444') | list | length == 1
|
||||
- ufw_conv_added.stdout_lines | select('search', 'svc_p:666666666[123]') | list | length == 3
|
||||
- ufw_conv_added.stdout_lines | select('search', 'svc_p:6666666664') | list | length == 0
|
||||
- ufw_conv_added.stdout_lines | select('search', 'svc_c:666666666[123]') | list | length == 3
|
||||
- ufw_conv_added.stdout_lines | select('search', 'svc_c:6666666664') | list | length == 0
|
||||
- ufw_conv_added.stdout_lines | select('match', '^ufw ') | select('search', 'ansible-ufw') | list | length == 20 + ufw_conv_o1_count | int
|
||||
- ufw_conv_added.stdout_lines | select('match', '^ufw ') | reject('search', 'ansible-ufw') | list | length == 5
|
||||
fail_msg: "Unexpected rules after the orphan_rules case: {{ ufw_conv_added.stdout_lines }}"
|
||||
|
||||
@@ -306,12 +306,6 @@
|
||||
that: "'ufw_managed_owners must be a list of strings matching' in ufw_verify_failure"
|
||||
quiet: true
|
||||
|
||||
# Converge's last play purged svc_o1 (want 0); svc_o2, svc_m and the tagged total carry the proof.
|
||||
- name: Nothing was deleted after the invalid owner
|
||||
ansible.builtin.include_tasks: tasks/orphan_check.yml
|
||||
vars:
|
||||
ufw_conv_o1_want: 0
|
||||
|
||||
- name: Verify
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
@@ -385,12 +379,12 @@
|
||||
that:
|
||||
- ufw_verify_tagged | select('search', ufw_verify_svc_a_web) | list | length == 1
|
||||
- 'ufw_verify_tagged | select("search", "8002.*ansible-ufw\[svc_a:[0-9a-f]{10}\]: alpha dns") | list | length == 1'
|
||||
- 'ufw_verify_tagged | select("search", "8003.*ansible-ufw\[svc_b:[0-9a-f]{10}\]: beta") | list | length == 1'
|
||||
- 'ufw_verify_tagged | select("search", "8004.*ansible-ufw\[svc_b:[0-9a-f]{10}\]:.$") | list | length == 1'
|
||||
- 'ufw_verify_tagged | select("search", "8003.*ansible-ufw\[svc_a:[0-9a-f]{10}\]: beta") | list | length == 1'
|
||||
- 'ufw_verify_tagged | select("search", "8004.*ansible-ufw\[svc_a:[0-9a-f]{10}\]:.$") | list | length == 1'
|
||||
- 'ufw_verify_tagged | select("search", "7201.*ansible-ufw\[svc_a:[0-9a-f]{10}\]: epsilon") | list | length == 1'
|
||||
- 'ufw_verify_tagged | select("search", "8022/tcp comment .ansible-ufw\[svc_a:[0-9a-f]{10}\]: forward to 22 here") | list | length == 1'
|
||||
- 'ufw_verify_tagged | select("search", "7101.*ansible-ufw\[svc_c:[0-9a-f]{10}\]: gamma") | list | length == 1'
|
||||
- 'ufw_verify_tagged | select("search", "7201.*ansible-ufw\[svc_e:[0-9a-f]{10}\]: epsilon") | list | length == 1'
|
||||
- 'ufw_verify_tagged | select("search", "8022/tcp comment .ansible-ufw\[svc_g:[0-9a-f]{10}\]: forward to 22 here") | list | length == 1'
|
||||
- 'ufw_verify_tagged | select("search", "7301.*ansible-ufw\[svc_h:[0-9a-f]{10}\]: eta") | list | length == 1'
|
||||
- 'ufw_verify_tagged | select("search", "7301.*ansible-ufw\[svc_c:[0-9a-f]{10}\]: eta") | list | length == 1'
|
||||
quiet: true
|
||||
vars:
|
||||
ufw_verify_tagged: "{{ ufw_verify_added.stdout_lines | select('match', '^ufw ') | select('search', 'ansible-ufw') | list }}"
|
||||
@@ -402,15 +396,14 @@
|
||||
that:
|
||||
- ufw_verify_added.stdout_lines | select('search', 'svc_c:128c086248') | list | length == 0
|
||||
- ufw_verify_added.stdout_lines | select('search', 'svc_d:') | list | length == 0
|
||||
- ufw_verify_added.stdout_lines | select('search', '7003.*svc_e:aaaaaaaaaa') | list | length == 1
|
||||
- ufw_verify_added.stdout_lines | select('search', 'svc_h:bbbbbbbbbb') | list | length == 1
|
||||
- ufw_verify_added.stdout_lines | select('search', '7003.*svc_a:aaaaaaaaaa') | list | length == 1
|
||||
- ufw_verify_added.stdout_lines | select('search', 'svc_c:bbbbbbbbbb') | list | length == 1
|
||||
- ufw_verify_added.stdout_lines | select('search', 'ansible-ufw') | list | length == 20
|
||||
quiet: true
|
||||
|
||||
# Twenty tagged rules: svc_a 2, svc_b 2, svc_c 1, svc_e 2, svc_g 1, svc_h 2, svc_m 1, the
|
||||
# SSH lookalike of svc_o2, four orphans of svc_o3 and four rules of svc_p (its desired
|
||||
# rule and three stale ones). Both rules of svc_o1 and the numeric stale rule of svc_p were
|
||||
# deleted; the kept ones may carry SSH.
|
||||
# Twenty tagged rules: svc_a 7 (six desired, one stale), svc_c 7 (three desired, four stale),
|
||||
# svc_m 1, the SSH lookalike of svc_o2 and four orphans of svc_o3. Both rules of svc_o1 and
|
||||
# the numeric stale rules of svc_c were deleted; the kept ones may carry SSH.
|
||||
- name: Orphans were purged except those that may carry SSH, a managed owner kept its rule
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
@@ -426,12 +419,12 @@
|
||||
- name: The stale purge of service_rules kept the lines that may carry SSH
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- ufw_verify_added.stdout_lines | select('search', 'svc_p:6666666664') | list | length == 0
|
||||
- ufw_verify_added.stdout_lines | select('search', 'svc_c:6666666664') | list | length == 0
|
||||
- ufw_verify_added.stdout_lines | select('search', '7601') | list | length == 0
|
||||
- ufw_verify_added.stdout_lines | select('search', 'wg0.*svc_p:6666666661') | list | length == 1
|
||||
- ufw_verify_added.stdout_lines | select('search', '10\.30\.0\.0/24.*svc_p:6666666662') | list | length == 1
|
||||
- ufw_verify_added.stdout_lines | select('search', '40:50.*svc_p:6666666663') | list | length == 1
|
||||
- 'ufw_verify_added.stdout_lines | select("search", "7602.*ansible-ufw\\[svc_p:[0-9a-f]{10}\\]: desired") | list | length == 1'
|
||||
- ufw_verify_added.stdout_lines | select('search', 'wg0.*svc_c:6666666661') | list | length == 1
|
||||
- ufw_verify_added.stdout_lines | select('search', '10\.30\.0\.0/24.*svc_c:6666666662') | list | length == 1
|
||||
- ufw_verify_added.stdout_lines | select('search', '40:50.*svc_c:6666666663') | list | length == 1
|
||||
- 'ufw_verify_added.stdout_lines | select("search", "7602.*ansible-ufw\\[svc_c:[0-9a-f]{10}\\]: desired") | list | length == 1'
|
||||
quiet: true
|
||||
|
||||
- name: No rejected input left a rule behind
|
||||
@@ -506,7 +499,7 @@
|
||||
ufw_service_rules:
|
||||
- {rule: allow, port: 7701, proto: tcp, comment: check mode}
|
||||
|
||||
- name: An absent call for svc_a, which holds two rules
|
||||
- name: An absent call for svc_a, which holds seven rules
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.ufw
|
||||
tasks_from: service_rules
|
||||
@@ -524,7 +517,7 @@
|
||||
- name: Check mode added and deleted nothing
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- ufw_verify_chk_before.stdout_lines | select('search', 'svc_a:') | list | length == 2
|
||||
- ufw_verify_chk_before.stdout_lines | select('search', 'svc_a:') | list | length == 7
|
||||
- ufw_verify_chk_after.stdout_lines == ufw_verify_chk_before.stdout_lines
|
||||
- ufw_verify_chk_after.stdout_lines | select('search', 'svc_chk|7701') | list | length == 0
|
||||
quiet: true
|
||||
@@ -8,7 +8,9 @@
|
||||
group: root
|
||||
mode: "0644"
|
||||
notify: Reload UFW
|
||||
when: ufw_enabled
|
||||
when:
|
||||
- ufw_enabled
|
||||
- __ufw_can_configure | default(true)
|
||||
# Not gated on ufw_aggregated_before_rules being non-empty: this template
|
||||
# fully replaces the stock before.rules (unlike rules.yml, which only adds
|
||||
# to it), and its unconditional loopback-ACCEPT block must always be
|
||||
|
||||
@@ -4,18 +4,24 @@
|
||||
community.general.ufw:
|
||||
direction: incoming
|
||||
policy: "{{ ufw_defaults.incoming }}"
|
||||
when: ufw_enabled
|
||||
when:
|
||||
- ufw_enabled
|
||||
- __ufw_can_configure | default(true)
|
||||
|
||||
- name: Set default outgoing policy
|
||||
become: true
|
||||
community.general.ufw:
|
||||
direction: outgoing
|
||||
policy: "{{ ufw_defaults.outgoing }}"
|
||||
when: ufw_enabled
|
||||
when:
|
||||
- ufw_enabled
|
||||
- __ufw_can_configure | default(true)
|
||||
|
||||
- name: Set default routed policy
|
||||
become: true
|
||||
community.general.ufw:
|
||||
direction: routed
|
||||
policy: "{{ ufw_defaults.routed }}"
|
||||
when: ufw_enabled
|
||||
when:
|
||||
- ufw_enabled
|
||||
- __ufw_can_configure | default(true)
|
||||
@@ -11,7 +11,9 @@
|
||||
environment:
|
||||
LC_ALL: C
|
||||
LANGUAGE: C
|
||||
when: ufw_enabled
|
||||
when:
|
||||
- ufw_enabled
|
||||
- __ufw_can_configure | default(true)
|
||||
|
||||
- name: Enable UFW
|
||||
become: true
|
||||
@@ -26,6 +28,7 @@
|
||||
else 'Logging: on (' ~ ufw_logging ~ ')' }}
|
||||
when:
|
||||
- ufw_enabled
|
||||
- __ufw_can_configure | default(true)
|
||||
- >-
|
||||
'Status: active' not in ufw_status_verbose.stdout
|
||||
or ufw_logging_expected not in ufw_status_verbose.stdout
|
||||
@@ -4,3 +4,17 @@
|
||||
ansible.builtin.package:
|
||||
name: "{{ ufw_package_name }}"
|
||||
state: present
|
||||
register: __ufw_install
|
||||
|
||||
# ansible_check_mode is not used: the play-level `check_mode: true` keyword does not set it inside
|
||||
# include_role tasks. A command task is skipped in both forms, the same probe as tasks/sysctl.yml.
|
||||
- name: Probe whether the run is in check mode
|
||||
ansible.builtin.command: "true"
|
||||
register: __ufw_install_probe
|
||||
changed_when: false
|
||||
|
||||
# False only when a check-mode run would install ufw: the binary and /etc/ufw are then missing.
|
||||
# Undefined when this file's tags are skipped; the guards then default it to true.
|
||||
- name: Remember whether ufw can be configured
|
||||
ansible.builtin.set_fact:
|
||||
__ufw_can_configure: "{{ __ufw_install is not changed or __ufw_install_probe is not skipped }}"
|
||||
@@ -23,3 +23,4 @@
|
||||
when:
|
||||
- ufw_enabled
|
||||
- ufw_manage_rules
|
||||
- __ufw_can_configure | default(true)
|
||||
@@ -6,11 +6,12 @@
|
||||
|
||||
When <head-ref> starts with `renovate/`, the diff of <base-ref>...HEAD may only touch:
|
||||
|
||||
* requirements-dev.txt: pinned `name==version` lines, the same packages before and after;
|
||||
* requirements-dev.lock (pip-compile --generate-hashes output): `name==version` entries,
|
||||
`--hash=sha256:<64 hex>` lines and plain `# via` or prose comments, nothing else; packages may
|
||||
be added or removed (a transitive dependency), but the `# pip-compile ...` command in the
|
||||
header, which Renovate runs again, must stay as it is;
|
||||
* requirements-dev.txt and requirements-molecule.txt: pinned `name==version` lines, the same
|
||||
packages before and after;
|
||||
* requirements-dev.lock and requirements-molecule.lock (pip-compile --generate-hashes output):
|
||||
`name==version` entries, `--hash=sha256:<64 hex>` lines and plain `# via` or prose comments,
|
||||
nothing else; packages may be added or removed (a transitive dependency), but the
|
||||
`# pip-compile ...` command in the header, which Renovate runs again, must stay as it is;
|
||||
* requirements.yml and extensions/molecule/requirements.yml: `version:` lines (the collection
|
||||
names, and every other line, stay);
|
||||
* .pre-commit-config.yaml: `rev:` lines (a tag, or a commit SHA with its `# frozen: <tag>` comment);
|
||||
@@ -69,6 +70,9 @@ UBUNTU_LINE = re.compile(
|
||||
)
|
||||
DOCKERFILE = re.compile(r"images/[^/]+/Dockerfile")
|
||||
COLLECTION_PINS = {"requirements.yml", "extensions/molecule/requirements.yml"}
|
||||
# Lint's and the molecule-controller image's requirements, each with its pip-compile lock.
|
||||
REQUIREMENTS = {"requirements-dev.txt", "requirements-molecule.txt"}
|
||||
LOCKS = {"requirements-dev.lock", "requirements-molecule.lock"}
|
||||
CONSUMERS = {
|
||||
".gitea/workflows/lint.yml",
|
||||
".gitea/workflows/build.yml",
|
||||
@@ -108,7 +112,7 @@ def reduce_version(line):
|
||||
return "version" if VERSION_LINE.match(line) else None
|
||||
|
||||
|
||||
# requirements-dev.lock: an entry (with an optional environment marker), a hash, or a comment.
|
||||
# A lock: an entry (with an optional environment marker), a hash, or a comment.
|
||||
# The marker and the prose comment use a small character set: no backslash, quote of a shell, `$` or `--`.
|
||||
LOCK_ENTRY = re.compile(
|
||||
r"^[A-Za-z0-9][A-Za-z0-9._-]*==[0-9][0-9A-Za-z.+!_-]*"
|
||||
@@ -122,7 +126,7 @@ LOCK_COMMENT = re.compile(
|
||||
|
||||
|
||||
def lock_problem(removed, added):
|
||||
"""None when every changed line of requirements-dev.lock is an entry, a hash or a plain comment and
|
||||
"""None when every changed line of a lock is an entry, a hash or a plain comment and
|
||||
the `# pip-compile ...` command line is the same on both sides."""
|
||||
for line in removed + added:
|
||||
if LOCK_COMMAND.match(line):
|
||||
@@ -165,14 +169,14 @@ def reduce_pin(line):
|
||||
|
||||
def file_problem(path, removed, added):
|
||||
"""One-line reason why the change to `path` is not allowed for a bot, or None."""
|
||||
if path == "requirements-dev.txt":
|
||||
if path in REQUIREMENTS:
|
||||
return same_shape(
|
||||
removed,
|
||||
added,
|
||||
reduce_requirement,
|
||||
"a pinned `name==version` line of the same package",
|
||||
)
|
||||
if path == "requirements-dev.lock":
|
||||
if path in LOCKS:
|
||||
return lock_problem(removed, added)
|
||||
if path in COLLECTION_PINS:
|
||||
return same_shape(removed, added, reduce_version, "a `version:` line")
|
||||
|
||||
@@ -386,6 +386,10 @@ def check_pins(matrix, consumer_texts):
|
||||
|
||||
PYTHON_PIN_FILE = ".python-version"
|
||||
LOCK_FILE = "requirements-dev.lock"
|
||||
# The molecule-controller image's lock (ADR 0003).
|
||||
MOLECULE_LOCK_FILE = "requirements-molecule.lock"
|
||||
LOCK_FILES = (LOCK_FILE, MOLECULE_LOCK_FILE)
|
||||
ANSIBLE_CORE_RE = re.compile(r"^ansible-core==([^\s;\\]+)", re.MULTILINE)
|
||||
PYTHON_PIN_RE = re.compile(r"[0-9]+\.[0-9]+")
|
||||
LOCK_PYTHON_RE = re.compile(
|
||||
r"^# This file is autogenerated by pip-compile with Python ([0-9]+\.[0-9]+)\s*$",
|
||||
@@ -397,25 +401,27 @@ ARG_PYTHON_RE = re.compile(
|
||||
)
|
||||
|
||||
|
||||
def check_python_pin(pin_text, lock_text, dockerfiles):
|
||||
"""Errors where the Python of .python-version, the header of requirements-dev.lock and the
|
||||
def check_python_pin(pin_text, locks, dockerfiles):
|
||||
"""Errors where the Python of .python-version, the header of each lock (path -> text) and the
|
||||
`ARG PYTHON_VERSION=` of an image Dockerfile (path -> text) are not one MAJOR.MINOR version. A
|
||||
clone's virtualenv (scripts/dev-setup.sh) and the ci image's /opt/venv use the first, the lock
|
||||
records the third as the interpreter it was resolved on; at least one Dockerfile must carry the ARG."""
|
||||
clone's virtualenv (scripts/dev-setup.sh) and the images' /opt/venv use the first, a lock
|
||||
records it as the interpreter it was resolved on; at least one Dockerfile must carry the ARG."""
|
||||
pin = pin_text.strip()
|
||||
if not PYTHON_PIN_RE.fullmatch(pin):
|
||||
return [f"{PYTHON_PIN_FILE} must hold one MAJOR.MINOR version, found {pin!r}"]
|
||||
errors = []
|
||||
header = LOCK_PYTHON_RE.search(lock_text)
|
||||
if not header:
|
||||
errors.append(
|
||||
f"{LOCK_FILE}: no 'autogenerated by pip-compile with Python X.Y' header"
|
||||
)
|
||||
elif header.group(1) != pin:
|
||||
errors.append(
|
||||
f"{LOCK_FILE}: header says Python {header.group(1)} but {PYTHON_PIN_FILE} is {pin}; "
|
||||
"regenerate it with scripts/lock-requirements.sh"
|
||||
)
|
||||
for path, lock_text in locks.items():
|
||||
header = LOCK_PYTHON_RE.search(lock_text)
|
||||
if not header:
|
||||
errors.append(
|
||||
f"{path}: no 'autogenerated by pip-compile with Python X.Y' header"
|
||||
)
|
||||
elif header.group(1) != pin:
|
||||
requirements = path.removesuffix(".lock") + ".txt"
|
||||
errors.append(
|
||||
f"{path}: header says Python {header.group(1)} but {PYTHON_PIN_FILE} is {pin}; "
|
||||
f"regenerate it with scripts/lock-requirements.sh {requirements}"
|
||||
)
|
||||
carriers = 0
|
||||
for path, text in dockerfiles.items():
|
||||
for arg in ARG_PYTHON_RE.findall(text):
|
||||
@@ -431,6 +437,25 @@ def check_python_pin(pin_text, lock_text, dockerfiles):
|
||||
return errors
|
||||
|
||||
|
||||
def check_ansible_core_pins(locks):
|
||||
"""Errors where the locks (path -> text) do not pin one ansible-core version: Lint runs the one of
|
||||
requirements-dev.lock and Molecule the one of requirements-molecule.lock, and both judge the same code."""
|
||||
errors, versions = [], {}
|
||||
for path, text in locks.items():
|
||||
m = ANSIBLE_CORE_RE.search(text)
|
||||
if m:
|
||||
versions[path] = m[1]
|
||||
else:
|
||||
errors.append(f"{path}: no ansible-core== entry")
|
||||
if len(set(versions.values())) > 1:
|
||||
pins = ", ".join(f"{path} {version}" for path, version in versions.items())
|
||||
errors.append(
|
||||
f"the locks pin different ansible-core versions ({pins}); Lint and Molecule must run one "
|
||||
"ansible-core, so move both pins in the same pull request"
|
||||
)
|
||||
return errors
|
||||
|
||||
|
||||
JOB_IMAGE_RE = re.compile(r"ubuntu:(?P<release>[0-9]+\.[0-9]+)@sha256:[0-9a-f]{64}")
|
||||
CONTAINER_LINE_RE = re.compile(
|
||||
r"^\s*container:[ \t]*\n\s*image:\s*\$\{\{\s*matrix\.job_image\s*\}\}[ \t]*$",
|
||||
@@ -671,11 +696,11 @@ def run(argv):
|
||||
if pathlib.Path(path).exists():
|
||||
dockerfiles[path] = pathlib.Path(path).read_text()
|
||||
try:
|
||||
locks = {lock: pathlib.Path(lock).read_text() for lock in LOCK_FILES}
|
||||
errors += check_python_pin(
|
||||
pathlib.Path(PYTHON_PIN_FILE).read_text(),
|
||||
pathlib.Path(LOCK_FILE).read_text(),
|
||||
dockerfiles,
|
||||
pathlib.Path(PYTHON_PIN_FILE).read_text(), locks, dockerfiles
|
||||
)
|
||||
errors += check_ansible_core_pins(locks)
|
||||
except OSError as exc:
|
||||
errors.append(f"cannot read the Python pin files: {exc}")
|
||||
workflows = (
|
||||
|
||||
@@ -5,8 +5,10 @@
|
||||
python3 -I scripts/check_scenarios_load_checkout.py < scenario-dirs
|
||||
|
||||
Checks the environment molecule hands ansible-playbook, not only the inherited one: a scenario's
|
||||
own env can change it. The rule it holds is in .gitea/workflows/AGENTS.md (Molecule). Exit 1 when
|
||||
a scenario would load another copy, or none.
|
||||
own env can change it. Also checks that molecule's prerun, its install of the collection, is off
|
||||
once the base config is merged as molecule's CLI merges it. The rule it holds is in
|
||||
.gitea/workflows/AGENTS.md (Molecule). Exit 1 when a scenario would load another copy, or none,
|
||||
or has prerun on.
|
||||
"""
|
||||
|
||||
import json
|
||||
@@ -16,6 +18,8 @@ import sys
|
||||
import tempfile
|
||||
|
||||
from molecule.config import Config
|
||||
from molecule.shell import LOCAL_CONFIG_SEARCH
|
||||
from molecule.util import lookup_config_file
|
||||
|
||||
CHECKOUT = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||
RULE = (
|
||||
@@ -23,20 +27,25 @@ RULE = (
|
||||
" copy: the scenario selector ignores galaxy.yml on that rule"
|
||||
" (.gitea/workflows/AGENTS.md, Molecule)"
|
||||
)
|
||||
PRERUN = (
|
||||
"prerun must be off, so molecule does not install mortis.kamino again: set `prerun: false`"
|
||||
" in the base config {base} and do not turn it on in the scenario (.gitea/workflows/AGENTS.md, Molecule)"
|
||||
)
|
||||
|
||||
|
||||
def playbook_env(scenario):
|
||||
"""The environment molecule gives ansible-playbook in `scenario`, as a role scenario runs it."""
|
||||
def scenario_config(scenario):
|
||||
"""Molecule's config of `scenario` as `molecule converge` builds it there, and its base config."""
|
||||
parts = scenario.split("/")
|
||||
cwd = os.path.join(CHECKOUT, *parts[:2]) if parts[0] == "roles" else CHECKOUT
|
||||
# molecule takes the project from the working directory; each call sets it afresh
|
||||
# molecule takes the project and the base config from the working directory; set it afresh
|
||||
os.chdir(cwd)
|
||||
base = lookup_config_file(LOCAL_CONFIG_SEARCH)
|
||||
config = Config(
|
||||
os.path.relpath(os.path.join(CHECKOUT, scenario, "molecule.yml")),
|
||||
args={},
|
||||
args={"base_config": [base] if base else []},
|
||||
command_args={"subcommand": "converge"},
|
||||
)
|
||||
return dict(config.provisioner.env)
|
||||
return config, base
|
||||
|
||||
|
||||
def collection_paths(env, cwd):
|
||||
@@ -79,8 +88,16 @@ def main():
|
||||
os.environ.setdefault("ANSIBLE_HOME", home)
|
||||
for scenario in filter(None, sys.stdin.read().splitlines()):
|
||||
scenario_dir = os.path.join(CHECKOUT, scenario)
|
||||
config, base = scenario_config(scenario)
|
||||
# molecule's worker reads this key to decide whether to install the collection
|
||||
if config.config_data["prerun"] is not False:
|
||||
failed = True
|
||||
base = (
|
||||
base or os.path.join(CHECKOUT, LOCAL_CONFIG_SEARCH) + " (not found)"
|
||||
)
|
||||
print(f"::error::{scenario}: " + PRERUN.format(base=base))
|
||||
paths = [os.path.join(scenario_dir, "collections")]
|
||||
paths += collection_paths(playbook_env(scenario), scenario_dir)
|
||||
paths += collection_paths(dict(config.provisioner.env), scenario_dir)
|
||||
found = loaded_copy(paths)
|
||||
if found and os.path.realpath(found) == CHECKOUT:
|
||||
continue
|
||||
|
||||
@@ -2,16 +2,17 @@
|
||||
# SPDX-FileCopyrightText: Defame1297 and contributors
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#
|
||||
# Regenerate requirements-dev.lock, the hashed lock of requirements-dev.txt (#113).
|
||||
# Regenerate the hashed lock of a root requirements file: requirements-dev.txt (Lint and Build, the
|
||||
# default) or requirements-molecule.txt (the molecule-controller image) into the .lock of the same name.
|
||||
#
|
||||
# scripts/lock-requirements.sh re-resolve, keeping every locked version that still fits
|
||||
# scripts/lock-requirements.sh --upgrade move every package, transitive ones included, to its newest release
|
||||
# scripts/lock-requirements.sh [FILE] re-resolve, keeping every locked version that still fits
|
||||
# scripts/lock-requirements.sh --upgrade [FILE] move every package, transitive ones included, to its newest release
|
||||
#
|
||||
# Needs the network (PyPI) and the Python of .python-version (python<MINOR>; KAMINO_PYTHON overrides it): the
|
||||
# header of the lock records it, and check_image_versions.py pins fails when it differs.
|
||||
# pip and pip-tools are installed, at the pinned versions below, into a throwaway virtualenv, never
|
||||
# into the project's .venv. pip is pinned too: pip-tools breaks on newer pip releases (7.5.2 on pip 26). Commit
|
||||
# the lock with requirements-dev.txt; pip refuses an install of the two when they disagree
|
||||
# the lock with its requirements file; pip refuses an install of the two when they disagree
|
||||
# (`pip install --require-hashes -r requirements-dev.lock -r requirements-dev.txt`).
|
||||
# The pins are not hash-checked themselves: they come from PyPI over TLS, like the pip that
|
||||
# created the throwaway venv.
|
||||
@@ -25,12 +26,19 @@ set -euo pipefail
|
||||
|
||||
pip_version="25.2"
|
||||
pip_tools_version="7.6.2"
|
||||
usage="usage: lock-requirements.sh [--upgrade] [requirements-dev.txt|requirements-molecule.txt]"
|
||||
upgrade=()
|
||||
case "${1:-}" in
|
||||
"") ;;
|
||||
--upgrade) upgrade=(--upgrade) ;;
|
||||
*) echo "usage: lock-requirements.sh [--upgrade]" >&2; exit 2 ;;
|
||||
if [ "${1:-}" = "--upgrade" ]; then
|
||||
upgrade=(--upgrade)
|
||||
shift
|
||||
fi
|
||||
requirements="${1:-requirements-dev.txt}"
|
||||
case "$requirements" in
|
||||
requirements-dev.txt|requirements-molecule.txt) ;;
|
||||
*) echo "$usage" >&2; exit 2 ;;
|
||||
esac
|
||||
[ "$#" -le 1 ] || { echo "$usage" >&2; exit 2; }
|
||||
lock="${requirements%.txt}.lock"
|
||||
|
||||
root="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/.." && pwd)"
|
||||
[ -f "$root/.python-version" ] || { echo "error: .python-version is missing (the Python of the lock, a clone and the ci image)" >&2; exit 1; }
|
||||
@@ -54,5 +62,5 @@ cd "$root"
|
||||
# --allow-unsafe: setuptools is a dependency of a tool here, and pip refuses an unpinned
|
||||
# requirement in a file that carries hashes.
|
||||
"$tmp/venv/bin/pip-compile" --quiet --generate-hashes --strip-extras --allow-unsafe \
|
||||
"${upgrade[@]}" --output-file requirements-dev.lock requirements-dev.txt
|
||||
echo "requirements-dev.lock regenerated; commit it with requirements-dev.txt."
|
||||
"${upgrade[@]}" --output-file "$lock" "$requirements"
|
||||
echo "$lock regenerated; commit it with $requirements."
|
||||
@@ -135,7 +135,13 @@ class Registry:
|
||||
def tags(self):
|
||||
tags, path = [], "tags/list"
|
||||
while path:
|
||||
body, headers = self._get(path)
|
||||
try:
|
||||
body, headers = self._get(path)
|
||||
except RegistryError as exc:
|
||||
# A repository not pushed yet is 404 NAME_UNKNOWN (OCI distribution spec): no tags.
|
||||
if exc.status == 404 and not tags:
|
||||
return []
|
||||
raise
|
||||
tags += body.get("tags") or []
|
||||
link = re.search(r"<[^>]*/tags/list(\?[^>]*)>", headers.get("Link", ""))
|
||||
path = f"tags/list{link[1]}" if link else None
|
||||
|
||||
@@ -30,7 +30,7 @@ fi
|
||||
ansible --version
|
||||
molecule --version
|
||||
# The collection under test first; molecule does not install it again (prerun is off in
|
||||
# .config/molecule/config.yml).
|
||||
# .config/molecule/config.yml, which check_scenarios_load_checkout.py holds).
|
||||
export ANSIBLE_COLLECTIONS_PATH="$AC_ROOT:${extra_collections}/opt/collections"
|
||||
# Facts are not injected as variables (deprecated in ansible-core 2.22, removal scheduled for 2.24, see #364), so a
|
||||
# role that reads a bare `ansible_<fact>` fails its scenario here instead of in a consumer's inventory.
|
||||
|
||||
@@ -1,17 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
# The Molecule workflow's "Run the scenarios" step: `molecule test` for each scenario directory on
|
||||
# stdin, MOLECULE_LANES (default 4) at a time, each with its own log and ANSIBLE_HOME under
|
||||
# <work-dir>/<n>/ (no collection is installed there: .config/molecule/config.yml sets prerun false).
|
||||
# stdin, MOLECULE_LANES (default 2, also when empty) at a time, longest first, each with its own
|
||||
# log and ANSIBLE_HOME under <work-dir>/<n>/ (no collection is installed there:
|
||||
# .config/molecule/config.yml sets prerun false). A scenario still running after
|
||||
# MOLECULE_SCENARIO_TIMEOUT seconds (default 1800, also when empty) is stopped and fails; the
|
||||
# variable is for local runs and tests: the workflow does not pass it into the ci container.
|
||||
# Exit 1 on a failure.
|
||||
#
|
||||
# scripts/run_molecule_scenarios.sh <work-dir> < scenario-dirs
|
||||
set -euo pipefail
|
||||
|
||||
lanes="${MOLECULE_LANES:-4}"
|
||||
# 2: a full run took 34 min at 2 lanes and 35 at 4, so more lanes only slow each scenario.
|
||||
lanes="${MOLECULE_LANES:-2}"
|
||||
if ! [[ "$lanes" =~ ^[1-9][0-9]*$ ]]; then
|
||||
echo "MOLECULE_LANES must be a positive integer, not '$lanes'" >&2
|
||||
exit 2
|
||||
fi
|
||||
# 1800: the longest scenario takes about 8.5 min, and at the default 2 lanes two hung ones plus the
|
||||
# rest still end inside the job's 90 min, so a hang fails on its own with its log printed.
|
||||
limit="${MOLECULE_SCENARIO_TIMEOUT:-1800}"
|
||||
if ! [[ "$limit" =~ ^[1-9][0-9]*$ ]]; then
|
||||
echo "MOLECULE_SCENARIO_TIMEOUT must be a positive integer, not '$limit'" >&2
|
||||
exit 2
|
||||
fi
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "usage: $0 <work-dir> < scenario-dirs" >&2
|
||||
exit 2
|
||||
@@ -60,8 +71,16 @@ run_one() {
|
||||
export ANSIBLE_HOME="$out/ansible"
|
||||
# a role scenario runs from its role's directory, as molecule expects
|
||||
case "$dir" in roles/*) cd "${dir%/molecule/*}" || exit 1 ;; esac
|
||||
molecule test -s "${dir##*/}"
|
||||
# --foreground keeps timeout and molecule in this script's process group, so a cancel that
|
||||
# kills the group still reaches them. On expiry it signals molecule alone: its ansible-playbook
|
||||
# and workers run on until the run container ends, and the workflow's "Remove this run's
|
||||
# containers" step removes any container they recreate late.
|
||||
timeout --foreground --kill-after=30 "$limit" molecule test -s "${dir##*/}"
|
||||
) >"$out/log" 2>&1 </dev/null || rc=$?
|
||||
# 124 after TERM, 137 when the KILL of --kill-after was needed
|
||||
if { [ "$rc" -eq 124 ] || [ "$rc" -eq 137 ]; } && [ "$((SECONDS - start))" -ge "$limit" ]; then
|
||||
echo "timed out after $limit s" >>"$out/log"
|
||||
fi
|
||||
if ! remove_instances "$dir" >>"$out/log" 2>&1; then
|
||||
echo "could not remove the containers of $dir" >>"$out/log"
|
||||
if [ "$rc" -eq 0 ]; then rc=1; fi
|
||||
@@ -77,6 +96,38 @@ while IFS= read -r dir; do
|
||||
done
|
||||
mkdir -p "$work"
|
||||
|
||||
# Seconds each scenario took in the last full run at the default lane count, so the longest start
|
||||
# first and none started late sets the end of the run. Keyed by scenario directory, not label:
|
||||
# refresh from a full run's `finished <label>: exit 0 after S s` lines, each label mapped back to
|
||||
# its directory. A scenario missing here is assumed long and starts first.
|
||||
declare -A last_seconds=(
|
||||
[roles/system_baseline/molecule/default]=568
|
||||
[roles/ufw/molecule/default]=525
|
||||
[roles/traefik/molecule/default]=484
|
||||
[roles/gitea_runner/molecule/default]=398
|
||||
[roles/docker/molecule/default]=352
|
||||
[roles/cloudflared/molecule/default]=305
|
||||
[roles/tailscale/molecule/default]=220
|
||||
[roles/fail2ban/molecule/default]=161
|
||||
[roles/gitea/molecule/default]=137
|
||||
[roles/systemd_hardening/molecule/default]=134
|
||||
[roles/_binary_update/molecule/default]=132
|
||||
[roles/nfs_client/molecule/default]=126
|
||||
[roles/user_management/molecule/default]=115
|
||||
[roles/pihole/molecule/default]=112
|
||||
[roles/sshd/molecule/default]=65
|
||||
[roles/pve_lxc/molecule/default]=44
|
||||
[roles/_binary_update/molecule/check_mode]=42
|
||||
[roles/network_interfaces/molecule/default]=36
|
||||
[extensions/molecule/image-smoke]=25
|
||||
[extensions/molecule/image-smoke-2604]=21
|
||||
)
|
||||
# The indices of dirs in start order; ties keep the selection order (a stable sort).
|
||||
mapfile -t start_order < <(
|
||||
for n in "${!dirs[@]}"; do printf '%s %s\n' "${last_seconds[${dirs[$n]}]:-999999}" "$n"; done |
|
||||
sort -s -k1,1nr | cut -d' ' -f2
|
||||
)
|
||||
|
||||
# A cancelled job must not leave lanes behind that recreate containers after the next run's
|
||||
# cleanup. A signal to this script stops each lane's tree so it cannot fork, then terminates it,
|
||||
# with the whole group of any descendant that leads one: ansible's workers detach into their own.
|
||||
@@ -110,7 +161,7 @@ trap 'stop_lanes 143' TERM
|
||||
trap 'stop_lanes 130' INT
|
||||
trap 'stop_lanes 129' HUP
|
||||
|
||||
for n in "${!dirs[@]}"; do
|
||||
for n in "${start_order[@]}"; do
|
||||
while [ "$(jobs -rp | wc -l)" -ge "$lanes" ]; do wait -n || true; done
|
||||
run_one "$n" "${dirs[$n]}" </dev/null &
|
||||
done
|
||||
|
||||
@@ -68,6 +68,27 @@ class LockRuleTest(unittest.TestCase):
|
||||
]
|
||||
self.assertIsNone(cbd.file_problem("requirements-dev.lock", removed, added))
|
||||
|
||||
def test_the_controller_lock_follows_the_lock_rule(self):
|
||||
removed = ["molecule==26.11.0 \\", f" --hash=sha256:{H1}"]
|
||||
added = ["molecule==26.12.0 \\", f" --hash=sha256:{H2}"]
|
||||
self.assertIsNone(
|
||||
cbd.file_problem("requirements-molecule.lock", removed, added)
|
||||
)
|
||||
self.assertIsNotNone(
|
||||
cbd.file_problem(
|
||||
"requirements-molecule.lock", [], ["--index-url https://evil/simple"]
|
||||
)
|
||||
)
|
||||
|
||||
def test_the_controller_requirements_follow_the_pin_rule(self):
|
||||
path = "requirements-molecule.txt"
|
||||
self.assertIsNone(
|
||||
cbd.file_problem(path, ["molecule==26.11.0"], ["molecule==26.12.0"])
|
||||
)
|
||||
self.assertIsNotNone(
|
||||
cbd.file_problem(path, ["molecule==26.11.0"], ["evil==1.0"])
|
||||
)
|
||||
|
||||
def test_the_header_command_may_not_change(self):
|
||||
old = "# pip-compile --generate-hashes --output-file=requirements-dev.lock requirements-dev.txt"
|
||||
new = old.replace("--generate-hashes", "--index-url=https://evil/simple")
|
||||
|
||||
@@ -517,6 +517,20 @@ class PureTest(unittest.TestCase):
|
||||
files = civ.inputs_of(entry, (root / entry["dockerfile"]).read_text())[1]
|
||||
self.assertIn("extensions/molecule/requirements.yml", files)
|
||||
|
||||
def test_the_controller_pins_are_inputs_of_the_controller_image(self):
|
||||
root = pathlib.Path(__file__).resolve().parents[2]
|
||||
entry = civ.matrix_of((root / civ.MATRIX_FILE).read_text())[
|
||||
"molecule-controller"
|
||||
]
|
||||
files = civ.inputs_of(entry, (root / entry["dockerfile"]).read_text())[1]
|
||||
for pin in (
|
||||
"requirements-molecule.txt",
|
||||
"requirements-molecule.lock",
|
||||
"requirements.yml",
|
||||
"extensions/molecule/requirements.yml",
|
||||
):
|
||||
self.assertIn(pin, files)
|
||||
|
||||
def test_real_dockerfiles_carry_the_metadata(self):
|
||||
root = pathlib.Path(__file__).resolve().parents[2]
|
||||
matrix = civ.matrix_of((root / civ.MATRIX_FILE).read_text())
|
||||
@@ -542,7 +556,7 @@ class PythonPinTest(unittest.TestCase):
|
||||
def check(self, pin="3.13\n", lock=None, dockerfiles=None):
|
||||
return civ.check_python_pin(
|
||||
pin,
|
||||
self.LOCK if lock is None else lock,
|
||||
{"requirements-dev.lock": self.LOCK if lock is None else lock},
|
||||
{"images/ci/Dockerfile": self.DOCKERFILE}
|
||||
if dockerfiles is None
|
||||
else dockerfiles,
|
||||
@@ -563,6 +577,19 @@ class PythonPinTest(unittest.TestCase):
|
||||
self.assertIn("header says Python 3.14", errors[0])
|
||||
self.assertIn("lock-requirements.sh", errors[0])
|
||||
|
||||
def test_every_lock_header_must_match(self):
|
||||
errors = civ.check_python_pin(
|
||||
"3.13\n",
|
||||
{
|
||||
"requirements-dev.lock": self.LOCK,
|
||||
"requirements-molecule.lock": self.LOCK.replace("3.13", "3.14"),
|
||||
},
|
||||
{"images/ci/Dockerfile": self.DOCKERFILE},
|
||||
)
|
||||
self.assertEqual(len(errors), 1)
|
||||
self.assertTrue(errors[0].startswith("requirements-molecule.lock: header says"))
|
||||
self.assertIn("lock-requirements.sh requirements-molecule.txt", errors[0])
|
||||
|
||||
def test_lock_without_header_is_an_error(self):
|
||||
errors = self.check(lock="six==1.0 \\\n")
|
||||
self.assertEqual(len(errors), 1)
|
||||
@@ -614,8 +641,14 @@ class PythonPinTest(unittest.TestCase):
|
||||
self.assertEqual(
|
||||
civ.check_python_pin(
|
||||
(root / ".python-version").read_text(),
|
||||
(root / "requirements-dev.lock").read_text(),
|
||||
{"images/ci/Dockerfile": (root / "images/ci/Dockerfile").read_text()},
|
||||
{lock: (root / lock).read_text() for lock in civ.LOCK_FILES},
|
||||
{
|
||||
path: (root / path).read_text()
|
||||
for path in (
|
||||
"images/ci/Dockerfile",
|
||||
"images/molecule-controller/Dockerfile",
|
||||
)
|
||||
},
|
||||
),
|
||||
[],
|
||||
)
|
||||
@@ -625,6 +658,43 @@ class PythonPinTest(unittest.TestCase):
|
||||
self.assertEqual(len(errors), 1)
|
||||
|
||||
|
||||
class AnsibleCorePinTest(unittest.TestCase):
|
||||
DEV = "ansible-core==2.22.0 \\\n --hash=sha256:" + "a" * 64 + "\n"
|
||||
MOL = "#\nansible-core==2.22.0 \\\n # via -r requirements-molecule.txt\n"
|
||||
|
||||
def check(self, dev=None, mol=None):
|
||||
return civ.check_ansible_core_pins(
|
||||
{
|
||||
"requirements-dev.lock": self.DEV if dev is None else dev,
|
||||
"requirements-molecule.lock": self.MOL if mol is None else mol,
|
||||
}
|
||||
)
|
||||
|
||||
def test_equal_pins_pass(self):
|
||||
self.assertEqual(self.check(), [])
|
||||
|
||||
def test_differing_pins_fail(self):
|
||||
errors = self.check(mol=self.MOL.replace("2.22.0", "2.21.3"))
|
||||
self.assertEqual(len(errors), 1)
|
||||
self.assertIn("2.22.0", errors[0])
|
||||
self.assertIn("2.21.3", errors[0])
|
||||
self.assertIn("requirements-molecule.lock", errors[0])
|
||||
|
||||
def test_a_lock_without_ansible_core_fails(self):
|
||||
errors = self.check(dev="reuse==6.3.0 \\\n")
|
||||
self.assertEqual(len(errors), 1)
|
||||
self.assertIn("requirements-dev.lock: no ansible-core==", errors[0])
|
||||
|
||||
def test_the_committed_locks_agree(self):
|
||||
root = pathlib.Path(__file__).resolve().parents[2]
|
||||
self.assertEqual(
|
||||
civ.check_ansible_core_pins(
|
||||
{lock: (root / lock).read_text() for lock in civ.LOCK_FILES}
|
||||
),
|
||||
[],
|
||||
)
|
||||
|
||||
|
||||
class GitTest(unittest.TestCase):
|
||||
"""Run the script as CI does, in a throwaway repository."""
|
||||
|
||||
@@ -643,10 +713,12 @@ class GitTest(unittest.TestCase):
|
||||
),
|
||||
)
|
||||
self.write(".python-version", "3.13\n")
|
||||
self.write(
|
||||
"requirements-dev.lock",
|
||||
"# This file is autogenerated by pip-compile with Python 3.13\n",
|
||||
)
|
||||
for lock in civ.LOCK_FILES:
|
||||
self.write(
|
||||
lock,
|
||||
"# This file is autogenerated by pip-compile with Python 3.13\n"
|
||||
"ansible-core==2.22.0 \\\n",
|
||||
)
|
||||
self.write("images/mol/Dockerfile", labelled("mol"))
|
||||
self.write("docs/images/ci.md", "ci\n")
|
||||
self.write("docs/images/mol.md", "mol\n")
|
||||
@@ -692,6 +764,18 @@ class GitTest(unittest.TestCase):
|
||||
self.assertEqual(code, 1)
|
||||
self.assertIn("other.yaml: mentions git.rkdr.net/defame1297/", err)
|
||||
|
||||
def test_pins_cli_fails_when_the_locks_pin_different_ansible_core(self):
|
||||
self.write(".gitea/workflows/lint.yml", "name: Lint\n")
|
||||
self.assertEqual(self.script("pins")[0], 0)
|
||||
self.write(
|
||||
"requirements-molecule.lock",
|
||||
"# This file is autogenerated by pip-compile with Python 3.13\n"
|
||||
"ansible-core==2.21.3 \\\n",
|
||||
)
|
||||
self.assert_clean_failure(
|
||||
self.script("pins"), "the locks pin different ansible-core versions"
|
||||
)
|
||||
|
||||
def test_bump_mode_is_gone(self):
|
||||
self.write(".gitea/workflows/lint.yml", "name: Lint\n")
|
||||
self.assertEqual(self.script("bump", "main")[0], 2)
|
||||
|
||||
@@ -43,6 +43,11 @@ class CheckScenariosLoadCheckoutTest(unittest.TestCase):
|
||||
self.ac_root = self.tmp / "ac"
|
||||
self.checkout = collection(self.ac_root)
|
||||
(self.checkout / "scripts").mkdir()
|
||||
# molecule's CLI finds the base config from the repository root, as in the real checkout
|
||||
subprocess.run(["git", "init", "-q", str(self.checkout)], check=True)
|
||||
self.base_config = self.checkout / ".config" / "molecule" / "config.yml"
|
||||
self.base_config.parent.mkdir(parents=True)
|
||||
self.base_config.write_text("prerun: false\n")
|
||||
shutil.copy(SCRIPT, self.checkout / "scripts")
|
||||
self.other = self.tmp / "other"
|
||||
collection(self.other)
|
||||
@@ -55,10 +60,14 @@ class CheckScenariosLoadCheckoutTest(unittest.TestCase):
|
||||
"ANSIBLE_COLLECTIONS_PATH": f"{self.ac_root}:{self.other}",
|
||||
}
|
||||
|
||||
def scenario(self, path, env=None):
|
||||
def scenario(self, path, env=None, **keys):
|
||||
d = self.checkout / path
|
||||
d.mkdir(parents=True, exist_ok=True)
|
||||
config = {"driver": {"name": "default"}, "platforms": [{"name": "instance"}]}
|
||||
config = {
|
||||
"driver": {"name": "default"},
|
||||
"platforms": [{"name": "instance"}],
|
||||
**keys,
|
||||
}
|
||||
if env:
|
||||
config["provisioner"] = {"name": "ansible", "env": env}
|
||||
(d / "molecule.yml").write_text(yaml.safe_dump(config))
|
||||
@@ -81,7 +90,14 @@ class CheckScenariosLoadCheckoutTest(unittest.TestCase):
|
||||
self.assertIn("must load mortis.kamino from the checkout", result.stdout)
|
||||
self.assertIn(found, result.stdout)
|
||||
|
||||
def assert_prerun_refused(self, result, scenario="roles/alpha/molecule/default"):
|
||||
self.assertEqual(result.returncode, 1, result.stdout + result.stderr)
|
||||
self.assertIn(f"::error::{scenario}: ", result.stdout)
|
||||
self.assertIn("prerun", result.stdout)
|
||||
self.assertIn(".config/molecule/config.yml", result.stdout)
|
||||
|
||||
def test_the_checkout_first_passes(self):
|
||||
# the scenarios inherit prerun off from the base config
|
||||
result = self.run_check(
|
||||
"roles/alpha/molecule/default\nextensions/molecule/image-smoke\n"
|
||||
)
|
||||
@@ -120,6 +136,18 @@ class CheckScenariosLoadCheckoutTest(unittest.TestCase):
|
||||
self.assert_refused(result, "extensions/molecule/image-smoke")
|
||||
self.assertNotIn("roles/alpha/molecule/default", result.stdout)
|
||||
|
||||
def test_a_scenario_with_prerun_on_fails(self):
|
||||
self.scenario("roles/alpha/molecule/default", prerun=True)
|
||||
self.assert_prerun_refused(self.run_check())
|
||||
|
||||
def test_a_missing_base_config_fails(self):
|
||||
self.base_config.unlink()
|
||||
self.assert_prerun_refused(self.run_check())
|
||||
|
||||
def test_a_base_config_with_prerun_on_fails(self):
|
||||
self.base_config.write_text("prerun: true\n")
|
||||
self.assert_prerun_refused(self.run_check())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Loaded 100 of 104 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user