Compare commits
138
Commits
bae663da9b
..
v3.3.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f842cd16b9 | ||
|
|
3124af964c | ||
|
|
ceaa43c7ab | ||
|
|
773de8eba4 | ||
|
|
a011f07d27 | ||
|
|
f3cab37c7b | ||
|
|
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 | ||
|
|
b3b62121a3 | ||
|
|
b7bac07757 | ||
|
|
30a8e71f97 | ||
|
|
985995656a | ||
|
|
5ac8eadac1 | ||
|
|
1ab99405ea | ||
|
|
5fa17e036c | ||
|
|
dab3bd2d44 | ||
|
|
1be02c574b | ||
|
|
084d2d592f | ||
|
|
90f27812eb | ||
|
|
a5c1426b25 | ||
|
|
4c1cba6e35 | ||
|
|
008039c60c | ||
|
|
6364445e3c | ||
|
|
30352502dd | ||
|
|
9ae5eca2a3 | ||
|
|
b3037273b7 | ||
|
|
34990718f0 | ||
|
|
47540320b6 | ||
|
|
afd62a8cbb | ||
|
|
810a74d8e5 | ||
|
|
87738f65fd | ||
|
|
48e6dcb543 | ||
|
|
7df98ea8c7 | ||
|
|
4a6db3382c | ||
|
|
5e230201e6 | ||
|
|
114a21fc0f | ||
|
|
c33da78633 | ||
|
|
7dbf9a1bd0 | ||
|
|
6c031acc26 | ||
|
|
380d52cd13 | ||
|
|
ab0ce421cc | ||
|
|
7d11d23294 | ||
|
|
0973f39831 | ||
|
|
2e70980b44 | ||
|
|
6eca2f4031 | ||
|
|
16b1aa4136 | ||
|
|
1048628cc4 | ||
|
|
0eade70b56 | ||
|
|
e4eb3bc656 | ||
|
|
15c3731e7f | ||
|
|
04259751ad | ||
|
|
699179674f | ||
|
|
bf604a1af2 | ||
|
|
3d2fab5388 | ||
|
|
042051b3e5 | ||
|
|
6e3ea4521b | ||
|
|
7433a37697 | ||
|
|
0b8c45a19c | ||
|
|
2d4d44b871 | ||
|
|
d862097b9c | ||
|
|
6670ab664f | ||
|
|
1372c257c2 | ||
|
|
18475ea0a5 | ||
|
|
e2df672be7 | ||
|
|
2e92b11cbc | ||
|
|
3a5040aae8 | ||
|
|
11fec7c8fc | ||
|
|
5519733312 | ||
|
|
464cc5848b | ||
|
|
d1b4501c2b | ||
|
|
26b6e37a09 |
No files matched your search
@@ -0,0 +1,24 @@
|
||||
---
|
||||
# Merged under every scenario's molecule.yml. prerun off: the CI wrapper puts this checkout
|
||||
# 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
|
||||
# calls to make a temp dir, copy the module in and clean up.
|
||||
pipelining: true
|
||||
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
|
||||
+25
-11
@@ -80,19 +80,25 @@ issue.
|
||||
- **What a pull request runs is chosen by `scripts/select_molecule_scenarios.py`:** the scenarios
|
||||
of the roles it changes and of the roles that use them (any file naming
|
||||
`mortis.kamino.<role>`, transitively), none for a diff of only IGNORED paths, a failure for a
|
||||
changed role with no scenario, and every scenario for any other file. *Why:* a full run takes
|
||||
changed role with no scenario, for a `.gitea/workflows/molecule.yml` diff of only comments
|
||||
(outside `run:` scripts) or image pins the scenarios that name a changed `MOLECULE_IMAGE*` pin
|
||||
(every scenario for `CI_IMAGE`, or when a shared molecule file names the pin), and every
|
||||
scenario for any other file. *Why:* a full run takes
|
||||
the single runner slot for a long time. *Held:* control: the selector and its tests.
|
||||
- **A role named in an include, import, play `roles:` entry or meta dependency is written out in
|
||||
full**, never bare or templated. *Why:* the selector finds dependent roles by their FQCN.
|
||||
*Held:* control: a selector test fails a bare or templated name.
|
||||
- **Scenarios load `mortis.kamino` from the checkout, never from molecule's installed copy, so
|
||||
`galaxy.yml` is on IGNORED.** *Why:* molecule installs the collection from `galaxy.yml` into
|
||||
each scenario's `ANSIBLE_HOME`, which is not on `ANSIBLE_COLLECTIONS_PATH`, so its changes
|
||||
- **Scenarios load `mortis.kamino` from the checkout, never from an installed copy, so
|
||||
`galaxy.yml` is on IGNORED.** *Why:* the checkout is first on `ANSIBLE_COLLECTIONS_PATH` and the
|
||||
shared base config `.config/molecule/config.yml` turns off molecule's install of the collection
|
||||
(`prerun: false`), so changes to `galaxy.yml`
|
||||
(release versions, `build_ignore`) do not change what a scenario runs, and the Build check
|
||||
proves the collection builds; they had caused about a third of full pull request runs and their
|
||||
minutes (#338). *Held:* control: `scripts/check_scenarios_load_checkout.py`, which
|
||||
`run_molecule_in_ci_image.sh` runs on the selected scenarios before they start, fails the run
|
||||
when the environment molecule gives `ansible-playbook` resolves `mortis.kamino` anywhere else.
|
||||
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
|
||||
@@ -106,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.
|
||||
|
||||
@@ -28,7 +28,7 @@ jobs:
|
||||
timeout-minutes: 30
|
||||
# The ci image (images/ci, built by image.yml): tag for the release, digest enforced.
|
||||
container:
|
||||
image: git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc
|
||||
image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
|
||||
env:
|
||||
PIP_DISABLE_PIP_VERSION_CHECK: "1"
|
||||
steps:
|
||||
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
# The ci image (images/ci, built by image.yml), at the pin of lint.yml: tag for the
|
||||
# release, digest enforced. Only its /opt/venv Python (with PyYAML) is used here.
|
||||
container:
|
||||
image: git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc
|
||||
image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
|
||||
steps:
|
||||
# The container has no Node, so JavaScript actions such as actions/checkout
|
||||
# cannot run; clone with git and the job token.
|
||||
|
||||
@@ -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: {}
|
||||
|
||||
@@ -62,7 +66,6 @@ jobs:
|
||||
github.event_name != 'pull_request' &&
|
||||
github.ref == 'refs/heads/main'
|
||||
runs-on: kamino-docker
|
||||
timeout-minutes: 45
|
||||
# max-parallel: 1 keeps the builds to one at a time. The runner takes two jobs, so a build
|
||||
# may share it with one other job (Lint, Build or Molecule). An empty subpath means the
|
||||
# repository root is the build context.
|
||||
@@ -80,7 +83,7 @@ jobs:
|
||||
base: "0.1"
|
||||
subpath: images/molecule-ubuntu2404
|
||||
dockerfile: Dockerfile
|
||||
job_image: ubuntu:24.04@sha256:9c7f200c07e3d4a03e7249d2c16bf66a51120fb876aa2242cf31451412543289
|
||||
job_image: ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b
|
||||
- name: molecule-ubuntu2604
|
||||
base: "0.1"
|
||||
subpath: images/molecule-ubuntu2604
|
||||
@@ -91,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.
|
||||
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
# The tag says which release, the digest is what is enforced (bump both together
|
||||
# when image.yml publishes a new version).
|
||||
container:
|
||||
image: git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc
|
||||
image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
|
||||
env:
|
||||
PIP_DISABLE_PIP_VERSION_CHECK: "1"
|
||||
PRE_COMMIT_HOME: /opt/pre-commit
|
||||
|
||||
@@ -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
|
||||
@@ -47,22 +53,21 @@ jobs:
|
||||
(github.event_name != 'pull_request' ||
|
||||
github.event.pull_request.head.repo.full_name == github.repository)
|
||||
runs-on: [kamino-molecule]
|
||||
# Two full runs sharing the runner (a nightly run and a dispatch) take more than 30 minutes.
|
||||
# Also the age past which the sweep step removes a run's containers; a script test holds the
|
||||
# two equal.
|
||||
timeout-minutes: 45
|
||||
# A full run under load takes about 45 minutes (PR #405: 44m53s), so 45 left no margin. Also the
|
||||
# age past which the sweep step removes a run's containers; a script test holds the two equal.
|
||||
timeout-minutes: 90
|
||||
env:
|
||||
# The tools and collections molecule runs with: the image Lint and Build use.
|
||||
CI_IMAGE: >-
|
||||
git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc
|
||||
git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
|
||||
# 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.10@sha256:7cdb45688667ade43a8026bdc725489a557fde7ce893123c4ee6b8d125c3fec6
|
||||
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 }}
|
||||
@@ -98,7 +103,7 @@ jobs:
|
||||
ids="$(docker ps -aq --filter 'label=net.rkdr.mortis.molecule-run')"
|
||||
# The job's timeout-minutes (a script test holds them equal): a shorter bound would remove a
|
||||
# live run's containers.
|
||||
cutoff="$(date -d '45 minutes ago' +%s)"
|
||||
cutoff="$(date -d '90 minutes ago' +%s)"
|
||||
old=""
|
||||
for id in $ids; do
|
||||
# a container removed since the listing, by its run or another run's sweep, is skipped
|
||||
@@ -124,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
|
||||
@@ -155,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
|
||||
@@ -4,6 +4,44 @@ mortis.kamino Release Notes
|
||||
|
||||
.. contents:: Topics
|
||||
|
||||
v3.3.0
|
||||
======
|
||||
|
||||
Minor Changes
|
||||
-------------
|
||||
|
||||
- docker - New input ``docker_keyring_checksum``: the Docker APT key is verified against a pinned sha256, and a changed key fails the install until a person has checked it and updated the hash. Set ``docker_keyring_checksum`` too when ``docker_gpg_url`` is overridden.
|
||||
- nfs_client - New role. Installs ``nfs-common`` and manages NFS mount entries in ``/etc/fstab`` from ``nfs_client_mounts`` (``src``, ``path``, optional ``opts`` and ``state`` ``present`` or ``absent``), with ``nfs_client_default_opts`` (default ``_netdev,nofail``) for an entry that sets none. It creates each mount point without owner, group or mode, writes only the fstab line, never mounts or unmounts, and reloads systemd after a change. An ``absent`` entry loses its line and nothing else. Declares Ubuntu noble and resolute; the molecule scenario never mounts a share.
|
||||
- pve_vm - New role. Clones a Proxmox VE QEMU VM from a template through the Proxmox API (``community.proxmox``), sets its cloud-init user, SSH keys and network, updates an existing VM only on detected drift, grows its boot disk, applies the power state, waits for SSH and cloud-init and (with ``pve_vm_allow_destroy``) deletes it. It never sets a cloud-init password and deletes one stored on the VM. Only ``pve_vm_exists`` is set for later plays. The input checks run under ``tags: always``, so a tag-filtered run also needs ``pve_vm_api_user`` and ``pve_vm_api_token_secret`` (and ``pve_vm_disk_size`` while ``pve_vm_manage_disk`` is true). Declares Ubuntu noble and resolute guests; the molecule scenario covers the input validation and the drift detection, not the API lifecycle.
|
||||
- traefik - The prerequisites install refreshes the APT cache only when it is older than an hour; before, every run refreshed it. A consumer who adds an APT source just before the role must refresh the cache first.
|
||||
|
||||
Bugfixes
|
||||
--------
|
||||
|
||||
- fail2ban - ``--check`` no longer fails on a host where fail2ban is not installed yet, through either entry point; the preview reports the install and skips the configuration, service and jail tasks.
|
||||
- ufw - ``--check`` no longer fails on a host where ufw is not installed yet; the preview reports the install and skips the tasks that need the ``ufw`` binary.
|
||||
|
||||
v3.2.0
|
||||
======
|
||||
|
||||
Minor Changes
|
||||
-------------
|
||||
|
||||
- cloudflared - New input ``cloudflared_tunnel_lookup_delay``, the seconds between the three retries of a 404 from the tunnel lookup while a new tunnel may not be visible yet. The default is 5, as before.
|
||||
- docker, system_baseline - The install tasks that only use the distribution's sources (docker's prerequisites, system_baseline's packages) refresh the APT cache only when it is older than an hour; before, every run refreshed it. Installs from a role's own APT source still refresh it on every run.
|
||||
- system_baseline - Add ``system_baseline_extra_packages`` and ``system_baseline_extra_remove_packages`` (lists, default empty), which append to the resolved package lists, where setting ``system_baseline_essential_packages`` or ``system_baseline_remove_packages`` replaces the profile's whole list. An extra ``tmux`` or ``unattended-upgrades`` enables the matching task like a profile package. A package that one input installs and another purges stops the run before any change. With both inputs left at their default the role behaves as before.
|
||||
- system_baseline - Add the input ``system_baseline_skip_upgrade_during_vzdump`` (default ``false``). With ``true`` on the ``pve`` system type, the main flow and the ``update`` entry point skip the apt upgrade while ``pvesh get /nodes/localhost/tasks --source active`` lists a ``vzdump`` task, and say so. With the default no ``pvesh`` command runs and the upgrade is unchanged.
|
||||
- system_baseline - ``system_baseline_journal_max_use`` can be empty to leave journald alone: the role then writes no drop-in and does not restart ``systemd-journald``. The default stays ``200M``.
|
||||
- system_baseline - ``system_baseline_journal_max_use`` is checked before any change: it must be empty or a size journald reads, a number with an optional upper-case ``B``, ``K``, ``M``, ``G``, ``T``, ``P`` or ``E``. A value journald rejects, which the role used to write into the drop-in as it was and journald then ignored (``infinity``, a lower-case unit, a line break), now stops the run; an empty value used to write an empty ``SystemMaxUse=``.
|
||||
- traefik - New input ``traefik_release_url`` sets where the release archive and checksums are downloaded from, for a mirror (default: the GitHub releases, as before).
|
||||
|
||||
Bugfixes
|
||||
--------
|
||||
|
||||
- docker - Read the distribution release through ``ansible_facts['distribution_release']`` for the APT source line, so the role works with ``inject_facts_as_vars`` set to false and in the ansible-core release that stops injecting facts as variables. The source line is unchanged.
|
||||
- gitea_runner - Read the timestamp of the forced re-registration backup through ``ansible_facts['date_time']``, so the role works with ``inject_facts_as_vars`` set to false and in the ansible-core release that stops injecting facts as variables. The backup name is unchanged.
|
||||
- system_baseline - Read the OS family through ``ansible_facts['os_family']`` in the reboot check, so the role (and its ``reboot`` entry point) works with ``inject_facts_as_vars`` set to false and in the ansible-core release that stops injecting facts as variables. Before, the task failed with ``'ansible_os_family' is undefined`` there.
|
||||
|
||||
v3.1.0
|
||||
======
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
An Ansible Collection of reusable, hardened roles for a self-hosted home lab:
|
||||
`cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`,
|
||||
`pihole`, `pve_lxc`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`, `ufw` and
|
||||
`user_management`, plus the internal `_binary_update`. Roles still to come are listed under [Roadmap](#roadmap).
|
||||
`nfs_client`, `pihole`, `pve_lxc`, `pve_vm`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`,
|
||||
`ufw` and `user_management`, plus the internal `_binary_update`. Roles still to come are listed under [Roadmap](#roadmap).
|
||||
|
||||
Status: roles arrive in waves. Release 3.1.0 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `pihole`, `pve_lxc`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`, `ufw` and `user_management` roles (and the internal `_binary_update`, which `cloudflared`, `gitea`, `gitea_runner` and `traefik` call).
|
||||
Status: roles arrive in waves. Release 3.3.0 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `nfs_client`, `pihole`, `pve_lxc`, `pve_vm`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`, `ufw` and `user_management` roles (and the internal `_binary_update`, which `cloudflared`, `gitea`, `gitea_runner` and `traefik` call).
|
||||
|
||||
## Consuming
|
||||
|
||||
@@ -17,7 +17,7 @@ name (FQCN) only, `mortis.kamino.<role>`:
|
||||
collections:
|
||||
- name: https://git.rkdr.net/mortis/kamino.git
|
||||
type: git
|
||||
version: v3.1.0
|
||||
version: v3.3.0
|
||||
```
|
||||
|
||||
Its dependencies (`community.general`, `ansible.posix`, `community.proxmox`) are declared in `galaxy.yml`, so
|
||||
@@ -41,9 +41,7 @@ when its own prerequisites (tests, a safe cutover wherever the role already runs
|
||||
|
||||
Still to come:
|
||||
|
||||
- Wave 2: `pve_vm`.
|
||||
- Wave 3: `rke2`, `proxmox_host`.
|
||||
- Later, wave not yet assigned: `opnsense`, `proxmox_firewall`.
|
||||
|
||||
Will not be extracted (they serve one lab or install that lab's own tool pins):
|
||||
`k8s_manage`, `k8s_localhost`, `k8s_lint_tools`, `minecraft_server`, `dragonwilds_server`,
|
||||
|
||||
+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: []
|
||||
@@ -31,6 +31,10 @@ objects:
|
||||
description: Manage /etc/network/interfaces
|
||||
name: network_interfaces
|
||||
version_added: null
|
||||
nfs_client:
|
||||
description: Install the NFS client and manage NFS entries in /etc/fstab
|
||||
name: nfs_client
|
||||
version_added: null
|
||||
pihole:
|
||||
description: Install and configure Pi-hole from the upstream repository
|
||||
name: pihole
|
||||
@@ -39,6 +43,10 @@ objects:
|
||||
description: Manage a Proxmox LXC container
|
||||
name: pve_lxc
|
||||
version_added: null
|
||||
pve_vm:
|
||||
description: Manage a Proxmox VE QEMU VM cloned from a template
|
||||
name: pve_vm
|
||||
version_added: null
|
||||
sshd:
|
||||
description: Write a hardened sshd drop-in
|
||||
name: sshd
|
||||
@@ -85,4 +93,4 @@ plugins:
|
||||
strategy: {}
|
||||
test: {}
|
||||
vars: {}
|
||||
version: 3.1.0
|
||||
version: 3.3.0
|
||||
@@ -474,3 +474,105 @@ releases:
|
||||
- 134-check-mode.yml
|
||||
- tailscale-role.yml
|
||||
release_date: '2026-11-26'
|
||||
3.2.0:
|
||||
changes:
|
||||
bugfixes:
|
||||
- docker - Read the distribution release through ``ansible_facts['distribution_release']``
|
||||
for the APT source line, so the role works with ``inject_facts_as_vars`` set
|
||||
to false and in the ansible-core release that stops injecting facts as variables.
|
||||
The source line is unchanged.
|
||||
- gitea_runner - Read the timestamp of the forced re-registration backup through
|
||||
``ansible_facts['date_time']``, so the role works with ``inject_facts_as_vars``
|
||||
set to false and in the ansible-core release that stops injecting facts as
|
||||
variables. The backup name is unchanged.
|
||||
- system_baseline - Read the OS family through ``ansible_facts['os_family']``
|
||||
in the reboot check, so the role (and its ``reboot`` entry point) works with
|
||||
``inject_facts_as_vars`` set to false and in the ansible-core release that
|
||||
stops injecting facts as variables. Before, the task failed with ``'ansible_os_family'
|
||||
is undefined`` there.
|
||||
minor_changes:
|
||||
- cloudflared - New input ``cloudflared_tunnel_lookup_delay``, the seconds between
|
||||
the three retries of a 404 from the tunnel lookup while a new tunnel may not
|
||||
be visible yet. The default is 5, as before.
|
||||
- docker, system_baseline - The install tasks that only use the distribution's
|
||||
sources (docker's prerequisites, system_baseline's packages) refresh the APT
|
||||
cache only when it is older than an hour; before, every run refreshed it.
|
||||
Installs from a role's own APT source still refresh it on every run.
|
||||
- system_baseline - Add ``system_baseline_extra_packages`` and ``system_baseline_extra_remove_packages``
|
||||
(lists, default empty), which append to the resolved package lists, where
|
||||
setting ``system_baseline_essential_packages`` or ``system_baseline_remove_packages``
|
||||
replaces the profile's whole list. An extra ``tmux`` or ``unattended-upgrades``
|
||||
enables the matching task like a profile package. A package that one input
|
||||
installs and another purges stops the run before any change. With both inputs
|
||||
left at their default the role behaves as before.
|
||||
- system_baseline - Add the input ``system_baseline_skip_upgrade_during_vzdump``
|
||||
(default ``false``). With ``true`` on the ``pve`` system type, the main flow
|
||||
and the ``update`` entry point skip the apt upgrade while ``pvesh get /nodes/localhost/tasks
|
||||
--source active`` lists a ``vzdump`` task, and say so. With the default no
|
||||
``pvesh`` command runs and the upgrade is unchanged.
|
||||
- 'system_baseline - ``system_baseline_journal_max_use`` can be empty to leave
|
||||
journald alone: the role then writes no drop-in and does not restart ``systemd-journald``.
|
||||
The default stays ``200M``.'
|
||||
- 'system_baseline - ``system_baseline_journal_max_use`` is checked before any
|
||||
change: it must be empty or a size journald reads, a number with an optional
|
||||
upper-case ``B``, ``K``, ``M``, ``G``, ``T``, ``P`` or ``E``. A value journald
|
||||
rejects, which the role used to write into the drop-in as it was and journald
|
||||
then ignored (``infinity``, a lower-case unit, a line break), now stops the
|
||||
run; an empty value used to write an empty ``SystemMaxUse=``.'
|
||||
- 'traefik - New input ``traefik_release_url`` sets where the release archive
|
||||
and checksums are downloaded from, for a mirror (default: the GitHub releases,
|
||||
as before).'
|
||||
fragments:
|
||||
- 364-ansible-facts.yml
|
||||
- 399-extra-packages.yml
|
||||
- 400-skip-upgrade-during-vzdump.yml
|
||||
- 401-journal-max-use-empty.yml
|
||||
- apt-cache-valid-time.yml
|
||||
- cloudflared-tunnel-lookup-delay.yml
|
||||
- refusals-in-verify.yml
|
||||
- traefik-release-url.yml
|
||||
release_date: '2026-11-27'
|
||||
3.3.0:
|
||||
changes:
|
||||
bugfixes:
|
||||
- fail2ban - ``--check`` no longer fails on a host where fail2ban is not installed
|
||||
yet, through either entry point; the preview reports the install and skips
|
||||
the configuration, service and jail tasks.
|
||||
- ufw - ``--check`` no longer fails on a host where ufw is not installed yet;
|
||||
the preview reports the install and skips the tasks that need the ``ufw``
|
||||
binary.
|
||||
minor_changes:
|
||||
- 'docker - New input ``docker_keyring_checksum``: the Docker APT key is verified
|
||||
against a pinned sha256, and a changed key fails the install until a person
|
||||
has checked it and updated the hash. Set ``docker_keyring_checksum`` too when
|
||||
``docker_gpg_url`` is overridden.'
|
||||
- nfs_client - New role. Installs ``nfs-common`` and manages NFS mount entries
|
||||
in ``/etc/fstab`` from ``nfs_client_mounts`` (``src``, ``path``, optional
|
||||
``opts`` and ``state`` ``present`` or ``absent``), with ``nfs_client_default_opts``
|
||||
(default ``_netdev,nofail``) for an entry that sets none. It creates each
|
||||
mount point without owner, group or mode, writes only the fstab line, never
|
||||
mounts or unmounts, and reloads systemd after a change. An ``absent`` entry
|
||||
loses its line and nothing else. Declares Ubuntu noble and resolute; the molecule
|
||||
scenario never mounts a share.
|
||||
- 'pve_vm - New role. Clones a Proxmox VE QEMU VM from a template through the
|
||||
Proxmox API (``community.proxmox``), sets its cloud-init user, SSH keys and
|
||||
network, updates an existing VM only on detected drift, grows its boot disk,
|
||||
applies the power state, waits for SSH and cloud-init and (with ``pve_vm_allow_destroy``)
|
||||
deletes it. It never sets a cloud-init password and deletes one stored on
|
||||
the VM. Only ``pve_vm_exists`` is set for later plays. The input checks run
|
||||
under ``tags: always``, so a tag-filtered run also needs ``pve_vm_api_user``
|
||||
and ``pve_vm_api_token_secret`` (and ``pve_vm_disk_size`` while ``pve_vm_manage_disk``
|
||||
is true). Declares Ubuntu noble and resolute guests; the molecule scenario
|
||||
covers the input validation and the drift detection, not the API lifecycle.'
|
||||
- traefik - The prerequisites install refreshes the APT cache only when it is
|
||||
older than an hour; before, every run refreshed it. A consumer who adds an
|
||||
APT source just before the role must refresh the cache first.
|
||||
fragments:
|
||||
- 402-nfs-client.yml
|
||||
- 448-docker-keyring-checksum.yml
|
||||
- 456-system-baseline-purge-batch.yml
|
||||
- 458-traefik-apt-cache-valid-time.yml
|
||||
- 478-ufw-fail2ban-check-mode.yml
|
||||
- 482-pve-vm.yml
|
||||
- system-baseline-internal-registers.yml
|
||||
release_date: '2026-12-01'
|
||||
@@ -1,8 +0,0 @@
|
||||
---
|
||||
minor_changes:
|
||||
- >-
|
||||
system_baseline - Add ``system_baseline_extra_packages`` and ``system_baseline_extra_remove_packages`` (lists, default empty), which
|
||||
append to the resolved package lists, where setting ``system_baseline_essential_packages`` or ``system_baseline_remove_packages``
|
||||
replaces the profile's whole list. An extra ``tmux`` or ``unattended-upgrades`` enables the matching task like a profile package.
|
||||
A package that one input installs and another purges stops the run before any change. With both inputs left at their default the
|
||||
role behaves as before.
|
||||
@@ -1,9 +0,0 @@
|
||||
---
|
||||
minor_changes:
|
||||
- >-
|
||||
system_baseline - ``system_baseline_journal_max_use`` can be empty to leave journald alone: the role then writes no drop-in and does not
|
||||
restart ``systemd-journald``. The default stays ``200M``.
|
||||
- >-
|
||||
system_baseline - ``system_baseline_journal_max_use`` is checked before any change: it must be empty, ``infinity`` or a number followed by
|
||||
``K``, ``M``, ``G`` or ``T``. A value in any other form, which the role used to write into the drop-in as it was (a bare number, ``1.5G``,
|
||||
a typo, a line break), now stops the run; an empty value used to write an empty ``SystemMaxUse=``.
|
||||
@@ -12,6 +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).
|
||||
[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
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
# 0003. Molecule runs in its own controller image, not the `ci` image
|
||||
|
||||
Status: accepted
|
||||
|
||||
## Context
|
||||
|
||||
[ADR 0002](0002-self-built-ci-and-molecule-images.md) built one `ci` image that bakes every CI
|
||||
tool, and Lint, Build and Molecule all pin it. A change to a tool only Lint uses (apm-cli,
|
||||
antsibull-changelog, a pre-commit hook environment) publishes a new `ci` version, and its pin
|
||||
pull request moves `CI_IMAGE` in `molecule.yml`. The scenario selector cannot tell what changed
|
||||
inside an image, so it runs every scenario. 9 of 18 `ci` pin pull requests over two weeks
|
||||
were Lint-only. Images are built only on push to `main`, so a bump and its pin never share a pull
|
||||
request.
|
||||
|
||||
## Decision
|
||||
|
||||
- **Molecule runs in a `molecule-controller` image**, separate from `ci`. It bakes only what
|
||||
Molecule needs: ansible-core, molecule, molecule-plugins, the Python packages of the Docker
|
||||
connection, and the collections of `requirements.yml` and
|
||||
`extensions/molecule/requirements.yml`.
|
||||
- **Its Python packages come from a requirements file and hash-pinned lock of its own.**
|
||||
- **`molecule.yml` pins it instead of `ci`**; Lint and Build keep `ci`.
|
||||
- **It follows ADR 0002 otherwise:** built by `image.yml`, versioned by CI, pinned by
|
||||
`<version>@sha256:<digest>`, moved by Renovate. This adds to ADR 0002's set of images; the
|
||||
rest of ADR 0002 stands.
|
||||
|
||||
## Reason
|
||||
|
||||
A `ci` pin pull request then touches only paths the selector ignores and runs no scenario. A
|
||||
`molecule-controller` pin pull request still runs every scenario, which is right: it changes
|
||||
Molecule's tools.
|
||||
|
||||
The cost: one more image and lock to maintain, its layers to estimate against the 100 MB limit,
|
||||
a hand-made first pin, and ansible-core pinned in two locks that must stay equal. A collection
|
||||
bump is an input of both images, so it publishes two versions and two pin pull requests.
|
||||
|
||||
The controller's requirements file and lock must not be on the selector's IGNORED list, so a
|
||||
bump of ansible-core or molecule there runs every scenario before it merges. Today
|
||||
`requirements-dev.txt` and `requirements-dev.lock` are on IGNORED, so such a bump selects no
|
||||
scenario unless it edits `meta/runtime.yml`; this decision does not change that list.
|
||||
|
||||
The implementation updates: `image.yml` (matrix, and its push `paths` unless the new files live
|
||||
under `images/`), `molecule.yml`,
|
||||
`scripts/run_molecule_in_ci_image.sh` (its pin comparison reads the `ci` image's checksums),
|
||||
`scripts/check_image_versions.py`, `scripts/check_bot_pr_diff.py` and
|
||||
`scripts/lock-requirements.sh` (they know only `requirements-dev.lock`), their tests, the
|
||||
`pip-compile` patterns in `renovate.json`, `images/AGENTS.md` (the consumer list, and "each
|
||||
molecule image is one Ubuntu release"), the Molecule rules in `.gitea/workflows/AGENTS.md`,
|
||||
`docs/images/` (a new page, and `ci.md`, which names Molecule as a consumer), the `ci`
|
||||
Dockerfile's description label, `docs/contributing/setup.md` if the clone's tools change, and the
|
||||
[Accepted risks](../../SECURITY.md#accepted-risks) entry "Pin bumps first behaviour-tested after
|
||||
they merge", which counts on the `ci` pin pull request running every scenario.
|
||||
|
||||
## Not done
|
||||
|
||||
- **The selector classifies the packages a lock change moves, to decide whether a `CI_IMAGE`
|
||||
bump matters:** a heuristic package list inside a script that judges pull requests.
|
||||
- **Status quo:** every Lint-only tool change keeps costing a full Molecule run.
|
||||
- **Grouping pin pull requests only:** adopted separately; it lowers the number of full runs
|
||||
but not the cause.
|
||||
@@ -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
|
||||
|
||||
@@ -15,10 +15,23 @@ trailers, are in [ai-assistance.md](ai-assistance.md).
|
||||
*Reason:* every change reaches `main` through the Lint and Build checks and a reviewer.
|
||||
*Held by:* control: branch protection on `main`.
|
||||
- **Do not push to someone else's branch or to a bot's branch; put your change in a pull request of
|
||||
your own.** Updating a branch from `main` with Gitea's update button is allowed.
|
||||
your own.** Updating a branch from `main` with Gitea's update button is allowed under the next
|
||||
two rules.
|
||||
*Reason:* a push changes a head its author already reviewed or scheduled to merge, and a hand-made
|
||||
commit on a `renovate/` branch makes Renovate stop rebasing it.
|
||||
*Held by:* aspirational.
|
||||
- **Update a pull request's branch from `main` only when it is next to merge: reviewed, green on its
|
||||
previous head, and the only branch being updated. After updating your own pull request, give it a
|
||||
scheduled merge; merge anyone else's as [reviewing.md](reviewing.md) says.**
|
||||
*Reason:* `main` blocks an outdated branch, so every update re-runs Lint, Build and Molecule, and
|
||||
a new head cancels the run in progress; an update made while another pull request merges first is
|
||||
wasted.
|
||||
*Held by:* aspirational.
|
||||
- **Never press the update button on a `renovate/` branch. When a Renovate pull request is next to
|
||||
merge and behind `main`, tick the rebase/retry checkbox in its description; Renovate rebases it at
|
||||
its next run.**
|
||||
*Reason:* the update button adds a hand-made commit, and Renovate stops rebasing that branch.
|
||||
*Held by:* aspirational.
|
||||
- **File an issue or open a pull request with the headings of the matching template in `.gitea/`,
|
||||
also when you file through the API, `tea` or an MCP server.**
|
||||
*Reason:* those routes skip the templates, and an agent's built-in body leaves out what review needs.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+6
-3
@@ -1,13 +1,13 @@
|
||||
---
|
||||
namespace: mortis
|
||||
name: kamino
|
||||
version: 3.1.0
|
||||
version: 3.3.0
|
||||
readme: README.md
|
||||
authors:
|
||||
- Defame1297
|
||||
description: >-
|
||||
Reusable, hardened Ansible roles for a self-hosted home lab (cloudflared, docker, fail2ban,
|
||||
gitea, gitea_runner, network_interfaces, pihole, pve_lxc, sshd, system_baseline,
|
||||
gitea, gitea_runner, network_interfaces, nfs_client, pihole, pve_lxc, pve_vm, sshd, system_baseline,
|
||||
systemd_hardening, tailscale, traefik, ufw, user_management; _binary_update is internal).
|
||||
license:
|
||||
- GPL-3.0-or-later
|
||||
@@ -22,7 +22,7 @@ homepage: https://git.rkdr.net/mortis/kamino
|
||||
issues: https://git.rkdr.net/mortis/kamino/issues
|
||||
# CI tests the versions pinned in requirements.yml; the lower bounds here are not tested.
|
||||
# No upper bound, so a consumer's newer pin does not conflict. community.general is used by system_baseline and ufw,
|
||||
# ansible.posix by system_baseline and user_management, community.proxmox by pve_lxc (Proxmox VE guest lifecycle).
|
||||
# ansible.posix by nfs_client, system_baseline and user_management, community.proxmox by pve_lxc and pve_vm (Proxmox VE guest lifecycle).
|
||||
# community.proxmox's modules import the Python library proxmoxer (2.3 or later) on the controller; galaxy.yml
|
||||
# cannot declare a Python dependency, so the README says it and requirements-dev.txt pins it for CI.
|
||||
dependencies:
|
||||
@@ -39,6 +39,7 @@ build_ignore:
|
||||
- apm_modules
|
||||
- .apm-local
|
||||
- .claude
|
||||
- .config
|
||||
- .gitea
|
||||
- .gitignore
|
||||
- .pre-commit-config.yaml
|
||||
@@ -62,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/* \
|
||||
|
||||
+54
-13
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"description": "Run by .gitea/workflows/renovate.yml on this repository's own runner. Policy: automerge minor and patch, majors by hand. Every bot pull request must pass scripts/check_bot_pr_diff.py (lint workflow), which allows only version, tag, digest and pin lines. Image versions are assigned by the Images workflow when an image's inputs change, so a bot pull request needs no version edit.",
|
||||
"description": "Run by .gitea/workflows/renovate.yml on this repository's own runner. Policy: automerge minor and patch, majors by hand. Every bot pull request must pass scripts/check_bot_pr_diff.py (lint workflow), which allows only version, tag, digest and pin lines. Image versions are assigned by the Images workflow when an image's inputs change, so a bot pull request needs no version edit. Updates open on Mondays (UTC), so any Monday run can act; the own image pins and vulnerability fixes found on osv.dev open at any time. The weekly window and the groups bound the volume, so there is no hourly pull request limit. Vulnerability fixes skip the release-age wait, so they are never automerged: a person checks a fix that had no time to be pulled as a compromised release. Base-image bumps are manual: every Dockerfile is FROM ubuntu, grouped with the job containers.",
|
||||
"extends": [
|
||||
"config:recommended",
|
||||
":enablePreCommit"
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"automerge": true,
|
||||
"automergeType": "pr",
|
||||
"prHourlyLimit": 5,
|
||||
"prHourlyLimit": 0,
|
||||
"minimumReleaseAge": "3 days",
|
||||
"minimumReleaseAgeBehaviour": "timestamp-optional",
|
||||
"timezone": "UTC",
|
||||
@@ -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.+!_-]*)"
|
||||
@@ -90,7 +92,7 @@
|
||||
],
|
||||
"packageRules": [
|
||||
{
|
||||
"description": "Dockerfile base-image tag and digest bumps (images/*/Dockerfile) MAY automerge. Kamino is the untrusted side and the bump pull request's own CI exercises the new image before the merge. Placed first so the major-version rule below still turns automerge off. The merge publishes a new image version.",
|
||||
"description": "Dockerfile base-image tag and digest bumps (images/*/Dockerfile) MAY automerge. Kamino is the untrusted side and the bump pull request's own CI exercises the new image before the merge. Placed first so the major-version rule below still turns automerge off. The merge publishes a new image version. Today every Dockerfile is FROM ubuntu, whose bumps join the manual ubuntu base images group below; this rule is the safety net for a future base image of another kind.",
|
||||
"matchManagers": [
|
||||
"dockerfile"
|
||||
],
|
||||
@@ -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"
|
||||
@@ -145,12 +147,18 @@
|
||||
"allowedVersions": "<=26.10.1"
|
||||
},
|
||||
{
|
||||
"description": "The job containers of image.yml (matrix job_image, ubuntu by digest) hold the org registry push credential while the image job runs: never automerged, and kept in their own branch so the Dockerfile base-image bumps are not held back with them.",
|
||||
"description": "The job containers of image.yml (matrix job_image, ubuntu by digest) hold the org registry push credential while the image job runs: never automerged. Their ubuntu bumps share one branch with the Dockerfile FROM bumps (ubuntu base images rule below), so that pull request is manual too: a group automerges only if every update in it does.",
|
||||
"matchFileNames": [
|
||||
".gitea/workflows/image.yml"
|
||||
],
|
||||
"automerge": false,
|
||||
"additionalBranchPrefix": "job-container-"
|
||||
"automerge": false
|
||||
},
|
||||
{
|
||||
"description": "The Dockerfile FROM digests and the image.yml job_image digests of one Ubuntu update move in one pull request, so the release pair stays in step and one Images run covers both.",
|
||||
"matchPackageNames": [
|
||||
"ubuntu"
|
||||
],
|
||||
"groupName": "ubuntu base images"
|
||||
},
|
||||
{
|
||||
"description": "Safety net only: kaniko is pinned by layer digests in image.yml and no Renovate manager reads them, so it is updated by hand. If a manager ever starts to read it, its bumps are not automerged.",
|
||||
@@ -160,11 +168,15 @@
|
||||
"automerge": false
|
||||
},
|
||||
{
|
||||
"description": "Pin follow-up for our own images (git.rkdr.net/mortis/*): moves the image:<version>@sha256:<digest> pins of lint.yml, build.yml, molecule.yml and gitea-release-key.yml to the newest published version and its digest, and automerges. The Images workflow's completion starts a Renovate run, so this pull request opens minutes after a new version is pushed. The pull request's own Lint and Build run in the new image before the merge, and scripts/check_bot_pr_diff.py allows only these pin lines. The registry lists tags and digests anonymously, so no hostRules are needed. A major version stays manual (rule above).",
|
||||
"description": "Pin follow-up for our own images (git.rkdr.net/mortis/*): moves the image:<version>@sha256:<digest> pins of lint.yml, build.yml, molecule.yml and gitea-release-key.yml to the newest published version and its digest, and automerges. The Images workflow's completion starts a Renovate run, so this pull request opens minutes after a new version is pushed. The pull request's own Lint and Build run in the new image before the merge, and scripts/check_bot_pr_diff.py allows only these pin lines. The registry lists tags and digests anonymously, so no hostRules are needed. A major version stays manual (rule above). One pull request moves every image an Images run published (ci and both molecule images), so one Molecule run tests them together. Exempt from the weekly schedule, so the pins on main catch up with a new image within minutes.",
|
||||
"matchPackageNames": [
|
||||
"git.rkdr.net/mortis/**"
|
||||
],
|
||||
"automerge": true
|
||||
"automerge": true,
|
||||
"groupName": "own CI images",
|
||||
"schedule": [
|
||||
"at any time"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Look the pre-commit hook repositories up with git ls-remote (git-tags) instead of the GitHub API. This run has no GitHub token, and the github-tags datasource then either skips every hook (skipReason github-token-required, dry run 3880) or is refused at once with 403 rate limit (githubTokenWarn off, local run). git-tags needs no API and no credential, and it uses the dereferenced hash of an annotated tag, so the new rev is the commit, as pre-commit needs. The `# frozen:` form is kept by the manager's own replace template. It works only together with RENOVATE_GITHUB_TOKEN_WARN=false in renovate.yml: the token check runs after extraction and skips every github-tags dependency before a package rule can change its datasource (local run, Renovate 44.161.0). git-tags has no release timestamps, so minimumReleaseAge cannot delay a hook bump: hook bumps are never automerged, a person reviews each one.",
|
||||
@@ -177,16 +189,45 @@
|
||||
"overrideDatasource": "git-tags",
|
||||
"overridePackageName": "https://github.com/{{{depName}}}",
|
||||
"automerge": false
|
||||
},
|
||||
{
|
||||
"description": "Lint and build tooling in one weekly pull request across requirements-dev.lock and the ci image's uv pin, so one ci image build instead of one per tool.",
|
||||
"matchDatasources": [
|
||||
"pypi"
|
||||
],
|
||||
"matchPackageNames": [
|
||||
"apm-cli",
|
||||
"antsibull-changelog",
|
||||
"galaxy-importer",
|
||||
"reuse",
|
||||
"pre-commit",
|
||||
"uv"
|
||||
],
|
||||
"groupName": "lint tooling"
|
||||
},
|
||||
{
|
||||
"description": "The pre-commit hooks in one weekly pull request; never automerged (rule above).",
|
||||
"matchManagers": [
|
||||
"pre-commit"
|
||||
],
|
||||
"groupName": "pre-commit hooks"
|
||||
}
|
||||
],
|
||||
"lockFileMaintenance": {
|
||||
"enabled": true,
|
||||
"schedule": [
|
||||
"before 6am on monday"
|
||||
"on monday"
|
||||
],
|
||||
"automerge": false,
|
||||
"labels": [
|
||||
"lock-file-maintenance"
|
||||
]
|
||||
},
|
||||
"schedule": [
|
||||
"on monday"
|
||||
],
|
||||
"osvVulnerabilityAlerts": true,
|
||||
"vulnerabilityAlerts": {
|
||||
"automerge": false
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
@@ -32,6 +32,7 @@ The role targets Ubuntu hosts that run the tunnel daemon, not Proxmox nodes, so
|
||||
| `cloudflared_zone_name` | `""` (asserted while `cloudflared_manage_dns`) | Zone of the ingress hostnames. |
|
||||
| `cloudflared_allow_dns_overwrite` | `[]` | Hostnames whose existing non-tunnel DNS record may be overwritten. |
|
||||
| `cloudflared_api_base_url` | `https://api.cloudflare.com/client/v4` | Cloudflare API base URL for the role's `uri` calls, no trailing slash. |
|
||||
| `cloudflared_tunnel_lookup_delay` | `5` | Seconds between the three retries of a 404 from the tunnel lookup, at least 0. |
|
||||
| `cloudflared_tunnel_name` | `{{ inventory_hostname }}-tunnel` | Tunnel name used by the `mint` entry point. |
|
||||
| `cloudflared_version` | pinned in `defaults/main.yml` | Release tag, `YYYY.M.P`. |
|
||||
| `cloudflared_sha256_amd64` | pinned | SHA-256 of the amd64 binary. Update with the version. |
|
||||
|
||||
@@ -17,6 +17,8 @@ cloudflared_config_dir: "/etc/cloudflared"
|
||||
cloudflared_service_unit: "/etc/systemd/system/cloudflared.service"
|
||||
|
||||
cloudflared_api_base_url: "https://api.cloudflare.com/client/v4"
|
||||
# Seconds between the three retries of a 404 from the tunnel lookup.
|
||||
cloudflared_tunnel_lookup_delay: 5
|
||||
|
||||
cloudflared_tunnel_name: "{{ inventory_hostname }}-tunnel"
|
||||
|
||||
|
||||
@@ -102,6 +102,13 @@ argument_specs:
|
||||
Base URL of the Cloudflare API, without a trailing slash. Prefixed to every request the role makes with
|
||||
C(ansible.builtin.uri) (tunnel lookup and delete, zone lookup and DNS record listing). The
|
||||
C(community.general.cloudflare_dns) tasks always use the public endpoint.
|
||||
cloudflared_tunnel_lookup_delay:
|
||||
type: int
|
||||
default: 5
|
||||
description:
|
||||
- >-
|
||||
Seconds between the three retries of the tunnel lookup when Cloudflare answers 404, which right
|
||||
after a mint can be read-after-write lag rather than a deleted tunnel. At least 0.
|
||||
cloudflared_tunnel_name:
|
||||
type: raw
|
||||
description:
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
cloudflared_user: "{{ cloudflared_test_case.vars.cloudflared_user | default('cloudflared') }}"
|
||||
cloudflared_install_dir: "{{ cloudflared_test_case.vars.cloudflared_install_dir | default('/usr/local/bin') }}"
|
||||
cloudflared_config_dir: "{{ cloudflared_test_case.vars.cloudflared_config_dir | default('/etc/cloudflared') }}"
|
||||
# The stub answers at once, so the retries need no wait; they still run.
|
||||
cloudflared_tunnel_lookup_delay: "{{ cloudflared_test_case.vars.cloudflared_tunnel_lookup_delay | default(0) }}"
|
||||
|
||||
# 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.
|
||||
|
||||
@@ -157,6 +157,9 @@
|
||||
- name: tunnel-id-not-uuid
|
||||
vars: {cloudflared_tunnel_id: not-a-uuid}
|
||||
expect: must be a lowercase UUID
|
||||
- name: lookup-delay-negative
|
||||
vars: {cloudflared_tunnel_lookup_delay: -1}
|
||||
expect: cloudflared_tunnel_lookup_delay must be a whole number of seconds, at least 0
|
||||
- name: tunnel-not-minted
|
||||
vars: {cloudflared_tunnel_id: ""}
|
||||
expect: run the mint entry point first
|
||||
@@ -172,7 +175,7 @@
|
||||
- name: tunnel-deleted
|
||||
vars: {cloudflared_tunnel_id: 6f1a6e2c-0000-4000-8000-000000000002}
|
||||
expect: no longer exists on Cloudflare
|
||||
# Retried three times, 5 s apart, before the 404 is trusted.
|
||||
# Retried three times (with no delay here) before the 404 is trusted.
|
||||
- name: tunnel-unknown
|
||||
vars: {cloudflared_tunnel_id: 6f1a6e2c-0000-4000-8000-00000000000f}
|
||||
expect: (HTTP 404)
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# briefly before trusting it.
|
||||
until: __cloudflared_tunnel_lookup.status | default(0) == 200
|
||||
retries: 3
|
||||
delay: 5
|
||||
delay: "{{ cloudflared_tunnel_lookup_delay }}"
|
||||
# Running out of retries fails the task whatever its status, and no_log would hide why: the
|
||||
# two tasks below fail instead, with the re-mint instructions for a 404.
|
||||
ignore_errors: true # noqa: ignore-errors
|
||||
|
||||
@@ -63,6 +63,12 @@
|
||||
newline or %, and the two directories must be absolute paths.
|
||||
quiet: true
|
||||
|
||||
- name: Require a non-negative tunnel lookup delay
|
||||
ansible.builtin.assert:
|
||||
that: cloudflared_tunnel_lookup_delay | int(-1) >= 0
|
||||
fail_msg: cloudflared_tunnel_lookup_delay must be a whole number of seconds, at least 0.
|
||||
quiet: true
|
||||
|
||||
# The role never creates the tunnel on its main entry point. Defined and empty (or null) counts
|
||||
# as missing, as in the mint entry point, so the two cannot disagree.
|
||||
- name: Require the minted tunnel secrets
|
||||
|
||||
@@ -4,7 +4,7 @@ Installs Docker Engine from the upstream Docker APT repository, optionally updat
|
||||
|
||||
## Supported platforms
|
||||
|
||||
Ubuntu 24.04 (noble) and 26.04 (resolute), the platforms the molecule scenario runs on. The key and repository URLs point at `download.docker.com/linux/ubuntu`, and the source line uses `ansible_distribution_release`. The apt architecture is derived from the host (`x86_64` gives `amd64`, `aarch64` gives `arm64`); any other architecture fails the play until `docker_apt_arch` is set. A limited molecule scenario covers the role's own logic (see [Tests](#tests)); the real Docker Engine is not tested.
|
||||
Ubuntu 24.04 (noble) and 26.04 (resolute), the platforms the molecule scenario runs on. The key and repository URLs point at `download.docker.com/linux/ubuntu`, and the source line uses `ansible_facts['distribution_release']`. The apt architecture is derived from the host (`x86_64` gives `amd64`, `aarch64` gives `arm64`); any other architecture fails the play until `docker_apt_arch` is set. A limited molecule scenario covers the role's own logic (see [Tests](#tests)); the real Docker Engine is not tested.
|
||||
|
||||
The role targets Ubuntu hosts only: it installs from Docker's Ubuntu repository, so it does not cover Debian trixie (Proxmox hosts).
|
||||
|
||||
@@ -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 source line has the architecture, the `signed-by` keyring and `ansible_distribution_release`.
|
||||
- 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
|
||||
|
||||
@@ -6,7 +6,7 @@ argument_specs:
|
||||
- >-
|
||||
Installs Docker Engine from the upstream APT repository, or removes it when C(docker_remove) is true. Optionally updates the packages to
|
||||
the current candidate versions, then adds C(docker_users) to C(docker_group).
|
||||
- Needs gathered facts, because the APT source uses C(ansible_distribution_release).
|
||||
- Needs gathered facts, because the APT source uses C(ansible_facts['distribution_release']).
|
||||
options:
|
||||
docker_remove:
|
||||
type: bool
|
||||
@@ -49,11 +49,19 @@ 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
|
||||
description:
|
||||
- Base URL of the repository. The source line uses C(ansible_distribution_release) and the C(stable) component.
|
||||
- Base URL of the repository. The source line uses C(ansible_facts['distribution_release']) and the C(stable) component.
|
||||
docker_apt_arch:
|
||||
type: str
|
||||
default: ""
|
||||
|
||||
@@ -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,118 +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
|
||||
|
||||
# The plays below are refusals: argument_specs rejects the wrong types before any task runs,
|
||||
# so the idempotence run stays clean. A sentinel in the failure message tells "the role
|
||||
# refused" from "the fail task after the role ran", which a bare rescue cannot.
|
||||
- name: A docker_users value that is not a list is refused
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
vars:
|
||||
docker_users:
|
||||
not: a-list
|
||||
tasks:
|
||||
- name: Apply the role with a mapping for docker_users
|
||||
block:
|
||||
- name: Include the role
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.docker
|
||||
- name: Fail when the wrong type was accepted
|
||||
ansible.builtin.fail:
|
||||
msg: MOLECULE-ACCEPTED
|
||||
rescue:
|
||||
- name: The argument check stopped the play
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'MOLECULE-ACCEPTED' not in ansible_failed_result.msg | default('')"
|
||||
- "'docker_users' in ansible_failed_result.msg | default('')"
|
||||
quiet: true
|
||||
|
||||
- name: A docker_remove value that is not a boolean is refused
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
vars:
|
||||
docker_remove: maybe
|
||||
tasks:
|
||||
- name: Apply the role with a non-boolean docker_remove
|
||||
block:
|
||||
- name: Include the role
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.docker
|
||||
- name: Fail when the wrong type was accepted
|
||||
ansible.builtin.fail:
|
||||
msg: MOLECULE-ACCEPTED
|
||||
rescue:
|
||||
- name: The argument check stopped the play
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'MOLECULE-ACCEPTED' not in ansible_failed_result.msg | default('')"
|
||||
- "'docker_remove' in ansible_failed_result.msg | default('')"
|
||||
quiet: true
|
||||
|
||||
# The architecture is written into the one-line apt source, so a value with a space or a bracket is refused before anything
|
||||
# changes. The derived default is covered by the converge above and verify.yml (the container is x86_64, so the source says amd64).
|
||||
- name: A docker_apt_arch value that would corrupt the apt source is refused
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
vars:
|
||||
docker_apt_arch: "bad arch"
|
||||
tasks:
|
||||
- name: Apply the role with a bad architecture
|
||||
block:
|
||||
- name: Include the role
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.docker
|
||||
- name: Fail when the bad architecture was accepted
|
||||
ansible.builtin.fail:
|
||||
msg: MOLECULE-ACCEPTED
|
||||
rescue:
|
||||
- name: The validation stopped the play
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'MOLECULE-ACCEPTED' not in ansible_failed_result.msg | default('')"
|
||||
- "'docker_apt_arch' in ansible_failed_result.msg | default('')"
|
||||
quiet: true
|
||||
|
||||
# The unit timings are checked before anything changes.
|
||||
- name: A docker_stop_at_shutdown_timeout of 0 is refused
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
vars:
|
||||
docker_stop_at_shutdown_timeout: 0
|
||||
tasks:
|
||||
- name: Apply the role with a timeout of 0
|
||||
block:
|
||||
- name: Include the role
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.docker
|
||||
- name: Fail when the timeout was accepted
|
||||
ansible.builtin.fail:
|
||||
msg: MOLECULE-ACCEPTED
|
||||
rescue:
|
||||
- name: The validation stopped the play
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'MOLECULE-ACCEPTED' not in ansible_failed_result.msg | default('')"
|
||||
- "'docker_stop_at_shutdown_timeout' in ansible_failed_result.msg | default('')"
|
||||
quiet: true
|
||||
|
||||
# A key that docker_daemon_options and a dedicated input both set, and a log value dockerd would reject, stop the run before any change.
|
||||
- name: A bad daemon setting is refused
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Apply the role with each bad setting
|
||||
ansible.builtin.include_tasks: tasks/refuse_daemon.yml
|
||||
vars:
|
||||
docker_refused: "{{ item }}"
|
||||
loop:
|
||||
- {docker_live_restore: true, docker_daemon_options: {live-restore: false}}
|
||||
- {docker_log_driver: local, docker_daemon_options: {log-driver: json-file}}
|
||||
- {docker_log_max_size: 10m, docker_daemon_options: {log-opts: {max-size: 1m}}}
|
||||
- {docker_log_driver: Local}
|
||||
- {docker_log_max_size: ten}
|
||||
- {docker_log_max_file: "0"}
|
||||
- {docker_log_max_file: "-1"}
|
||||
@@ -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
|
||||
@@ -1,4 +1,133 @@
|
||||
---
|
||||
# The refusals need no container, so they run once, on the controller, in check mode so that a
|
||||
# refusal that regressed cannot change it. The controller has no gathered facts, so a play that
|
||||
# does not test the architecture sets it. A sentinel in the failure message tells "the role
|
||||
# refused" from "the fail task after the role ran", which a bare rescue cannot.
|
||||
- name: A docker_users value that is not a list is refused
|
||||
hosts: localhost
|
||||
connection: local
|
||||
check_mode: true
|
||||
gather_facts: false
|
||||
vars:
|
||||
docker_apt_arch: amd64
|
||||
docker_users:
|
||||
not: a-list
|
||||
tasks:
|
||||
- name: Apply the role with a mapping for docker_users
|
||||
block:
|
||||
- name: Include the role
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.docker
|
||||
- name: Fail when the wrong type was accepted
|
||||
ansible.builtin.fail:
|
||||
msg: MOLECULE-ACCEPTED
|
||||
rescue:
|
||||
- name: The argument check stopped the play
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'MOLECULE-ACCEPTED' not in ansible_failed_result.msg | default('')"
|
||||
- "'docker_users' in ansible_failed_result.msg | default('')"
|
||||
quiet: true
|
||||
|
||||
- name: A docker_remove value that is not a boolean is refused
|
||||
hosts: localhost
|
||||
connection: local
|
||||
check_mode: true
|
||||
gather_facts: false
|
||||
vars:
|
||||
docker_apt_arch: amd64
|
||||
docker_remove: maybe
|
||||
tasks:
|
||||
- name: Apply the role with a non-boolean docker_remove
|
||||
block:
|
||||
- name: Include the role
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.docker
|
||||
- name: Fail when the wrong type was accepted
|
||||
ansible.builtin.fail:
|
||||
msg: MOLECULE-ACCEPTED
|
||||
rescue:
|
||||
- name: The argument check stopped the play
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'MOLECULE-ACCEPTED' not in ansible_failed_result.msg | default('')"
|
||||
- "'docker_remove' in ansible_failed_result.msg | default('')"
|
||||
quiet: true
|
||||
|
||||
# The architecture is written into the one-line apt source, so a value with a space or a bracket is refused before anything
|
||||
# changes. The derived default is covered by converge.yml and the plays below (the container is x86_64, so the source says amd64).
|
||||
- name: A docker_apt_arch value that would corrupt the apt source is refused
|
||||
hosts: localhost
|
||||
connection: local
|
||||
check_mode: true
|
||||
gather_facts: false
|
||||
vars:
|
||||
docker_apt_arch: "bad arch"
|
||||
tasks:
|
||||
- name: Apply the role with a bad architecture
|
||||
block:
|
||||
- name: Include the role
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.docker
|
||||
- name: Fail when the bad architecture was accepted
|
||||
ansible.builtin.fail:
|
||||
msg: MOLECULE-ACCEPTED
|
||||
rescue:
|
||||
- name: The validation stopped the play
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'MOLECULE-ACCEPTED' not in ansible_failed_result.msg | default('')"
|
||||
- "'docker_apt_arch' in ansible_failed_result.msg | default('')"
|
||||
quiet: true
|
||||
|
||||
# The unit timings are checked before anything changes.
|
||||
- name: A docker_stop_at_shutdown_timeout of 0 is refused
|
||||
hosts: localhost
|
||||
connection: local
|
||||
check_mode: true
|
||||
gather_facts: false
|
||||
vars:
|
||||
docker_apt_arch: amd64
|
||||
docker_stop_at_shutdown_timeout: 0
|
||||
tasks:
|
||||
- name: Apply the role with a timeout of 0
|
||||
block:
|
||||
- name: Include the role
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.docker
|
||||
- name: Fail when the timeout was accepted
|
||||
ansible.builtin.fail:
|
||||
msg: MOLECULE-ACCEPTED
|
||||
rescue:
|
||||
- name: The validation stopped the play
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'MOLECULE-ACCEPTED' not in ansible_failed_result.msg | default('')"
|
||||
- "'docker_stop_at_shutdown_timeout' in ansible_failed_result.msg | default('')"
|
||||
quiet: true
|
||||
|
||||
# A key that docker_daemon_options and a dedicated input both set, and a log value dockerd would reject, stop the run before any change.
|
||||
- name: A bad daemon setting is refused
|
||||
hosts: localhost
|
||||
connection: local
|
||||
check_mode: true
|
||||
gather_facts: false
|
||||
vars:
|
||||
docker_apt_arch: amd64
|
||||
tasks:
|
||||
- name: Apply the role with each bad setting
|
||||
ansible.builtin.include_tasks: tasks/refuse_daemon.yml
|
||||
vars:
|
||||
docker_refused: "{{ item }}"
|
||||
loop:
|
||||
- {docker_live_restore: true, docker_daemon_options: {live-restore: false}}
|
||||
- {docker_log_driver: local, docker_daemon_options: {log-driver: json-file}}
|
||||
- {docker_log_max_size: 10m, docker_daemon_options: {log-opts: {max-size: 1m}}}
|
||||
- {docker_log_driver: Local}
|
||||
- {docker_log_max_size: ten}
|
||||
- {docker_log_max_file: "0"}
|
||||
- {docker_log_max_file: "-1"}
|
||||
|
||||
# What the role is for, as far as stand-in packages can show it: the repository key and the
|
||||
# source line are in place and apt really used them, the packages are installed from that
|
||||
# repository, the unit is enabled and running, and the user joined the group. The second play
|
||||
@@ -168,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
|
||||
@@ -233,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
|
||||
|
||||
@@ -266,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
|
||||
|
||||
@@ -278,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
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
- curl
|
||||
state: present
|
||||
update_cache: true
|
||||
cache_valid_time: 3600
|
||||
tags: [docker, install]
|
||||
|
||||
- name: Ensure APT keyrings directory exists
|
||||
@@ -22,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]
|
||||
|
||||
@@ -30,7 +32,7 @@
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ docker_apt_list_path }}"
|
||||
content: |
|
||||
deb [arch={{ __docker_apt_arch }} signed-by={{ docker_keyring_path }}] {{ docker_repo_base_url }} {{ ansible_distribution_release }} stable
|
||||
deb [arch={{ __docker_apt_arch }} signed-by={{ docker_keyring_path }}] {{ docker_repo_base_url }} {{ ansible_facts['distribution_release'] }} stable
|
||||
mode: "0644"
|
||||
register: __docker_apt_source
|
||||
tags: [docker, install]
|
||||
@@ -40,6 +42,7 @@
|
||||
ansible.builtin.apt:
|
||||
name: "{{ docker_packages }}"
|
||||
state: present
|
||||
# Always refreshed: a run that wrote the source line but failed to fetch its lists heals here.
|
||||
update_cache: true
|
||||
register: __docker_packages
|
||||
notify: Restart docker
|
||||
|
||||
@@ -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
|
||||
@@ -18,7 +18,7 @@ The role targets Ubuntu hosts that run CI jobs, not Proxmox nodes, so it does no
|
||||
- The registration token is generated on the fly, held in a `no_log` fact and passed to `gitea-runner register` through the `GITEA_RUNNER_REGISTRATION_TOKEN` environment variable, not argv. It is never written to a file by the role.
|
||||
- The role creates `gitea_runner_group` and `gitea_runner_user` when they are missing; an existing account (for example the SSH login user) is reused.
|
||||
- Docker is installed by this role (`tasks/docker.yml`) on first install, not by `mortis.kamino.docker`.
|
||||
- Fact gathering must be on for `gitea_runner_force_register`: the backup name uses `ansible_date_time`.
|
||||
- Fact gathering must be on for `gitea_runner_force_register`: the backup name uses `ansible_facts['date_time']`.
|
||||
- Updates: the update path stages the verified binary and hands the swap to `mortis.kamino._binary_update`, an internal role of this Collection.
|
||||
- `gitea_runner_version` is asserted at role start to be a plain `X.Y.Z` release number, with no leading `v`. Pin it in inventory to move the runner independently of Collection releases; the role default changes only with a release.
|
||||
- The executor and job image of a job come from its label's suffix (`:host` or `docker://<image>`); a label with no suffix runs its jobs on the host. `config.yaml` has no keys for them.
|
||||
|
||||
@@ -19,7 +19,7 @@ argument_specs:
|
||||
C(gitea_runner_token_host), C(gitea_runner_instance_url) and C(gitea_runner_name) have empty role defaults and
|
||||
are asserted only when registration runs, so a run that never registers is not blocked.
|
||||
- >-
|
||||
Reads gathered facts (C(ansible_date_time), for the forced re-registration backup name) and
|
||||
Reads gathered facts (C(ansible_facts['date_time']), for the forced re-registration backup name) and
|
||||
C(ansible_check_mode).
|
||||
options:
|
||||
gitea_runner_remove:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
src: "{{ gitea_runner_work_dir }}/.runner"
|
||||
dest: "{{ gitea_runner_work_dir }}/.runner.bak.{{ ansible_date_time.iso8601_basic_short }}"
|
||||
dest: "{{ gitea_runner_work_dir }}/.runner.bak.{{ ansible_facts['date_time']['iso8601_basic_short'] }}"
|
||||
remote_src: true
|
||||
owner: "{{ gitea_runner_state.stat.pw_name }}"
|
||||
group: "{{ gitea_runner_state.stat.gr_name }}"
|
||||
|
||||
@@ -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
|
||||
@@ -98,8 +98,8 @@
|
||||
- name: The user is a system account without a login shell
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- getent_passwd.pihole[5] == '/usr/sbin/nologin'
|
||||
- getent_passwd.pihole[1] | int < 1000
|
||||
- ansible_facts['getent_passwd'].pihole[5] == '/usr/sbin/nologin'
|
||||
- ansible_facts['getent_passwd'].pihole[1] | int < 1000
|
||||
quiet: true
|
||||
|
||||
# Neither check run (before and after the converge) ran the installer or the handler.
|
||||
|
||||
@@ -0,0 +1,133 @@
|
||||
# pve_vm
|
||||
|
||||
Clones a Proxmox VE QEMU VM from a template through the Proxmox API and keeps its configuration, cloud-init settings, boot disk size and power state in line with the inputs. The configuration is updated only when drift is detected. Variables and their types are defined in [`meta/argument_specs.yml`](meta/argument_specs.yml), which is the source of truth.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
Ubuntu 24.04 (noble) and 26.04 (resolute) guests, the platforms the molecule scenario runs on. The play runs for the VM's inventory host: the API calls run on the controller (`pve_vm_delegate`, default `localhost`), and only the cloud-init wait runs on the guest itself. The template the VM is cloned from must be a cloud-init image of one of these releases.
|
||||
|
||||
The guest-side cloud-init wait (`cloud-init status --wait`) is untested on both releases: the test images do not ship cloud-init.
|
||||
|
||||
The role targets the guests, not the Proxmox node, so it does not declare Debian trixie: the node is reached only through its API.
|
||||
|
||||
## Requirements and run order
|
||||
|
||||
- Use it by its fully qualified name, `mortis.kamino.pve_vm`, in a play over the VM hosts with `gather_facts: false`: the VM may not exist yet when the play starts.
|
||||
- The controller needs the `community.proxmox` collection and the Python libraries `proxmoxer` 2.3 or later and `requests`.
|
||||
- Role dependencies: none.
|
||||
- `pve_vm_node` and `pve_vm_vmid` are required. `pve_vm_api_user` and `pve_vm_api_token_secret` have no usable default and are asserted non-empty before any change; `pve_vm_disk_size` too while `pve_vm_manage_disk` is true, unless `pve_vm_state` is `absent`.
|
||||
- `pve_vm_api_host` defaults to the `ansible_host` of `pve_vm_node` from hostvars, so the node must then be an inventory host even when only the VM hosts are targeted. Set `pve_vm_api_host` explicitly when the node is not in the inventory.
|
||||
- The VM's own `ansible_host` is the target of the SSH wait, and `inventory_hostname`, lowercased with underscores replaced by dashes, is its name in Proxmox.
|
||||
- Run it before any role that configures the inside of the VM. Gate those on `pve_vm_exists` (below).
|
||||
|
||||
### API privileges
|
||||
|
||||
The API token needs, on the VM (or a pool or path above it), the template and the storage:
|
||||
|
||||
- `VM.Allocate`, `VM.Clone` (on the template), `VM.Audit` and `VM.Config.*` (`VM.Config.CDROM`, `VM.Config.CPU`, `VM.Config.Cloudinit`, `VM.Config.Disk`, `VM.Config.HWType`, `VM.Config.Memory`, `VM.Config.Network`, `VM.Config.Options`), and `VM.PowerMgmt` for the power state and restarts;
|
||||
- `Datastore.AllocateSpace` on the storage that holds the disks;
|
||||
- `SDN.Use` on the bridge or zone when `pve_vm_network` sets a network.
|
||||
|
||||
A token with privilege separation (the Proxmox default) gets the intersection of its own ACL and its user's: grant the role on both the user and the token.
|
||||
|
||||
## Role variables
|
||||
|
||||
| Variable | Default | Description |
|
||||
|---|---|---|
|
||||
| `pve_vm_node` | none (required) | Name of the Proxmox node that owns the VM. |
|
||||
| `pve_vm_vmid` | none (required) | VM id; for a clone, the new id. |
|
||||
| `pve_vm_state` | `present` | `present`, `started`, `stopped` or `absent`. `present` leaves the power state alone. |
|
||||
| `pve_vm_allow_destroy` | `false` | Required before `absent` deletes the VM. |
|
||||
| `pve_vm_clone_vmid` | none | Template id, read and asserted set only when the VM does not exist and is cloned. |
|
||||
| `pve_vm_full_clone` | `true` | Full clone instead of a linked clone. |
|
||||
| `pve_vm_delegate` | `localhost` | Host that runs the API module tasks. |
|
||||
| `pve_vm_wait_for_guest` | `true` | Wait for SSH and cloud-init when `started`. |
|
||||
| `pve_vm_agent` | `true` | QEMU guest agent. |
|
||||
| `pve_vm_onboot` | `true` | Start on node boot. |
|
||||
| `pve_vm_autostart` | `true` | Sent as `autostart` on update, never compared. |
|
||||
| `pve_vm_memory`, `pve_vm_cores`, `pve_vm_sockets` | none | Sizing, omitted when undefined. |
|
||||
| `pve_vm_network`, `pve_vm_ipconfig` | none | Mappings for `net` and `ipconfig`, see the spec. Omitted when undefined. |
|
||||
| `pve_vm_nameservers` | none | List, or space or comma separated string. Omitted when undefined. |
|
||||
| `pve_vm_sshkeys` | none | Cloud-init public keys, one per line. Omitted when undefined. |
|
||||
| `pve_vm_ci_user` | `""` | Cloud-init user (`ciuser`). Left out of the update and of the drift check when empty. |
|
||||
| `pve_vm_force_update` | `false` | Push the configuration and cloud-init settings without drift. |
|
||||
| `pve_vm_manage_disk` | `true` | Grow the boot disk to `pve_vm_disk_size`. |
|
||||
| `pve_vm_disk_size` | none (asserted) | Boot disk size, for example `32G`; only ever grown. |
|
||||
| `pve_vm_boot_disk` | `scsi0` | Disk key whose size is read and resized. |
|
||||
| `pve_vm_reboot_if_required` | `true` | Restart the VM after its boot disk was grown. |
|
||||
| `pve_vm_api_user` | `""` (asserted) | API user without realm; `@<pve_vm_api_realm>` is appended. |
|
||||
| `pve_vm_api_realm` | `pam` | Realm of the API user. |
|
||||
| `pve_vm_api_token_id` | `<pve_vm_api_user>-token` | API token id. |
|
||||
| `pve_vm_api_token_secret` | none (asserted) | API token secret, normally vaulted. No default. `no_log`. |
|
||||
| `pve_vm_api_host` | `ansible_host` of `pve_vm_node`, empty without it | Proxmox API address (port 8006). |
|
||||
|
||||
The `pve_vm_api_*` inputs are applied through `module_defaults` inside the block that holds every API call of the role, and the REST lookup of the VM config sends the header `PVEAPIToken=<user>@<realm>!<token_id>=<secret>`, derived in `vars/main.yml`.
|
||||
|
||||
## Variables set by the role
|
||||
|
||||
- `pve_vm_exists`: the VM exists on the node.
|
||||
|
||||
## Tags
|
||||
|
||||
The input validation (`tasks/validate.yml`) carries `always`, so it runs whatever tags are selected. No other task is tagged, so only a play-level tag applies to them.
|
||||
|
||||
## Example play
|
||||
|
||||
```yaml
|
||||
- name: Provision VMs
|
||||
hosts: vms
|
||||
gather_facts: false
|
||||
roles:
|
||||
- role: mortis.kamino.pve_vm
|
||||
vars:
|
||||
pve_vm_state: started
|
||||
pve_vm_node: pve1
|
||||
pve_vm_vmid: 210
|
||||
pve_vm_clone_vmid: 9000
|
||||
pve_vm_memory: 4096
|
||||
pve_vm_cores: 2
|
||||
pve_vm_disk_size: 32G
|
||||
pve_vm_network:
|
||||
net0:
|
||||
model: virtio
|
||||
bridge: vmbr0
|
||||
tag: 20
|
||||
pve_vm_ipconfig:
|
||||
ipconfig0: "ip={{ ansible_host }}/24,gw=192.0.2.1"
|
||||
pve_vm_ci_user: ubuntu
|
||||
pve_vm_sshkeys: "{{ lookup('ansible.builtin.file', 'files/admin.pub') }}"
|
||||
pve_vm_api_user: ansible
|
||||
pve_vm_api_token_secret: "{{ vault_pve_api_token_secret }}"
|
||||
|
||||
- name: Configure the VMs
|
||||
hosts: vms
|
||||
tasks:
|
||||
- name: Configure the guest
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.user_management
|
||||
when: pve_vm_exists | default(false)
|
||||
```
|
||||
|
||||
## Tests
|
||||
|
||||
The `default` molecule scenario runs in CI on Ubuntu 24.04 (noble) and 26.04 (resolute), the `molecule-ubuntu2404` and `molecule-ubuntu2604` images, which stand in for the guest. It runs `check` before the converge (a fresh host) and after it. The converge includes the internal task files `validate` and `detect_drift`, with a seeded VM config in Proxmox's own forms standing in for the REST lookup.
|
||||
|
||||
- Positive: `validate` accepts the scenario inputs, an unmanaged disk without a size, and `absent` without a size.
|
||||
- Negative: through `main`, a state outside the spec, a VM id that is not a number, a missing API user and a missing token secret; through `validate`, a missing token secret with `absent` and a managed disk without a size; through `create`, a clone without `pve_vm_clone_vmid`. Each asserts the expected message.
|
||||
- Drift: `detect_drift` over seeded configs: a matching config; the cloud-init user (empty input with a different or missing live `ciuser`, a changed user, a missing `ciuser`); the SSH keys (missing, rotated, empty input); a forced update; Proxmox's other value forms; every compared dimension at once; a dropped VLAN tag.
|
||||
- Static, over every task file under `tasks/` (subdirectories and nested `block`, `rescue` and `always` included): no task calling `proxmox_kvm` (as `community.proxmox.proxmox_kvm`, `community.general.proxmox_kvm`, `ansible.legacy.proxmox_kvm` or `proxmox_kvm`, by its key or through `action` or `local_action`, with its `args` merged) sends `cipassword`; no `module_defaults` entry of any task or block sets `cipassword`; exactly one such task deletes a stored `cipassword`, and it is `no_log`.
|
||||
|
||||
Not exercised: the API lifecycle (lookup, clone, update, the `cipassword` delete, resize, start, stop, restart and delete), as there is no Proxmox API in the scenario; and the guest-side cloud-init wait, as the test images do not ship cloud-init.
|
||||
|
||||
## Notes
|
||||
|
||||
- Idempotent: yes, as far as drift detection goes, which the scenario checks: the update runs only on drift. The API calls themselves rely on `community.proxmox`, which is not tested; the update and the `cipassword` delete report changed whenever they run.
|
||||
- Check mode: `--check` is the supported preview; a play-level `check_mode: true` is not supported. `proxmox_kvm` and `proxmox_disk` have no check mode support, so under `--check` the two reads (the `proxmox_kvm` `state: current` lookup and the REST GET of the VM config) run for real with `check_mode: false`, and every write is skipped and previewed instead: `Preview VM creation` for a missing VM (nothing else runs for it), `Report configuration drift` names the drifted dimensions and a pending disk resize (changed when the update or resize would run; it also reports on a real run), `Preview deletion of the stored cloud-init password` and `Preview VM power state`. Delete and restart are skipped. Roles gated on `pve_vm_exists` therefore run in check mode against existing VMs.
|
||||
- Drift is checked for name, CPU type (always `host`), memory, cores, sockets, cloud-init user, `ipconfig0`, nameservers, `onboot`, agent and `net0`. A missing `ciuser` or `sshkeys` key in the live config also counts, and so does the first run after a clone.
|
||||
- Cloud-init `sshkeys` are stored URL-encoded by Proxmox and cannot be diffed. A rotated `pve_vm_sshkeys` reaches an existing VM only through other detected drift, a fresh clone or `pve_vm_force_update: true`.
|
||||
- The role never sets a cloud-init password (`cipassword`): the first login is by SSH key. A `cipassword` stored on a VM is deleted on the next real run, by a `no_log` task.
|
||||
- Disk: the boot disk only grows. Only the digits of `pve_vm_disk_size` are compared with the current size in GB. After a resize the VM is restarted when `pve_vm_reboot_if_required` is true.
|
||||
- With `pve_vm_state: absent` and `pve_vm_allow_destroy` true the VM is stopped and deleted and the play ends for that host. Without `pve_vm_allow_destroy` the role only looks the VM up and changes nothing.
|
||||
- A VM that does not exist is detected by the module's "does not exist in cluster" message. Any other lookup failure stops the run, re-raised with only the module message.
|
||||
- TLS certificates of the API are not verified.
|
||||
- `no_log` is set on every task that carries the API token.
|
||||
@@ -0,0 +1,31 @@
|
||||
---
|
||||
pve_vm_state: present # present | started | stopped | absent
|
||||
pve_vm_allow_destroy: false
|
||||
pve_vm_full_clone: true
|
||||
pve_vm_wait_for_guest: true
|
||||
pve_vm_delegate: localhost
|
||||
pve_vm_agent: true
|
||||
pve_vm_onboot: true
|
||||
# Sent on update only; Proxmox does not return it in the VM config, so it is never compared.
|
||||
pve_vm_autostart: true
|
||||
pve_vm_manage_disk: true
|
||||
pve_vm_boot_disk: scsi0
|
||||
# Restart the VM after its boot disk was grown.
|
||||
pve_vm_reboot_if_required: true
|
||||
# Cloud-init (ciuser, sshkeys) is pushed to an existing VM only on other drift, on the first run
|
||||
# after a clone, or when this is true: Proxmox stores sshkeys URL-encoded, so a rotated key is not
|
||||
# detected as drift.
|
||||
pve_vm_force_update: false
|
||||
|
||||
# Cloud-init user (ciuser). Empty means not sent to Proxmox and not compared for drift.
|
||||
pve_vm_ci_user: ""
|
||||
|
||||
# Proxmox API credentials, asserted in tasks/validate.yml before any change. The user is the bare
|
||||
# name: the role appends @<pve_vm_api_realm>. The token secret, pve_vm_api_token_secret, is a secret
|
||||
# input with no default, normally vaulted.
|
||||
pve_vm_api_user: ""
|
||||
pve_vm_api_realm: pam
|
||||
pve_vm_api_token_id: "{{ pve_vm_api_user }}-token"
|
||||
# The Proxmox node's address. Guarded so the default templates to '' (and the argument validation
|
||||
# passes) on a host without pve_vm_node.
|
||||
pve_vm_api_host: "{{ hostvars[pve_vm_node].ansible_host if pve_vm_node is defined else '' }}"
|
||||
@@ -0,0 +1,197 @@
|
||||
---
|
||||
argument_specs:
|
||||
main:
|
||||
short_description: Manage a Proxmox VE QEMU VM cloned from a template
|
||||
description:
|
||||
- >-
|
||||
Looks the VM up through the Proxmox API, deletes it when C(pve_vm_state) is absent and C(pve_vm_allow_destroy) is
|
||||
true, otherwise clones it from the template C(pve_vm_clone_vmid) when it does not exist, compares the live
|
||||
configuration with the desired one, updates it only on drift, grows the boot disk, applies the power state
|
||||
and waits for SSH and cloud-init when the VM is started.
|
||||
- >-
|
||||
Every API call is delegated to C(pve_vm_delegate) (the REST lookup of the config to localhost) and authenticates
|
||||
with C(pve_vm_api_user) (bare user name, C(@<pve_vm_api_realm>) is appended), C(pve_vm_api_token_id),
|
||||
C(pve_vm_api_token_secret) and C(pve_vm_api_host), applied through C(module_defaults), and with the header
|
||||
C(PVEAPIToken=<user>@<realm>!<token_id>=<secret>) for the REST lookup, which the role derives from them in
|
||||
C(vars/main.yml) (internal, not an input). The user and the token secret have no usable default: they are
|
||||
asserted non-empty in the input validation, before any change. C(community.proxmox) and, on the controller,
|
||||
the Python libraries C(proxmoxer) 2.3 or later and C(requests) must be installed. TLS certificates are not
|
||||
verified.
|
||||
- >-
|
||||
Also reads C(ansible_host) (SSH wait), C(inventory_hostname) (the VM name, lowercased with underscores replaced by
|
||||
dashes) and C(ansible_check_mode). The role sets the fact C(pve_vm_exists) for later roles and plays.
|
||||
- >-
|
||||
Cloud-init sets C(ciuser) from C(pve_vm_ci_user); an empty user is left out of the update and not compared for
|
||||
drift. The role never sets a cloud-init password (C(cipassword)) and deletes one stored on the VM on a real run.
|
||||
options:
|
||||
pve_vm_node:
|
||||
type: str
|
||||
required: true
|
||||
description:
|
||||
- >-
|
||||
Name of the Proxmox node that owns the VM. When it is also an inventory host, its C(ansible_host) is the
|
||||
default of C(pve_vm_api_host).
|
||||
pve_vm_vmid:
|
||||
type: int
|
||||
required: true
|
||||
description:
|
||||
- VM id on the Proxmox node. For a clone it is the new id.
|
||||
pve_vm_state:
|
||||
type: str
|
||||
default: present
|
||||
choices: [present, started, stopped, absent]
|
||||
description:
|
||||
- >-
|
||||
C(present) keeps the VM configured without touching its power state. C(started) and C(stopped) also apply the
|
||||
power state, and C(started) additionally waits for SSH and cloud-init when C(pve_vm_wait_for_guest) is true.
|
||||
C(absent) deletes the VM, but only when C(pve_vm_allow_destroy) is true. Without it the role only looks the
|
||||
VM up and changes nothing, because creation, disk detection, update and power state are gated on a state
|
||||
other than C(absent).
|
||||
pve_vm_allow_destroy:
|
||||
type: bool
|
||||
default: false
|
||||
description:
|
||||
- Safety switch required before C(pve_vm_state=absent) deletes the VM.
|
||||
pve_vm_clone_vmid:
|
||||
type: raw
|
||||
description:
|
||||
- >-
|
||||
Template VM id to clone. Only read when the VM does not exist and the play is not in check mode. The type is
|
||||
not fixed, so it can be given as a Jinja expression that resolves to the id.
|
||||
pve_vm_full_clone:
|
||||
type: bool
|
||||
default: true
|
||||
description:
|
||||
- Full clone instead of a linked clone.
|
||||
pve_vm_delegate:
|
||||
type: str
|
||||
default: localhost
|
||||
description:
|
||||
- Host that executes the Proxmox API module tasks. The REST lookup of the VM config always runs on localhost.
|
||||
pve_vm_wait_for_guest:
|
||||
type: bool
|
||||
default: true
|
||||
description:
|
||||
- >-
|
||||
When true and C(pve_vm_state) is started, wait for SSH on port 22 of C(ansible_host) and then for
|
||||
C(cloud-init status --wait) on the guest.
|
||||
pve_vm_agent:
|
||||
type: bool
|
||||
default: true
|
||||
description:
|
||||
- Enable the QEMU guest agent. Compared with the live config for drift.
|
||||
pve_vm_onboot:
|
||||
type: bool
|
||||
default: true
|
||||
description:
|
||||
- Start the VM when the node boots. Compared with the live config for drift.
|
||||
pve_vm_autostart:
|
||||
type: bool
|
||||
default: true
|
||||
description:
|
||||
- >-
|
||||
Passed to the module as C(autostart) on update. Not compared for drift, because Proxmox does not return it in
|
||||
the VM config.
|
||||
pve_vm_memory:
|
||||
type: raw
|
||||
description:
|
||||
- Memory in MB. Omitted from the update when undefined. Compared as an integer for drift.
|
||||
pve_vm_cores:
|
||||
type: raw
|
||||
description:
|
||||
- CPU cores. Omitted from the update when undefined. Compared as an integer for drift.
|
||||
pve_vm_sockets:
|
||||
type: raw
|
||||
description:
|
||||
- CPU sockets. Omitted from the update when undefined. Compared as an integer for drift.
|
||||
pve_vm_network:
|
||||
type: raw
|
||||
description:
|
||||
- >-
|
||||
Mapping passed to the module as C(net), for example C(net0) with C(model), C(bridge), C(tag) and C(firewall).
|
||||
Omitted when undefined. Only C(net0) is compared for drift.
|
||||
pve_vm_ipconfig:
|
||||
type: raw
|
||||
description:
|
||||
- >-
|
||||
Mapping passed to the module as C(ipconfig), for example C(ipconfig0) with a string such as
|
||||
C(ip=<address>/24,gw=<gateway>). Omitted when undefined. Only C(ipconfig0) is compared for drift, token order
|
||||
ignored.
|
||||
pve_vm_nameservers:
|
||||
type: raw
|
||||
description:
|
||||
- Nameservers as a list, or a space or comma separated string. Omitted when undefined.
|
||||
pve_vm_sshkeys:
|
||||
type: str
|
||||
description:
|
||||
- >-
|
||||
Public keys written to the cloud-init C(sshkeys) field, one per line. Omitted when undefined. Proxmox stores
|
||||
them URL-encoded, so a change is not detected as drift and is only applied on a fresh clone, on other drift
|
||||
or with C(pve_vm_force_update).
|
||||
pve_vm_ci_user:
|
||||
type: str
|
||||
default: ""
|
||||
description:
|
||||
- >-
|
||||
Cloud-init user (C(ciuser)). Left out of the update and not compared for drift when empty. Compared with the
|
||||
live C(ciuser) otherwise.
|
||||
pve_vm_force_update:
|
||||
type: bool
|
||||
default: false
|
||||
description:
|
||||
- Push cloud-init settings (user, sshkeys) and the whole configuration even without detected drift.
|
||||
pve_vm_manage_disk:
|
||||
type: bool
|
||||
default: true
|
||||
description:
|
||||
- >-
|
||||
Grow the boot disk to C(pve_vm_disk_size). While true, C(pve_vm_disk_size) must be set; the input validation
|
||||
asserts it unless C(pve_vm_state) is absent.
|
||||
pve_vm_disk_size:
|
||||
type: raw
|
||||
description:
|
||||
- >-
|
||||
Desired boot disk size, for example C(32G). Only the digits are compared with the current size in GB, and the
|
||||
disk is only ever grown.
|
||||
pve_vm_boot_disk:
|
||||
type: str
|
||||
default: scsi0
|
||||
description:
|
||||
- Disk key whose size is read and resized.
|
||||
pve_vm_reboot_if_required:
|
||||
type: bool
|
||||
default: true
|
||||
description:
|
||||
- Restart the VM after its boot disk was grown.
|
||||
pve_vm_api_user:
|
||||
type: str
|
||||
default: ""
|
||||
description:
|
||||
- >-
|
||||
Proxmox API user, the bare name without realm (C(@<pve_vm_api_realm>) is appended). Required: the role
|
||||
asserts it is non-empty before any change.
|
||||
pve_vm_api_realm:
|
||||
type: str
|
||||
default: pam
|
||||
description:
|
||||
- Authentication realm of C(pve_vm_api_user), appended as C(@<realm>) in C(module_defaults) and in the REST header.
|
||||
pve_vm_api_token_id:
|
||||
type: str
|
||||
description:
|
||||
- >-
|
||||
API token id, without the user part. Role default C(<pve_vm_api_user>-token), a Jinja expression in
|
||||
C(defaults/main.yml), so it is not repeated here.
|
||||
pve_vm_api_token_secret:
|
||||
type: str
|
||||
no_log: true
|
||||
description:
|
||||
- >-
|
||||
API token secret, normally vaulted. No default. Required: the role asserts it is set and non-empty before
|
||||
any change. Every task that carries it is C(no_log).
|
||||
pve_vm_api_host:
|
||||
type: str
|
||||
description:
|
||||
- >-
|
||||
Address of the Proxmox API (port 8006). Role default the C(ansible_host) of C(pve_vm_node) from hostvars, or
|
||||
empty when C(pve_vm_node) is undefined; a Jinja expression in C(defaults/main.yml), so it is not repeated
|
||||
here. Set it explicitly when the node is not an inventory host.
|
||||
@@ -0,0 +1,19 @@
|
||||
---
|
||||
galaxy_info:
|
||||
role_name: pve_vm
|
||||
namespace: mortis
|
||||
author: Defame1297
|
||||
license: GPL-3.0-or-later
|
||||
description: Clone, configure, resize, start, stop and delete Proxmox VE QEMU VMs through the Proxmox API, with cloud-init settings and drift detection.
|
||||
min_ansible_version: "2.22"
|
||||
platforms:
|
||||
- name: Ubuntu
|
||||
versions:
|
||||
- noble
|
||||
- resolute
|
||||
galaxy_tags:
|
||||
- proxmox
|
||||
- vm
|
||||
- cloudinit
|
||||
- provisioning
|
||||
dependencies: []
|
||||
@@ -0,0 +1,30 @@
|
||||
---
|
||||
# The validation and the drift detection only: main.yml would also call the Proxmox API to look
|
||||
# the VM up and fetch its config, which the scenario does not exercise (README, Tests). The fetched
|
||||
# config is seeded instead, as the fact detect_disk.yml sets from the REST lookup.
|
||||
- name: Converge
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Validate the inputs
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.pve_vm
|
||||
tasks_from: validate
|
||||
vars:
|
||||
pve_vm_disk_size: 32G
|
||||
|
||||
- name: Seed the live VM config the REST lookup would return
|
||||
ansible.builtin.set_fact:
|
||||
__pve_vm_config: "{{ pve_vm_test_config }}"
|
||||
|
||||
- name: Detect configuration drift
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.pve_vm
|
||||
tasks_from: detect_drift
|
||||
|
||||
- name: Assert the seeded config matches the inputs
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- not (__pve_vm_needs_update | bool)
|
||||
fail_msg: The seeded config, which matches every input, was reported as drift
|
||||
quiet: true
|
||||
@@ -0,0 +1,107 @@
|
||||
---
|
||||
# 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. The containers stand in for the guest: the role's input
|
||||
# validation and its drift detection over a seeded VM config run against them. Nothing calls the
|
||||
# Proxmox API (README, Tests). The containers run systemd as PID 1 with a writable cgroup; no
|
||||
# privileged mode.
|
||||
driver:
|
||||
name: docker
|
||||
platforms:
|
||||
- name: ${KAMINO_RUN_ID:-local}-pve-vm-instance
|
||||
labels:
|
||||
net.rkdr.mortis.molecule-run: "${KAMINO_RUN_ID:-local}"
|
||||
image: ${MOLECULE_IMAGE}
|
||||
pre_build_image: true
|
||||
pull: true
|
||||
command: /sbin/init
|
||||
cgroupns_mode: host
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
||||
tmpfs:
|
||||
- /run
|
||||
- /run/lock
|
||||
security_opts:
|
||||
- apparmor=unconfined
|
||||
- name: ${KAMINO_RUN_ID:-local}-pve-vm-2604-instance
|
||||
labels:
|
||||
net.rkdr.mortis.molecule-run: "${KAMINO_RUN_ID:-local}"
|
||||
image: ${MOLECULE_IMAGE_2604}
|
||||
pre_build_image: true
|
||||
pull: true
|
||||
command: /sbin/init
|
||||
cgroupns_mode: host
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
||||
tmpfs:
|
||||
- /run
|
||||
- /run/lock
|
||||
security_opts:
|
||||
- apparmor=unconfined
|
||||
provisioner:
|
||||
name: ansible
|
||||
# One source for every play, so the converge, the drift cases and the negative tests in
|
||||
# verify.yml start from the same valid input, which matches the seeded VM config of converge.yml.
|
||||
inventory:
|
||||
group_vars:
|
||||
all:
|
||||
pve_vm_node: pve-node
|
||||
pve_vm_vmid: 9200
|
||||
# The node is not an inventory host, from which the role defaults the API address;
|
||||
# argument validation templates that default, so main would fail on it instead.
|
||||
pve_vm_api_host: 192.0.2.1
|
||||
pve_vm_api_user: molecule
|
||||
pve_vm_api_token_secret: not-a-secret
|
||||
# pve_vm_disk_size is set where a case needs it, so the refusal case can leave it undefined.
|
||||
pve_vm_state: started
|
||||
pve_vm_memory: 2048
|
||||
pve_vm_cores: 2
|
||||
pve_vm_sockets: 1
|
||||
pve_vm_ci_user: ubuntu
|
||||
pve_vm_sshkeys: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMoleculeTestKeyNotARealKey molecule
|
||||
pve_vm_network:
|
||||
net0:
|
||||
model: virtio
|
||||
bridge: vmbr0
|
||||
tag: 20
|
||||
firewall: true
|
||||
pve_vm_ipconfig:
|
||||
ipconfig0: ip=192.0.2.30/24,gw=192.0.2.1
|
||||
pve_vm_nameservers:
|
||||
- 192.0.2.53
|
||||
- 198.51.100.53
|
||||
# The live config the REST lookup would return, in Proxmox's own forms: agent with flags,
|
||||
# ipconfig0 tokens reordered, sshkeys URL-encoded, nameservers space-separated.
|
||||
pve_vm_test_config:
|
||||
name: "{{ inventory_hostname | lower | replace('_', '-') }}"
|
||||
cpu: host
|
||||
memory: 2048
|
||||
cores: 2
|
||||
sockets: 1
|
||||
ciuser: ubuntu
|
||||
sshkeys: ssh-ed25519%20AAAAC3NzaC1lZDI1NTE5AAAAIMoleculeTestKeyNotARealKey%20molecule%0A
|
||||
ipconfig0: gw=192.0.2.1,ip=192.0.2.30/24
|
||||
nameserver: 192.0.2.53 198.51.100.53
|
||||
onboot: 1
|
||||
agent: fstrim_cloned_disks=1,enabled=1
|
||||
net0: virtio=BC:24:11:00:00:01,bridge=vmbr0,firewall=1,tag=20
|
||||
scsi0: local-lvm:vm-9200-disk-0,size=32G
|
||||
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 (converged host).
|
||||
test_sequence:
|
||||
- dependency
|
||||
- cleanup
|
||||
- syntax
|
||||
- create
|
||||
- prepare
|
||||
- check
|
||||
- converge
|
||||
- check
|
||||
- idempotence
|
||||
- side_effect
|
||||
- verify
|
||||
- cleanup
|
||||
@@ -0,0 +1,24 @@
|
||||
---
|
||||
# One drift case: seeds the live VM config the REST lookup would return, runs the role's drift
|
||||
# detection with the inputs the caller sets on the include, and asserts each expected drift fact.
|
||||
# Input: pve_vm_test_case (name, config, expect: a mapping of drift dimension to true or false,
|
||||
# needs_update for the combined result).
|
||||
- name: "Seed the live VM config, case {{ pve_vm_test_case.name }}"
|
||||
ansible.builtin.set_fact:
|
||||
__pve_vm_config: "{{ pve_vm_test_case.config }}"
|
||||
|
||||
- name: "Detect configuration drift, case {{ pve_vm_test_case.name }}"
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.pve_vm
|
||||
tasks_from: detect_drift
|
||||
|
||||
- name: "Assert the drift facts, case {{ pve_vm_test_case.name }}"
|
||||
ansible.builtin.assert:
|
||||
that: (lookup('ansible.builtin.vars', pve_vm_test_fact) | bool) == (item.value | bool)
|
||||
fail_msg: "{{ pve_vm_test_fact }} is {{ lookup('ansible.builtin.vars', pve_vm_test_fact) }}, expected {{ item.value }}"
|
||||
quiet: true
|
||||
vars:
|
||||
pve_vm_test_fact: "{{ '__pve_vm_needs_update' if item.key == 'needs_update' else '__pve_vm_drift_' ~ item.key }}"
|
||||
loop: "{{ pve_vm_test_case.expect | dict2items }}"
|
||||
loop_control:
|
||||
label: "{{ item.key }}"
|
||||
@@ -0,0 +1,22 @@
|
||||
---
|
||||
# One failing run: includes the role's task file named by the case, with the inputs the caller
|
||||
# sets on the include, and asserts that the expected message, not something else, stopped it.
|
||||
# Input: pve_vm_test_case (name, tasks_from, expect).
|
||||
- name: "Run the role, case {{ pve_vm_test_case.name }}"
|
||||
block:
|
||||
- name: "Include the role, case {{ pve_vm_test_case.name }}"
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.pve_vm
|
||||
tasks_from: "{{ pve_vm_test_case.tasks_from }}"
|
||||
|
||||
# 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 {{ pve_vm_test_case.name }}"
|
||||
ansible.builtin.fail:
|
||||
msg: The role accepted the input
|
||||
rescue:
|
||||
- name: "The expected failure stopped the run, case {{ pve_vm_test_case.name }}"
|
||||
ansible.builtin.assert:
|
||||
that: pve_vm_test_case.expect in (ansible_failed_result.msg | default(''))
|
||||
fail_msg: "Expected '{{ pve_vm_test_case.expect }}', got: {{ ansible_failed_result.msg | default('') }}"
|
||||
quiet: true
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
# One level of the static check's flattening: moves the pending tasks into pve_vm_test_tasks and
|
||||
# makes their block, rescue and always lists the next pending ones, then recurses until none is left.
|
||||
# Both facts are templated from the values before this task.
|
||||
- name: Flatten one level of blocks
|
||||
ansible.builtin.set_fact:
|
||||
pve_vm_test_tasks: "{{ [pve_vm_test_tasks, pve_vm_test_pending] | flatten(levels=1) }}"
|
||||
pve_vm_test_pending: >-
|
||||
{{ [pve_vm_test_pending | map(attribute='block', default=[]) | list,
|
||||
pve_vm_test_pending | map(attribute='rescue', default=[]) | list,
|
||||
pve_vm_test_pending | map(attribute='always', default=[]) | list] | flatten(levels=2) }}
|
||||
|
||||
- name: Flatten the next level
|
||||
ansible.builtin.include_tasks: flatten_tasks.yml
|
||||
when: pve_vm_test_pending | length > 0
|
||||
@@ -0,0 +1,323 @@
|
||||
---
|
||||
# The refusal cases run first: each fails in the input validation, before any API call.
|
||||
- name: Refuse invalid input
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Refuse a state outside the argument spec choices
|
||||
ansible.builtin.include_tasks: tasks/failed_run.yml
|
||||
vars:
|
||||
pve_vm_state: running
|
||||
pve_vm_test_case:
|
||||
name: state-choice
|
||||
tasks_from: main
|
||||
expect: pve_vm_state must be one of
|
||||
|
||||
- name: Refuse a run without an API user
|
||||
ansible.builtin.include_tasks: tasks/failed_run.yml
|
||||
vars:
|
||||
pve_vm_api_user: ""
|
||||
pve_vm_test_case:
|
||||
name: no-api-user
|
||||
tasks_from: main
|
||||
expect: The Proxmox API calls need pve_vm_api_user
|
||||
|
||||
- name: Refuse a run without an API token secret
|
||||
ansible.builtin.include_tasks: tasks/failed_run.yml
|
||||
vars:
|
||||
pve_vm_api_token_secret: ""
|
||||
pve_vm_test_case:
|
||||
name: no-token-secret
|
||||
tasks_from: main
|
||||
expect: The Proxmox API calls need pve_vm_api_user
|
||||
|
||||
- name: Refuse a deletion without an API token secret
|
||||
ansible.builtin.include_tasks: tasks/failed_run.yml
|
||||
vars:
|
||||
pve_vm_state: absent
|
||||
pve_vm_api_token_secret: ""
|
||||
pve_vm_test_case:
|
||||
name: absent-no-token-secret
|
||||
tasks_from: validate
|
||||
expect: The Proxmox API calls need pve_vm_api_user
|
||||
|
||||
- name: Refuse a managed disk without a size
|
||||
ansible.builtin.include_tasks: tasks/failed_run.yml
|
||||
vars:
|
||||
pve_vm_test_case:
|
||||
name: no-disk-size
|
||||
tasks_from: validate
|
||||
expect: pve_vm_disk_size (for example 32G) must be set
|
||||
|
||||
- name: Refuse a VM id that is not a number
|
||||
ansible.builtin.include_tasks: tasks/failed_run.yml
|
||||
vars:
|
||||
pve_vm_vmid: not-a-number
|
||||
pve_vm_test_case:
|
||||
name: vmid-type
|
||||
tasks_from: main
|
||||
expect: pve_vm_vmid
|
||||
|
||||
# create.yml is reached only after the API lookup found no VM; its assert precedes the clone.
|
||||
- name: Refuse a clone without a template id
|
||||
ansible.builtin.include_tasks: tasks/failed_run.yml
|
||||
vars:
|
||||
pve_vm_test_case:
|
||||
name: no-clone-vmid
|
||||
tasks_from: create
|
||||
expect: which needs pve_vm_clone_vmid
|
||||
|
||||
- name: Accept valid input
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Accept an unmanaged disk without a size
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.pve_vm
|
||||
tasks_from: validate
|
||||
vars:
|
||||
pve_vm_manage_disk: false
|
||||
|
||||
- name: Accept a deletion without a disk size
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.pve_vm
|
||||
tasks_from: validate
|
||||
vars:
|
||||
pve_vm_state: absent
|
||||
|
||||
- name: Detect drift on a seeded VM config
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
vars:
|
||||
pve_vm_test_no_drift:
|
||||
forced: false
|
||||
missing_keys: false
|
||||
name: false
|
||||
cpu: false
|
||||
resources: false
|
||||
ciuser: false
|
||||
ipconfig: false
|
||||
nameservers: false
|
||||
onboot: false
|
||||
agent: false
|
||||
network: false
|
||||
needs_update: false
|
||||
tasks:
|
||||
- name: Report no drift when the live config matches
|
||||
ansible.builtin.include_tasks: tasks/drift_case.yml
|
||||
vars:
|
||||
pve_vm_test_case:
|
||||
name: match
|
||||
config: "{{ pve_vm_test_config }}"
|
||||
expect: "{{ pve_vm_test_no_drift }}"
|
||||
|
||||
- name: Ignore the live ciuser while pve_vm_ci_user is empty
|
||||
ansible.builtin.include_tasks: tasks/drift_case.yml
|
||||
vars:
|
||||
pve_vm_ci_user: ""
|
||||
pve_vm_test_case:
|
||||
name: ciuser-empty
|
||||
config: "{{ pve_vm_test_config | combine({'ciuser': 'someone-else'}) }}"
|
||||
expect: "{{ pve_vm_test_no_drift }}"
|
||||
|
||||
- name: Ignore a missing live ciuser while pve_vm_ci_user is empty
|
||||
ansible.builtin.include_tasks: tasks/drift_case.yml
|
||||
vars:
|
||||
pve_vm_ci_user: ""
|
||||
pve_vm_test_case:
|
||||
name: ciuser-empty-unset
|
||||
config: "{{ pve_vm_test_config | dict2items | rejectattr('key', 'eq', 'ciuser') | items2dict }}"
|
||||
expect: "{{ pve_vm_test_no_drift }}"
|
||||
|
||||
- name: Report a live ciuser other than pve_vm_ci_user
|
||||
ansible.builtin.include_tasks: tasks/drift_case.yml
|
||||
vars:
|
||||
pve_vm_ci_user: admin
|
||||
pve_vm_test_case:
|
||||
name: ciuser-changed
|
||||
config: "{{ pve_vm_test_config }}"
|
||||
expect: "{{ pve_vm_test_no_drift | combine({'ciuser': true, 'needs_update': true}) }}"
|
||||
|
||||
- name: Report a live config without ciuser
|
||||
ansible.builtin.include_tasks: tasks/drift_case.yml
|
||||
vars:
|
||||
pve_vm_test_case:
|
||||
name: ciuser-missing
|
||||
config: "{{ pve_vm_test_config | dict2items | rejectattr('key', 'eq', 'ciuser') | items2dict }}"
|
||||
expect: "{{ pve_vm_test_no_drift | combine({'missing_keys': true, 'ciuser': true, 'needs_update': true}) }}"
|
||||
|
||||
- name: Report a live config without sshkeys
|
||||
ansible.builtin.include_tasks: tasks/drift_case.yml
|
||||
vars:
|
||||
pve_vm_test_case:
|
||||
name: sshkeys-missing
|
||||
config: "{{ pve_vm_test_config | dict2items | rejectattr('key', 'eq', 'sshkeys') | items2dict }}"
|
||||
expect: "{{ pve_vm_test_no_drift | combine({'missing_keys': true, 'needs_update': true}) }}"
|
||||
|
||||
# Proxmox stores sshkeys URL-encoded, so a rotated key is not drift; pve_vm_force_update pushes it.
|
||||
- name: Report no drift for rotated sshkeys
|
||||
ansible.builtin.include_tasks: tasks/drift_case.yml
|
||||
vars:
|
||||
pve_vm_sshkeys: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIRotatedTestKeyNotARealKey molecule
|
||||
pve_vm_test_case:
|
||||
name: sshkeys-rotated
|
||||
config: "{{ pve_vm_test_config }}"
|
||||
expect: "{{ pve_vm_test_no_drift }}"
|
||||
|
||||
- name: Expect no sshkeys in the live config while pve_vm_sshkeys is empty
|
||||
ansible.builtin.include_tasks: tasks/drift_case.yml
|
||||
vars:
|
||||
pve_vm_sshkeys: ""
|
||||
pve_vm_test_case:
|
||||
name: sshkeys-empty
|
||||
config: "{{ pve_vm_test_config | dict2items | rejectattr('key', 'eq', 'sshkeys') | items2dict }}"
|
||||
expect: "{{ pve_vm_test_no_drift }}"
|
||||
|
||||
- name: Report forced drift with pve_vm_force_update
|
||||
ansible.builtin.include_tasks: tasks/drift_case.yml
|
||||
vars:
|
||||
pve_vm_force_update: true
|
||||
pve_vm_test_case:
|
||||
name: forced
|
||||
config: "{{ pve_vm_test_config }}"
|
||||
expect: "{{ pve_vm_test_no_drift | combine({'forced': true, 'needs_update': true}) }}"
|
||||
|
||||
- name: Read Proxmox's other forms as no drift
|
||||
ansible.builtin.include_tasks: tasks/drift_case.yml
|
||||
vars:
|
||||
pve_vm_nameservers: 192.0.2.53,198.51.100.53
|
||||
pve_vm_test_case:
|
||||
name: other-forms
|
||||
config: "{{ pve_vm_test_config | combine({'cpu': 'cputype=host,flags=+aes', 'agent': '1'}) }}"
|
||||
expect: "{{ pve_vm_test_no_drift }}"
|
||||
|
||||
- name: Report drift in each compared dimension
|
||||
ansible.builtin.include_tasks: tasks/drift_case.yml
|
||||
vars:
|
||||
pve_vm_test_case:
|
||||
name: all-dimensions
|
||||
config: >-
|
||||
{{ pve_vm_test_config | combine({'name': 'other-name', 'cpu': 'kvm64', 'memory': 1024,
|
||||
'ipconfig0': 'ip=192.0.2.31/24,gw=192.0.2.1', 'nameserver': '192.0.2.53', 'onboot': 0,
|
||||
'agent': 'enabled=0', 'net0': 'virtio=BC:24:11:00:00:01,bridge=vmbr1,tag=20'}) }}
|
||||
expect:
|
||||
forced: false
|
||||
missing_keys: false
|
||||
name: true
|
||||
cpu: true
|
||||
resources: true
|
||||
ciuser: false
|
||||
ipconfig: true
|
||||
nameservers: true
|
||||
onboot: true
|
||||
agent: true
|
||||
network: true
|
||||
needs_update: true
|
||||
|
||||
- name: Report a live VLAN tag that the inputs drop
|
||||
ansible.builtin.include_tasks: tasks/drift_case.yml
|
||||
vars:
|
||||
pve_vm_network:
|
||||
net0:
|
||||
model: virtio
|
||||
bridge: vmbr0
|
||||
firewall: true
|
||||
pve_vm_test_case:
|
||||
name: tag-dropped
|
||||
config: "{{ pve_vm_test_config }}"
|
||||
expect: "{{ pve_vm_test_no_drift | combine({'network': true, 'needs_update': true}) }}"
|
||||
|
||||
# Static: the role must never send a cloud-init password, and its delete of a stored one must not
|
||||
# log the task, so these read the role's own task files on the controller.
|
||||
- name: Verify the role's cloud-init password handling
|
||||
hosts: localhost
|
||||
gather_facts: false
|
||||
vars:
|
||||
pve_vm_test_task_dir: "{{ (playbook_dir ~ '/../../tasks') | realpath }}"
|
||||
# Every name a task can call the module by.
|
||||
pve_vm_test_kvm_names:
|
||||
- community.proxmox.proxmox_kvm
|
||||
- community.general.proxmox_kvm
|
||||
- ansible.legacy.proxmox_kvm
|
||||
- proxmox_kvm
|
||||
tasks:
|
||||
- name: Find the role's task files, subdirectories included
|
||||
ansible.builtin.find:
|
||||
paths: "{{ pve_vm_test_task_dir }}"
|
||||
patterns: ["*.yml", "*.yaml"]
|
||||
recurse: true
|
||||
register: pve_vm_test_files
|
||||
|
||||
- name: Read the role's task files
|
||||
ansible.builtin.set_fact:
|
||||
pve_vm_test_pending: >-
|
||||
{{ [pve_vm_test_pending | default([]),
|
||||
lookup('ansible.builtin.file', item) | from_yaml] | flatten(levels=1) }}
|
||||
loop: "{{ pve_vm_test_files.files | map(attribute='path') | sort }}"
|
||||
|
||||
- name: Start the flattened task list
|
||||
ansible.builtin.set_fact:
|
||||
pve_vm_test_tasks: []
|
||||
|
||||
# Recurses through block, rescue and always to any depth.
|
||||
- name: Flatten the blocks
|
||||
ansible.builtin.include_tasks: tasks/flatten_tasks.yml
|
||||
|
||||
# A task calls the module by its key, or through action or local_action, either a mapping
|
||||
# with module or a string that starts with the module name. Its args are merged in.
|
||||
- name: Summarise each proxmox_kvm task
|
||||
ansible.builtin.set_fact:
|
||||
pve_vm_test_kvm: >-
|
||||
{{ pve_vm_test_kvm | default([]) + [{
|
||||
'name': item.name | default('(unnamed)'),
|
||||
'sends': ('cipassword' in pve_vm_test_args)
|
||||
or (pve_vm_test_raw is string and 'cipassword=' in pve_vm_test_raw),
|
||||
'deletes': ('cipassword' in (pve_vm_test_args.delete | default('') | string).split(','))
|
||||
or (pve_vm_test_raw is string and pve_vm_test_raw is search('delete=\\S*cipassword')),
|
||||
'no_log': item.no_log | default(false) | bool,
|
||||
}] }}
|
||||
vars:
|
||||
pve_vm_test_key: "{{ pve_vm_test_kvm_names | select('in', item) | first | default('') }}"
|
||||
pve_vm_test_action: "{{ item.action | default(item.local_action | default('')) }}"
|
||||
pve_vm_test_action_kvm: >-
|
||||
{{ (pve_vm_test_action is mapping and pve_vm_test_action.module | default('') in pve_vm_test_kvm_names)
|
||||
or (pve_vm_test_action is string and (pve_vm_test_action.split() | first | default('')) in pve_vm_test_kvm_names) }}
|
||||
pve_vm_test_raw: >-
|
||||
{{ item[pve_vm_test_key] if pve_vm_test_key
|
||||
else (pve_vm_test_action | dict2items | rejectattr('key', 'eq', 'module') | items2dict
|
||||
if pve_vm_test_action is mapping else pve_vm_test_action) }}
|
||||
pve_vm_test_args: >-
|
||||
{{ (pve_vm_test_raw if pve_vm_test_raw is mapping else {}) | combine(item.args | default({})) }}
|
||||
loop: "{{ pve_vm_test_tasks }}"
|
||||
loop_control:
|
||||
label: "{{ item.name | default('(unnamed)') }}"
|
||||
when: pve_vm_test_key | length > 0 or pve_vm_test_action_kvm | bool
|
||||
|
||||
- name: Assert no proxmox_kvm task sends cipassword
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- pve_vm_test_kvm | default([]) | length > 0
|
||||
- pve_vm_test_kvm | selectattr('sends') | list | length == 0
|
||||
fail_msg: "proxmox_kvm tasks sending cipassword: {{ pve_vm_test_kvm | default([]) | selectattr('sends') | map(attribute='name') | list }}"
|
||||
quiet: true
|
||||
|
||||
# Any module, any spelling or group: no default the role sets may carry cipassword.
|
||||
- name: Assert no module_defaults sets cipassword
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- >-
|
||||
[item.module_defaults] | flatten(levels=1) | map('dict2items') | flatten(levels=1)
|
||||
| map(attribute='value') | select('contains', 'cipassword') | list | length == 0
|
||||
fail_msg: "module_defaults with cipassword on '{{ item.name | default('(unnamed)') }}'"
|
||||
quiet: true
|
||||
loop: "{{ pve_vm_test_tasks | selectattr('module_defaults', 'defined') | list }}"
|
||||
loop_control:
|
||||
label: "{{ item.name | default('(unnamed)') }}"
|
||||
|
||||
- name: Assert the stored cipassword is deleted by one no_log task
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- pve_vm_test_kvm | selectattr('deletes') | list | length == 1
|
||||
- pve_vm_test_kvm | selectattr('deletes') | selectattr('no_log') | list | length == 1
|
||||
fail_msg: "Tasks deleting cipassword: {{ pve_vm_test_kvm | selectattr('deletes') | list }}"
|
||||
quiet: true
|
||||
@@ -0,0 +1,29 @@
|
||||
---
|
||||
# Here, not in validate.yml: whether a clone happens is known only after the API lookup.
|
||||
- name: Assert the template to clone is set
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- pve_vm_clone_vmid is defined
|
||||
fail_msg: >-
|
||||
VM {{ pve_vm_vmid }} does not exist on {{ pve_vm_node }}, so it is cloned, which needs
|
||||
pve_vm_clone_vmid, the VM id of the template. Set it, or create the VM by other means.
|
||||
quiet: true
|
||||
|
||||
- name: Clone VM from template
|
||||
no_log: true # carries the API token secret
|
||||
delegate_to: "{{ pve_vm_delegate }}"
|
||||
community.proxmox.proxmox_kvm:
|
||||
node: "{{ pve_vm_node }}"
|
||||
clone: template
|
||||
vmid: "{{ pve_vm_clone_vmid }}"
|
||||
newid: "{{ pve_vm_vmid }}"
|
||||
name: "{{ inventory_hostname | lower | replace('_', '-') }}"
|
||||
full: "{{ pve_vm_full_clone }}"
|
||||
timeout: 600
|
||||
state: present
|
||||
register: __pve_vm_clone
|
||||
|
||||
- name: Record that the VM was just cloned
|
||||
ansible.builtin.set_fact:
|
||||
# Forces one cloud-init update (ciuser, sshkeys) in update.yml.
|
||||
__pve_vm_created: "{{ __pve_vm_clone is changed }}"
|
||||
@@ -0,0 +1,23 @@
|
||||
---
|
||||
- name: Stop VM before deletion (if running)
|
||||
no_log: true # defence in depth: the module already masks the API token secret
|
||||
delegate_to: "{{ pve_vm_delegate }}"
|
||||
community.proxmox.proxmox_kvm:
|
||||
node: "{{ pve_vm_node }}"
|
||||
vmid: "{{ pve_vm_vmid }}"
|
||||
state: stopped
|
||||
when:
|
||||
- pve_vm_exists
|
||||
- not ansible_check_mode
|
||||
|
||||
- name: Delete VM
|
||||
no_log: true # defence in depth: the module already masks the API token secret
|
||||
delegate_to: "{{ pve_vm_delegate }}"
|
||||
community.proxmox.proxmox_kvm:
|
||||
node: "{{ pve_vm_node }}"
|
||||
vmid: "{{ pve_vm_vmid }}"
|
||||
state: absent
|
||||
when:
|
||||
- pve_vm_exists
|
||||
- not ansible_check_mode
|
||||
register: __pve_vm_delete
|
||||
@@ -0,0 +1,37 @@
|
||||
---
|
||||
# no_log hides the whole failure of the lookup below, so the operator would only see "output hidden
|
||||
# due to no_log". The rescue re-raises just the module's msg, which is safe to show: the module
|
||||
# masks the token secret in everything it returns (its invocation echo is not used here).
|
||||
- name: Look up the VM
|
||||
block:
|
||||
- name: Check if VM exists
|
||||
no_log: true # defence in depth: the module already masks the API token secret
|
||||
delegate_to: "{{ pve_vm_delegate }}"
|
||||
community.proxmox.proxmox_kvm:
|
||||
node: "{{ pve_vm_node }}"
|
||||
vmid: "{{ pve_vm_vmid }}"
|
||||
state: current
|
||||
register: __pve_vm_info
|
||||
# proxmox_kvm declares no check mode support, so --check would skip this lookup, leave
|
||||
# pve_vm_exists false and skip everything after it. state=current only reads (GET of the VM
|
||||
# and its status), so it runs for real under --check as well.
|
||||
check_mode: false
|
||||
# An absent VM is an expected answer here: for state=current the module fails with
|
||||
# "VM with vmid <id> does not exist in cluster". Any other failure (API, auth, network) is
|
||||
# real and must stop the run instead of being read as "VM absent", which would send
|
||||
# create.yml after an existing VM.
|
||||
failed_when:
|
||||
- __pve_vm_info.failed | default(false)
|
||||
- "'does not exist in cluster' not in (__pve_vm_info.msg | default(''))"
|
||||
changed_when: false
|
||||
rescue:
|
||||
- name: Fail with the module message
|
||||
ansible.builtin.fail:
|
||||
msg: >-
|
||||
Looking up VM {{ pve_vm_vmid }} on {{ pve_vm_node }} failed:
|
||||
{{ ansible_failed_result.msg | default('no message') }}
|
||||
|
||||
- name: Set VM existence fact
|
||||
ansible.builtin.set_fact:
|
||||
pve_vm_exists: >-
|
||||
{{ __pve_vm_info.vmid is defined or __pve_vm_info.status is defined }}
|
||||
@@ -0,0 +1,47 @@
|
||||
---
|
||||
- name: Get current VM config via REST API
|
||||
no_log: true # Authorization header carries the API token
|
||||
delegate_to: localhost
|
||||
ansible.builtin.uri:
|
||||
url: "https://{{ pve_vm_api_host }}:8006/api2/json/nodes/{{ pve_vm_node }}/qemu/{{ pve_vm_vmid }}/config"
|
||||
method: GET
|
||||
headers:
|
||||
Authorization: "{{ __pve_vm_api_auth_header }}"
|
||||
register: __pve_vm_current_config
|
||||
# uri has no check mode support; this is a GET, so it also runs under --check and drift
|
||||
# detection sees the live config.
|
||||
check_mode: false
|
||||
|
||||
- name: Set fact to the actual config dict
|
||||
no_log: true # the config may hold a stored cipassword (update.yml deletes it)
|
||||
ansible.builtin.set_fact:
|
||||
__pve_vm_config: "{{ __pve_vm_current_config.json.data }}"
|
||||
|
||||
- name: Extract current disk string
|
||||
ansible.builtin.set_fact:
|
||||
__pve_vm_disk_string: "{{ __pve_vm_config[pve_vm_boot_disk] | default('') }}"
|
||||
|
||||
- name: Extract current disk number and unit properly
|
||||
ansible.builtin.set_fact:
|
||||
__pve_vm_disk_parts: "{{ __pve_vm_disk_string | regex_findall('size=(\\d+)([GM])') | first | default(['0', 'G']) | list }}"
|
||||
|
||||
- name: Extract current disk number
|
||||
ansible.builtin.set_fact:
|
||||
__pve_vm_current_disk_size_number: "{{ __pve_vm_disk_parts[0] | int }}"
|
||||
__pve_vm_current_disk_size_unit: "{{ __pve_vm_disk_parts[1] }}"
|
||||
|
||||
- name: Convert disk size to GB
|
||||
ansible.builtin.set_fact:
|
||||
__pve_vm_current_disk: >-
|
||||
{{
|
||||
__pve_vm_current_disk_size_number if __pve_vm_current_disk_size_unit == 'G'
|
||||
else (__pve_vm_current_disk_size_number / 1024)
|
||||
}}
|
||||
|
||||
- name: Determine if disk resize is needed
|
||||
ansible.builtin.set_fact:
|
||||
__pve_vm_resize_disk: "{{ pve_vm_disk_size | regex_replace('[^0-9]', '') | int > __pve_vm_current_disk | int }}"
|
||||
when:
|
||||
- pve_vm_manage_disk | bool
|
||||
- pve_vm_disk_size is defined
|
||||
- pve_vm_exists
|
||||
@@ -0,0 +1,97 @@
|
||||
---
|
||||
# community.proxmox.proxmox_kvm with `update: true` reports changed on every run: it does not diff
|
||||
# against the live config. Compare the config already fetched in detect_disk.yml with the desired
|
||||
# values and only call the module on real drift or while cloud-init is still unconfigured (first
|
||||
# run after a clone, when ciuser and sshkeys have to be applied once). Proxmox stores sshkeys
|
||||
# URL-encoded, so a change is not diffed: pve_vm_force_update pushes it to an existing VM.
|
||||
- name: Normalise current QEMU guest agent setting
|
||||
ansible.builtin.set_fact:
|
||||
# PVE returns "1", "enabled=1" or e.g. "fstrim_cloned_disks=1,enabled=1"; enabled=1 may sit
|
||||
# in any position.
|
||||
__pve_vm_agent_current: >-
|
||||
{{
|
||||
'1' if ((__pve_vm_config.agent | default('0') | string).split(',')
|
||||
| select('in', ['1', 'enabled=1']) | list | length > 0)
|
||||
else '0'
|
||||
}}
|
||||
|
||||
- name: Normalise desired and current values for drift comparison
|
||||
ansible.builtin.set_fact:
|
||||
# ciuser and sshkeys are only expected in the current config when the role sets them.
|
||||
__pve_vm_required_config_keys: >-
|
||||
{{
|
||||
(['ciuser'] if (pve_vm_ci_user | string | length > 0) else [])
|
||||
+ (['sshkeys'] if (pve_vm_sshkeys | default('') | string | length > 0) else [])
|
||||
}}
|
||||
# PVE returns nameserver space-separated; accept a list or a comma-separated string as well.
|
||||
__pve_vm_nameservers_desired: >-
|
||||
{{
|
||||
((pve_vm_nameservers | join(' '))
|
||||
if (pve_vm_nameservers | default('') is not string and pve_vm_nameservers | default('') is iterable)
|
||||
else (pve_vm_nameservers | default('') | string))
|
||||
| replace(',', ' ') | split | join(' ')
|
||||
}}
|
||||
# ipconfig0 tokens can come back from PVE in a different order.
|
||||
__pve_vm_ipconfig0_current: "{{ (__pve_vm_config.ipconfig0 | default('') | string).split(',') | sort }}"
|
||||
__pve_vm_ipconfig0_desired: "{{ (pve_vm_ipconfig.ipconfig0 | default('') | string).split(',') | sort }}"
|
||||
__pve_vm_net0_current: "{{ (__pve_vm_config.net0 | default('') | string).split(',') }}"
|
||||
|
||||
# autostart is not compared: PVE has no such VM config key (the config API does not return it).
|
||||
# One fact per drift dimension, combined in __pve_vm_needs_update below.
|
||||
- name: Determine drift per configuration dimension
|
||||
ansible.builtin.set_fact:
|
||||
__pve_vm_drift_forced: >-
|
||||
{{
|
||||
(pve_vm_force_update | bool)
|
||||
or (__pve_vm_created | default(false) | bool)
|
||||
}}
|
||||
__pve_vm_drift_missing_keys: "{{ __pve_vm_required_config_keys | reject('in', __pve_vm_config) | list | length > 0 }}"
|
||||
__pve_vm_drift_name: "{{ (__pve_vm_config.name | default('')) != (inventory_hostname | lower | replace('_', '-')) }}"
|
||||
# PVE may return "host" or "cputype=host" (optionally followed by flags).
|
||||
__pve_vm_drift_cpu: >-
|
||||
{{
|
||||
(__pve_vm_config.cpu | default('') | string).split(',')[0] | regex_replace('^cputype=', '') != 'host'
|
||||
}}
|
||||
__pve_vm_drift_resources: >-
|
||||
{{
|
||||
(pve_vm_memory is defined and (__pve_vm_config.memory | default(0) | int) != (pve_vm_memory | int))
|
||||
or (pve_vm_cores is defined and (__pve_vm_config.cores | default(1) | int) != (pve_vm_cores | int))
|
||||
or (pve_vm_sockets is defined and (__pve_vm_config.sockets | default(1) | int) != (pve_vm_sockets | int))
|
||||
}}
|
||||
__pve_vm_drift_ciuser: "{{ (pve_vm_ci_user | string | length > 0) and __pve_vm_config.ciuser | default('') != pve_vm_ci_user }}"
|
||||
__pve_vm_drift_ipconfig: "{{ pve_vm_ipconfig.ipconfig0 is defined and __pve_vm_ipconfig0_current != __pve_vm_ipconfig0_desired }}"
|
||||
__pve_vm_drift_nameservers: >-
|
||||
{{ pve_vm_nameservers is defined and (__pve_vm_config.nameserver | default('')) != __pve_vm_nameservers_desired }}
|
||||
__pve_vm_drift_onboot: "{{ (__pve_vm_config.onboot | default(0) | int) != (pve_vm_onboot | bool | int) }}"
|
||||
__pve_vm_drift_agent: "{{ __pve_vm_agent_current != ((pve_vm_agent | bool | int) | string) }}"
|
||||
__pve_vm_drift_network: >-
|
||||
{{
|
||||
pve_vm_network.net0 is defined and (
|
||||
not (__pve_vm_config.net0 | default('')).startswith(pve_vm_network.net0.model | default('virtio') ~ '=')
|
||||
or (pve_vm_network.net0.bridge is defined
|
||||
and ('bridge=' ~ pve_vm_network.net0.bridge) not in __pve_vm_net0_current)
|
||||
or (pve_vm_network.net0.tag is defined
|
||||
and ('tag=' ~ pve_vm_network.net0.tag) not in __pve_vm_net0_current)
|
||||
or (pve_vm_network.net0.tag is not defined
|
||||
and (__pve_vm_net0_current | select('match', '^tag=') | list | length > 0))
|
||||
or (pve_vm_network.net0.firewall is defined
|
||||
and (('firewall=1' in __pve_vm_net0_current) != (pve_vm_network.net0.firewall | bool)))
|
||||
)
|
||||
}}
|
||||
|
||||
- name: Determine if VM configuration needs updating
|
||||
ansible.builtin.set_fact:
|
||||
__pve_vm_needs_update: >-
|
||||
{{
|
||||
__pve_vm_drift_forced | bool
|
||||
or __pve_vm_drift_missing_keys | bool
|
||||
or __pve_vm_drift_name | bool
|
||||
or __pve_vm_drift_cpu | bool
|
||||
or __pve_vm_drift_resources | bool
|
||||
or __pve_vm_drift_ciuser | bool
|
||||
or __pve_vm_drift_ipconfig | bool
|
||||
or __pve_vm_drift_nameservers | bool
|
||||
or __pve_vm_drift_onboot | bool
|
||||
or __pve_vm_drift_agent | bool
|
||||
or __pve_vm_drift_network | bool
|
||||
}}
|
||||
@@ -0,0 +1,90 @@
|
||||
---
|
||||
# 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
|
||||
|
||||
# Every Proxmox API call of the role is inside this block, so the credentials are set once here
|
||||
# instead of on each task; module_defaults set on a block reach tasks run through include_tasks.
|
||||
# They are templated per task and no secret is stored as a fact. The uri call (detect_disk) takes
|
||||
# host and header explicitly.
|
||||
- name: Manage Proxmox VM lifecycle
|
||||
module_defaults:
|
||||
community.proxmox.proxmox_kvm:
|
||||
api_user: "{{ pve_vm_api_user }}@{{ pve_vm_api_realm }}"
|
||||
api_token_id: "{{ pve_vm_api_token_id }}"
|
||||
api_token_secret: "{{ pve_vm_api_token_secret }}"
|
||||
api_host: "{{ pve_vm_api_host }}"
|
||||
validate_certs: false
|
||||
community.proxmox.proxmox_disk:
|
||||
api_user: "{{ pve_vm_api_user }}@{{ pve_vm_api_realm }}"
|
||||
api_token_id: "{{ pve_vm_api_token_id }}"
|
||||
api_token_secret: "{{ pve_vm_api_token_secret }}"
|
||||
api_host: "{{ pve_vm_api_host }}"
|
||||
validate_certs: false
|
||||
ansible.builtin.uri:
|
||||
validate_certs: false
|
||||
block:
|
||||
- name: Gather current VM information
|
||||
ansible.builtin.include_tasks: detect.yml
|
||||
|
||||
- name: Remove VM if destruction is requested
|
||||
ansible.builtin.include_tasks: delete.yml
|
||||
when:
|
||||
- pve_vm_state == "absent"
|
||||
- pve_vm_allow_destroy | bool
|
||||
- pve_vm_exists
|
||||
|
||||
- name: Stop processing for deleted VM
|
||||
ansible.builtin.meta: end_host
|
||||
when:
|
||||
- pve_vm_state == "absent"
|
||||
- pve_vm_allow_destroy | bool
|
||||
|
||||
- name: Create VM if it does not exist
|
||||
ansible.builtin.include_tasks: create.yml
|
||||
when:
|
||||
- pve_vm_state != "absent"
|
||||
- not pve_vm_exists
|
||||
- not ansible_check_mode
|
||||
|
||||
- name: Preview VM creation
|
||||
ansible.builtin.debug:
|
||||
msg: >-
|
||||
VM {{ pve_vm_vmid }} does not exist on {{ pve_vm_node }}: a real run clones it from template
|
||||
{{ pve_vm_clone_vmid | default('(unset)') }} and then configures it. Nothing after the lookup runs for it
|
||||
in this check.
|
||||
changed_when: true
|
||||
when:
|
||||
- pve_vm_state != "absent"
|
||||
- not pve_vm_exists
|
||||
- ansible_check_mode
|
||||
|
||||
- name: Refresh VM information after changes
|
||||
ansible.builtin.include_tasks: detect.yml
|
||||
|
||||
- name: Gather current VM disk information
|
||||
ansible.builtin.include_tasks: detect_disk.yml
|
||||
when:
|
||||
- pve_vm_exists
|
||||
- pve_vm_state != "absent"
|
||||
|
||||
- name: Update existing VM configuration
|
||||
ansible.builtin.include_tasks: update.yml
|
||||
when:
|
||||
- pve_vm_state != "absent"
|
||||
- pve_vm_exists
|
||||
|
||||
- name: Ensure VM power state
|
||||
ansible.builtin.include_tasks: state.yml
|
||||
when:
|
||||
- pve_vm_exists
|
||||
- pve_vm_state in ["started", "stopped"]
|
||||
|
||||
- name: Wait for VM to become ready
|
||||
ansible.builtin.include_tasks: wait.yml
|
||||
when:
|
||||
- pve_vm_exists
|
||||
- pve_vm_state == "started"
|
||||
- pve_vm_wait_for_guest | bool
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
# Under --check the module (no check mode support) does not run; the preview compares the status the
|
||||
# lookup in detect.yml read with the desired state.
|
||||
- name: Preview VM power state
|
||||
ansible.builtin.debug:
|
||||
msg: "VM {{ pve_vm_vmid }} is {{ __pve_vm_info.status | default('unknown') }}, desired {{ pve_vm_state }}"
|
||||
changed_when: >-
|
||||
(__pve_vm_info.status | default('unknown')) != ('running' if pve_vm_state == 'started' else 'stopped')
|
||||
when: ansible_check_mode
|
||||
|
||||
- name: Ensure VM state
|
||||
no_log: true # defence in depth: the module already masks the API token secret
|
||||
delegate_to: "{{ pve_vm_delegate }}"
|
||||
community.proxmox.proxmox_kvm:
|
||||
node: "{{ pve_vm_node }}"
|
||||
vmid: "{{ pve_vm_vmid }}"
|
||||
state: "{{ pve_vm_state }}"
|
||||
when: not ansible_check_mode
|
||||
@@ -0,0 +1,126 @@
|
||||
---
|
||||
- name: Detect VM configuration drift
|
||||
ansible.builtin.include_tasks: detect_drift.yml
|
||||
|
||||
# Names only, no values: the drift facts are booleans, and sshkeys are never compared.
|
||||
# Under --check this is the preview of the update and resize below (changed when either would run).
|
||||
- name: Report configuration drift
|
||||
ansible.builtin.debug:
|
||||
msg: >-
|
||||
{{
|
||||
'drift: ' ~ (__pve_vm_drift_dimensions | join(', ')) if __pve_vm_drift_dimensions | length > 0
|
||||
else 'no drift'
|
||||
}}{{
|
||||
'; boot disk resize: ' ~ __pve_vm_current_disk ~ 'G -> ' ~ pve_vm_disk_size
|
||||
if (pve_vm_manage_disk and __pve_vm_resize_disk | default(false) | bool) else ''
|
||||
}}
|
||||
vars:
|
||||
__pve_vm_drift_dimensions: >-
|
||||
{{
|
||||
[
|
||||
'forced' if __pve_vm_drift_forced | bool else '',
|
||||
'missing_keys' if __pve_vm_drift_missing_keys | bool else '',
|
||||
'name' if __pve_vm_drift_name | bool else '',
|
||||
'cpu' if __pve_vm_drift_cpu | bool else '',
|
||||
'resources' if __pve_vm_drift_resources | bool else '',
|
||||
'ciuser' if __pve_vm_drift_ciuser | bool else '',
|
||||
'ipconfig' if __pve_vm_drift_ipconfig | bool else '',
|
||||
'nameservers' if __pve_vm_drift_nameservers | bool else '',
|
||||
'onboot' if __pve_vm_drift_onboot | bool else '',
|
||||
'agent' if __pve_vm_drift_agent | bool else '',
|
||||
'network' if __pve_vm_drift_network | bool else '',
|
||||
] | select | list
|
||||
}}
|
||||
changed_when: >-
|
||||
ansible_check_mode and (__pve_vm_needs_update | bool
|
||||
or (pve_vm_manage_disk and __pve_vm_resize_disk | default(false) | bool))
|
||||
|
||||
- name: Update VM configuration
|
||||
no_log: true # carries the API token secret
|
||||
delegate_to: "{{ pve_vm_delegate }}"
|
||||
community.proxmox.proxmox_kvm:
|
||||
node: "{{ pve_vm_node }}"
|
||||
vmid: "{{ pve_vm_vmid }}"
|
||||
name: "{{ inventory_hostname | lower | replace('_', '-') }}"
|
||||
|
||||
memory: "{{ pve_vm_memory | default(omit) }}"
|
||||
cores: "{{ pve_vm_cores | default(omit) }}"
|
||||
sockets: "{{ pve_vm_sockets | default(omit) }}"
|
||||
cpu: host
|
||||
|
||||
net: "{{ pve_vm_network | default(omit) }}"
|
||||
|
||||
ciuser: "{{ pve_vm_ci_user if (pve_vm_ci_user | length > 0) else omit }}"
|
||||
ipconfig: "{{ pve_vm_ipconfig | default(omit) }}"
|
||||
sshkeys: "{{ pve_vm_sshkeys | default(omit) }}"
|
||||
nameservers: "{{ pve_vm_nameservers | default(omit) }}"
|
||||
|
||||
agent: "{{ pve_vm_agent }}"
|
||||
onboot: "{{ pve_vm_onboot }}"
|
||||
autostart: "{{ pve_vm_autostart }}"
|
||||
|
||||
update: true
|
||||
state: present
|
||||
# Explicit: the module has no check mode support, so --check skips it anyway; the report above is the preview.
|
||||
when:
|
||||
- __pve_vm_needs_update | bool
|
||||
- not ansible_check_mode
|
||||
|
||||
# The role never sets a cloud-init password; a VM configured by other means may still have one
|
||||
# stored. The module cannot combine delete with update, has no check mode and always reports
|
||||
# changed, hence a separate task, run only when the key is present, with the debug as its --check
|
||||
# preview.
|
||||
- name: Preview deletion of the stored cloud-init password
|
||||
ansible.builtin.debug:
|
||||
msg: "cipassword stored on VM {{ pve_vm_vmid }}: a real run deletes it"
|
||||
changed_when: true
|
||||
when:
|
||||
- "'cipassword' in __pve_vm_config"
|
||||
- ansible_check_mode
|
||||
|
||||
- name: Delete the stored cloud-init password
|
||||
no_log: true # carries the API token secret
|
||||
delegate_to: "{{ pve_vm_delegate }}"
|
||||
community.proxmox.proxmox_kvm:
|
||||
node: "{{ pve_vm_node }}"
|
||||
vmid: "{{ pve_vm_vmid }}"
|
||||
delete: cipassword
|
||||
when:
|
||||
- "'cipassword' in __pve_vm_config"
|
||||
- not ansible_check_mode
|
||||
|
||||
# The marker has been consumed by drift detection and the update above; reset it so another
|
||||
# pve_vm run for this host in the same play does not force a second update.
|
||||
- name: Clear the just-cloned marker
|
||||
ansible.builtin.set_fact:
|
||||
__pve_vm_created: false
|
||||
|
||||
- name: Resize boot drive
|
||||
no_log: true # defence in depth: the module already masks the API token secret
|
||||
delegate_to: "{{ pve_vm_delegate }}"
|
||||
community.proxmox.proxmox_disk:
|
||||
vmid: "{{ pve_vm_vmid }}"
|
||||
disk: "{{ pve_vm_boot_disk }}"
|
||||
size: "{{ pve_vm_disk_size }}"
|
||||
state: resized
|
||||
when:
|
||||
- pve_vm_manage_disk | bool
|
||||
- __pve_vm_resize_disk
|
||||
- not ansible_check_mode
|
||||
register: __pve_vm_disk_resize
|
||||
|
||||
- name: Track disk resize result
|
||||
ansible.builtin.set_fact:
|
||||
__pve_vm_disk_resized: "{{ __pve_vm_disk_resize.changed | default(false) }}"
|
||||
|
||||
- name: Restart VM if disk was resized
|
||||
no_log: true # defence in depth: the module already masks the API token secret
|
||||
delegate_to: "{{ pve_vm_delegate }}"
|
||||
community.proxmox.proxmox_kvm:
|
||||
node: "{{ pve_vm_node }}"
|
||||
vmid: "{{ pve_vm_vmid }}"
|
||||
state: restarted
|
||||
when:
|
||||
- __pve_vm_disk_resized
|
||||
- pve_vm_reboot_if_required | bool
|
||||
- not ansible_check_mode
|
||||
@@ -0,0 +1,28 @@
|
||||
---
|
||||
# The input rules the argument spec cannot express. main.yml imports this file under
|
||||
# tags: always, before any change; each assert keeps the condition under which its input is read.
|
||||
|
||||
# Every run calls the API: even pve_vm_state absent without pve_vm_allow_destroy looks the VM up.
|
||||
- name: Assert the Proxmox API credentials are set
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- pve_vm_api_user | length > 0
|
||||
- pve_vm_api_token_secret is defined and pve_vm_api_token_secret | length > 0
|
||||
fail_msg: >-
|
||||
The Proxmox API calls need pve_vm_api_user (bare user name, the role appends
|
||||
@<pve_vm_api_realm>) and pve_vm_api_token_secret (normally vaulted). Neither has a usable
|
||||
default: set them in the inventory.
|
||||
quiet: true
|
||||
|
||||
# The update reads the resize flag, which is only computed while pve_vm_disk_size is defined.
|
||||
- name: Assert the boot disk size is set while the disk is managed
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- pve_vm_disk_size is defined
|
||||
fail_msg: >-
|
||||
pve_vm_disk_size (for example 32G) must be set while pve_vm_manage_disk is true, the default.
|
||||
Set pve_vm_manage_disk to false to leave the boot disk alone.
|
||||
quiet: true
|
||||
when:
|
||||
- pve_vm_manage_disk | bool
|
||||
- pve_vm_state != "absent"
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
- name: Wait for SSH to become available
|
||||
delegate_to: localhost
|
||||
ansible.builtin.wait_for:
|
||||
host: "{{ ansible_host }}"
|
||||
port: 22
|
||||
timeout: 3600
|
||||
|
||||
# Runs on the guest itself, over the connection the play uses for it.
|
||||
- name: Wait for cloud-init to finish
|
||||
ansible.builtin.command: cloud-init status --wait
|
||||
register: __pve_vm_cloudinit_status
|
||||
retries: 10
|
||||
delay: 15
|
||||
until: __pve_vm_cloudinit_status.rc == 0
|
||||
changed_when: false
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
# Authorization header of the ansible.builtin.uri call in detect_disk.yml, derived from the
|
||||
# pve_vm_api_* inputs.
|
||||
__pve_vm_api_auth_header: "PVEAPIToken={{ pve_vm_api_user }}@{{ pve_vm_api_realm }}!{{ pve_vm_api_token_id }}={{ pve_vm_api_token_secret }}"
|
||||
@@ -61,8 +61,8 @@ The role defines none.
|
||||
|
||||
The scenario `molecule/default/` runs in CI only, on two platforms: `${MOLECULE_IMAGE}` (Ubuntu 24.04) and `${MOLECULE_IMAGE_2604}` (Ubuntu 26.04). Both images ship openssh-server. It runs `check` before the converge (a fresh host) and after it (a configured host).
|
||||
|
||||
- Converge applies the `ubuntu_lxc` profile. It then loads the defaults through `tasks_from: validate.yml` without changing the host: every profile (`pve`, `ubuntu_lxc`, `ubuntu_vm`) passes validation and keeps its root login policy and key algorithms, a consumer `sshd_settings` override wins over the profile, and the `pve` guard accepts each value that allows root key login.
|
||||
- Verify first checks the refusals: a run without `sshd_profile`, `PubkeyAuthentication no` (lock-out), a `pve` profile with `PermitRootLogin no` or `forced-commands-only`, a `pve` profile without `rsa-sha2-512`, SHA-1 `ssh-rsa`, and an unknown profile. Each but the missing profile is matched on its message.
|
||||
- Converge applies the `ubuntu_lxc` profile. Verify first loads the defaults on the controller through `tasks_from: validate.yml`: every profile (`pve`, `ubuntu_lxc`, `ubuntu_vm`) passes validation and keeps its root login policy and key algorithms, a consumer `sshd_settings` override wins over the profile, and the `pve` guard accepts each value that allows root key login.
|
||||
- Verify then checks the refusals: a run without `sshd_profile`, `PubkeyAuthentication no` (lock-out), a `pve` profile with `PermitRootLogin no` or `forced-commands-only`, a `pve` profile without `rsa-sha2-512`, SHA-1 `ssh-rsa`, and an unknown profile. Each but the missing profile is matched on its message.
|
||||
- Verify then checks the converged host: the drop-in exists, `sshd -t` passes, the `ssh` unit is active, and `sshd -T` shows key login on and password and root login off.
|
||||
- The `pve` profile is checked by rendering its drop-in to a scratch file and parsing it with `sshd -T -f`: root logs in with keys only and passwords stay off.
|
||||
|
||||
|
||||
@@ -7,73 +7,3 @@
|
||||
ansible_user: root
|
||||
roles:
|
||||
- role: mortis.kamino.sshd
|
||||
|
||||
# The plays below only load the role's defaults and run validate.yml, which changes nothing
|
||||
# on the container. They cover the profiles the converge above cannot run and the values
|
||||
# the guards accept.
|
||||
- name: Every profile passes validation and keeps its root login policy
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Validate each profile
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.sshd
|
||||
tasks_from: validate.yml
|
||||
public: true
|
||||
vars:
|
||||
sshd_profile: "{{ item }}"
|
||||
loop: [pve, ubuntu_lxc, ubuntu_vm]
|
||||
- name: Assert the profile data
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- sshd_profiles.pve.PermitRootLogin == "prohibit-password"
|
||||
- sshd_profiles.ubuntu_lxc.PermitRootLogin == "no"
|
||||
- sshd_profiles.ubuntu_vm.PermitRootLogin == "no"
|
||||
quiet: true
|
||||
# Proxmox cluster SSH needs RSA with SHA-2, never SHA-1 ssh-rsa; the others stay ed25519 only.
|
||||
- name: Assert the key algorithms per profile
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- sshd_profiles.pve.HostKeyAlgorithms == "ssh-ed25519,rsa-sha2-512,rsa-sha2-256"
|
||||
- sshd_profiles.pve.PubkeyAcceptedAlgorithms == "ssh-ed25519,rsa-sha2-512,rsa-sha2-256"
|
||||
- sshd_settings_defaults.HostKeyAlgorithms == "ssh-ed25519"
|
||||
- sshd_settings_defaults.PubkeyAcceptedAlgorithms == "ssh-ed25519"
|
||||
- "'HostKeyAlgorithms' not in sshd_profiles.ubuntu_lxc"
|
||||
- "'HostKeyAlgorithms' not in sshd_profiles.ubuntu_vm"
|
||||
quiet: true
|
||||
|
||||
# Play vars outrank the role defaults, so the override reaches the merged settings.
|
||||
- name: A consumer override wins and keeps the rest
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
vars:
|
||||
sshd_profile: ubuntu_vm
|
||||
sshd_settings:
|
||||
MaxAuthTries: "5"
|
||||
tasks:
|
||||
- name: Load the role defaults
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.sshd
|
||||
tasks_from: validate.yml
|
||||
public: true
|
||||
- name: Assert the override
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- sshd_settings_effective.MaxAuthTries == "5"
|
||||
- sshd_settings_effective.PermitRootLogin == "no"
|
||||
- sshd_settings_effective.PubkeyAuthentication == "yes"
|
||||
quiet: true
|
||||
|
||||
- name: The Proxmox guard accepts every value that allows root key login
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Validate the pve profile with each accepted value
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.sshd
|
||||
tasks_from: validate.yml
|
||||
vars:
|
||||
sshd_profile: pve
|
||||
sshd_settings:
|
||||
PermitRootLogin: "{{ item }}"
|
||||
loop: [prohibit-password, without-password, "yes", Prohibit-Password]
|
||||
Loaded 100 of 156 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user