Compare commits
76
Commits
v1.10.1
...
40b79ea985
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
40b79ea985 | ||
|
|
9d31fd9461 | ||
|
|
e0e9fa1b17 | ||
|
|
97f5328043 | ||
|
|
163bb21f40 | ||
|
|
ff000857a9 | ||
|
|
5d2f6ffad2 | ||
|
|
943cd96580 | ||
|
|
161e5bff63 | ||
|
|
a9aa1f2e0e | ||
|
|
597590c2f1 | ||
|
|
0ee6e76037 | ||
|
|
ba96e98585 | ||
|
|
d8f044740a | ||
|
|
b50ae9345a | ||
|
|
573e5e49a6 | ||
|
|
ff607879a1 | ||
|
|
35e780cf79 | ||
|
|
b232887153 | ||
|
|
de16995f35 | ||
|
|
a46880bc8a | ||
|
|
bca13f4139 | ||
|
|
35f7e772a5 | ||
|
|
ee4cb160ea | ||
|
|
8d7e71c881 | ||
|
|
d87b0e79cc | ||
|
|
1d1fe06bf5 | ||
|
|
325c24a8d0 | ||
|
|
e4c69dfdd8 | ||
|
|
e91c074373 | ||
|
|
9b968e1e71 | ||
|
|
637a297e00 | ||
|
|
f50ecc2945 | ||
|
|
8e512416e9 | ||
|
|
55bd5d5231 | ||
|
|
dab942afde | ||
|
|
344bf33ca1 | ||
|
|
3695d2dc6b | ||
|
|
3f2d184922 | ||
|
|
a0a871e3f9 | ||
|
|
51f5be20a4 | ||
|
|
07fb8a6d21 | ||
|
|
9c7b7e6e9e | ||
|
|
c438d40bbe | ||
|
|
10c14898f2 | ||
|
|
4c6dbf41bd | ||
|
|
a052713aa1 | ||
|
|
1edad97c0d | ||
|
|
50c881fa7c | ||
|
|
282c010167 | ||
|
|
db237569b2 | ||
|
|
42c391ccbe | ||
|
|
701226f499 | ||
|
|
92534a486e | ||
|
|
eaa5d2f4ee | ||
|
|
fd1e9b67dd | ||
|
|
ee0fa0e89e | ||
|
|
fea99a8207 | ||
|
|
d73b5b03dd | ||
|
|
9a626962a5 | ||
|
|
e308683431 | ||
|
|
560dc620a3 | ||
|
|
749a301e12 | ||
|
|
e10c973dc5 | ||
|
|
55e0f6ad93 | ||
|
|
4bc176656a | ||
|
|
0bdb0bf33f | ||
|
|
f256c1c7e5 | ||
|
|
5d9a26c1a6 | ||
|
|
545f2fe94a | ||
|
|
fa661be5c2 | ||
|
|
bfdbc9b42b | ||
|
|
57de3236ea | ||
|
|
929506882e | ||
|
|
29f66897f2 | ||
|
|
f34769bca2 |
No files matched your search
@@ -1,3 +1,8 @@
|
||||
{
|
||||
"attribution": {
|
||||
"commit": "Assisted-by: Claude Code",
|
||||
"pr": "Assisted-by: Claude Code",
|
||||
"sessionUrl": false
|
||||
},
|
||||
"disableSkillShellExecution": true
|
||||
}
|
||||
@@ -31,7 +31,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.33@sha256:2020686a819c5bdac6f773237479083ccc291a00351a6647c26a2dec5341de43
|
||||
image: git.rkdr.net/mortis/ci:0.2.35@sha256:307d51be744f3be5965af8783e88bd3fdda911dd53bb8a939d0710256e2e97d3
|
||||
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.33@sha256:2020686a819c5bdac6f773237479083ccc291a00351a6647c26a2dec5341de43
|
||||
image: git.rkdr.net/mortis/ci:0.2.35@sha256:307d51be744f3be5965af8783e88bd3fdda911dd53bb8a939d0710256e2e97d3
|
||||
steps:
|
||||
# The container has no Node, so JavaScript actions such as actions/checkout
|
||||
# cannot run; clone with git and the job token.
|
||||
|
||||
@@ -77,17 +77,17 @@ jobs:
|
||||
matrix:
|
||||
include:
|
||||
- name: molecule-ubuntu2404
|
||||
version: 0.1.8
|
||||
version: 0.1.9
|
||||
subpath: images/molecule-ubuntu2404
|
||||
dockerfile: Dockerfile
|
||||
job_image: ubuntu:24.04@sha256:73b999393d07f2bf65a40373778a44dc9a6d54ad7718d29247d8ff9413c4d6a8
|
||||
job_image: ubuntu:24.04@sha256:9c7f200c07e3d4a03e7249d2c16bf66a51120fb876aa2242cf31451412543289
|
||||
- name: molecule-ubuntu2604
|
||||
version: 0.1.5
|
||||
subpath: images/molecule-ubuntu2604
|
||||
dockerfile: Dockerfile
|
||||
job_image: ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
|
||||
- name: ci
|
||||
version: 0.2.34
|
||||
version: 0.2.37
|
||||
subpath: ""
|
||||
dockerfile: images/ci/Dockerfile
|
||||
job_image: ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
|
||||
|
||||
@@ -35,7 +35,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.33@sha256:2020686a819c5bdac6f773237479083ccc291a00351a6647c26a2dec5341de43
|
||||
image: git.rkdr.net/mortis/ci:0.2.35@sha256:307d51be744f3be5965af8783e88bd3fdda911dd53bb8a939d0710256e2e97d3
|
||||
env:
|
||||
PIP_DISABLE_PIP_VERSION_CHECK: "1"
|
||||
PRE_COMMIT_HOME: /opt/pre-commit
|
||||
|
||||
@@ -70,7 +70,7 @@ jobs:
|
||||
# Used by the scenarios as `image: ${MOLECULE_IMAGE}`; set it the same way to run
|
||||
# one locally.
|
||||
MOLECULE_IMAGE: >-
|
||||
git.rkdr.net/mortis/molecule-ubuntu2404:0.1.8@sha256:e1ea7c6f953626c39d9f578d60a1ef668f09ed4e5d537d5c7601668b5c5e0eb3
|
||||
git.rkdr.net/mortis/molecule-ubuntu2404:0.1.9@sha256:2687d921fdcadf49c36bd7a3b01eaf5f2a53fa0e8f9ed91b2c7ab0631022193b
|
||||
# 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: >-
|
||||
|
||||
+11
-1
@@ -68,7 +68,7 @@ repos:
|
||||
# --offline: no network audits, so a run needs no token and gives the same result everywhere.
|
||||
# Overriding args drops the hook's default, so --no-progress is repeated here.
|
||||
- repo: https://github.com/zizmorcore/zizmor-pre-commit
|
||||
rev: 0eb9e4a60caf04df64b499ed1e8bef55f4440eae # frozen: v1.33.0
|
||||
rev: c7d31dc612dffdd4d3b2f2b88b9660d3ab057ee8 # frozen: v1.33.1
|
||||
hooks:
|
||||
- id: zizmor
|
||||
args: [--no-progress, --offline]
|
||||
@@ -126,6 +126,16 @@ repos:
|
||||
require_serial: true
|
||||
fail_fast: true
|
||||
|
||||
# apm compile (target claude), a tool's project init or a skill can create a CLAUDE.md, and
|
||||
# the failure is silent: the agent gets no guidance and no error.
|
||||
- id: refuse-claude-md
|
||||
name: Refuse CLAUDE.md files
|
||||
description: refuse CLAUDE.md, CLAUDE.local.md and .claude/CLAUDE.md at any depth
|
||||
entry: a CLAUDE.md file makes Claude Code ignore every AGENTS.md; delete it
|
||||
language: fail
|
||||
files: (^|/)(\.claude/)?CLAUDE(\.local)?\.md$
|
||||
stages: ['pre-commit']
|
||||
|
||||
- repo: meta
|
||||
hooks:
|
||||
- id: check-hooks-apply
|
||||
|
||||
@@ -10,7 +10,7 @@ held: by a control (a named hook or check), by review, or aspirational (checked
|
||||
1. **Accountability**: every change has a human author who understands it and answers for it; an agent is a tool.
|
||||
2. **A human decides what is irreversible or shared**: settings, protection, tags, releases, credentials, merges to `main`; a merge is decided case by case or by a standing rule a human reviewed, such as Renovate's automerge policy in `renovate.json`.
|
||||
3. **Secrets and supply chain**: no secret in the repository, a prompt or a log; dependencies and images are pinned and change through review.
|
||||
4. **Enforced, not trusted**: a rule that matters gets a control; one without is labelled as such.
|
||||
4. **Controlled, not trusted**: a rule that matters gets a control; one without is labelled as such.
|
||||
5. **Honest reporting**: a pull request says what was verified and what was not.
|
||||
6. **Simple enough to review**: see the code-style rules below.
|
||||
7. **Openness and licence**: AI assistance is disclosed; contributions are GPL-compatible and REUSE-clean.
|
||||
|
||||
@@ -4,6 +4,22 @@ mortis.kamino Release Notes
|
||||
|
||||
.. contents:: Topics
|
||||
|
||||
v1.11.0
|
||||
=======
|
||||
|
||||
Minor Changes
|
||||
-------------
|
||||
|
||||
- cloudflared - New role. Installs cloudflared as a systemd service for a locally managed Cloudflare Tunnel, with a sha256-verified binary, checks that the tunnel still exists, renders ``config.yml`` from ``cloudflared_ingress``, writes the tunnel credentials, and with ``cloudflared_manage_dns`` (default true) points a proxied CNAME for every ingress hostname at the tunnel, refusing to overwrite a record that does not point at a tunnel and pruning CNAMEs of this tunnel that are no longer listed. With ``cloudflared_update`` it downloads and verifies a new release before stopping anything and swaps it in through the internal ``_binary_update`` role, with rollback on failure. ``cloudflared_remove`` removes the daemon and ends the role; with ``cloudflared_remove_data`` it also deletes the tunnel and its records on Cloudflare. The opt-in ``mint`` entry point creates the tunnel with a secret generated in memory and registers its id and credentials as ``no_log`` facts for the calling play to persist; it is refused under CI and does nothing when a tunnel is already set.
|
||||
|
||||
v1.10.2
|
||||
=======
|
||||
|
||||
Bugfixes
|
||||
--------
|
||||
|
||||
- systemd_hardening - Disable and mask the socket of a listed service as well. A service whose socket stayed active was started again by the next connection to its port (``rpcbind`` listens on port 111 through ``rpcbind.socket``). Every name in the disable and mask lists is now looked up as a socket and as a service, with or without a ``.service`` or ``.socket`` suffix, and each installed unit is acted on, the socket first. A socket that belongs to a listed name, such as ``rpcbind.socket``, is now stopped and disabled, or masked, where before it was left alone.
|
||||
|
||||
v1.10.1
|
||||
=======
|
||||
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
# Some patterns name paths that do not exist yet, so the file is in place before they do.
|
||||
# Everything else is unowned, so role changes merge on green checks. requirements-dev.txt,
|
||||
# requirements-dev.lock and requirements.yml stay unowned on purpose, so Renovate's pin
|
||||
# bumps keep automerging behind the bot-diff gate.
|
||||
# bumps keep automerging behind the bot-diff check.
|
||||
|
||||
CODEOWNERS @Defame1297
|
||||
\\.gitea/.* @Defame1297
|
||||
|
||||
+28
-2
@@ -1,11 +1,13 @@
|
||||
# Kamino
|
||||
|
||||
The language of contributing to the `mortis.kamino` Ansible Collection: how its guidance for contributors and their agents is named.
|
||||
The language of contributing to the `mortis.kamino` Ansible Collection: how the guidance for its contributors and their agents, and its role interface, are named.
|
||||
|
||||
## Language
|
||||
|
||||
### Guidance
|
||||
|
||||
A rule is held in exactly one of three ways: by a control (naming the check), by review, or aspirationally; an agent instruction is a place a rule lives, not a way it is held.
|
||||
|
||||
**Principle**:
|
||||
A commitment that holds across the whole repository, stated with its reason.
|
||||
_Avoid_: Value, guideline, philosophy
|
||||
@@ -15,9 +17,17 @@ What a principle requires of a contributor, human or agent, in one area of the r
|
||||
_Avoid_: Convention, policy, standard
|
||||
|
||||
**Control**:
|
||||
A mechanical check, a hook or a CI job, that holds a rule without depending on anyone's attention.
|
||||
A mechanical check (a hook, a CI job or a repository setting) that holds a rule without depending on anyone's attention. Something that only proposes a change, such as a Renovate pull request, is not one: a human or another control still decides.
|
||||
_Avoid_: Gate, guard, guardrail, enforcement
|
||||
|
||||
**Review**:
|
||||
A person other than the one acting sees the change before it takes effect, such as a pull request reviewer or a code-owner approval.
|
||||
_Avoid_: Sign-off
|
||||
|
||||
**Aspirational**:
|
||||
Written down and relied on, but checked by nothing and nobody, so a breach is found only by chance.
|
||||
_Avoid_: Best effort, honour system
|
||||
|
||||
### People
|
||||
|
||||
There are two positions, each held per repository: a trusted contributor of another repository in the organisation is an outsider here unless given write access here.
|
||||
@@ -43,3 +53,19 @@ _Avoid_: Bot, autonomous agent, AFK agent
|
||||
**Agent account**:
|
||||
A Gitea account used only by agents, with exactly one accountable person.
|
||||
_Avoid_: Bot account, service account
|
||||
|
||||
### Merging
|
||||
|
||||
**Scheduled merge**:
|
||||
A merge set to run once the required checks pass; it merges whatever head the branch has at that moment, as the person who set it. Renovate's automerge is one.
|
||||
_Avoid_: Automerge (for the general case), merge when checks succeed
|
||||
|
||||
### Roles
|
||||
|
||||
**Role interface**:
|
||||
What a consumer of a role may depend on: its inputs, supported entry points, documented output facts and documented tags.
|
||||
_Avoid_: API, public surface
|
||||
|
||||
**Internal role**:
|
||||
A role that only other roles of the Collection call; its interface is not part of the Collection's versioning promise.
|
||||
_Avoid_: Private role, helper role
|
||||
@@ -4,7 +4,7 @@ An Ansible Collection of reusable, hardened roles for a self-hosted home lab:
|
||||
Linux baseline, firewall, SSH, user management and, in later releases, Proxmox,
|
||||
Gitea and Gitea Actions runner roles.
|
||||
|
||||
Status: roles arrive in waves. Release 1.10.1 holds the `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `sshd`, `system_baseline`, `systemd_hardening`, `traefik`, `ufw` and `user_management` roles (and the internal `_binary_update`, which `gitea`, `gitea_runner` and `traefik` call).
|
||||
Status: roles arrive in waves. Release 1.11.0 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `sshd`, `system_baseline`, `systemd_hardening`, `traefik`, `ufw` and `user_management` roles (and the internal `_binary_update`, which `cloudflared`, `gitea`, `gitea_runner` and `traefik` call).
|
||||
|
||||
## Consuming
|
||||
|
||||
@@ -16,7 +16,7 @@ name (FQCN) only, `mortis.kamino.<role>`:
|
||||
collections:
|
||||
- name: https://git.rkdr.net/mortis/kamino.git
|
||||
type: git
|
||||
version: v1.10.1
|
||||
version: v1.11.0
|
||||
```
|
||||
|
||||
Its dependencies (`community.general`, `ansible.posix`) are declared in `galaxy.yml`, so
|
||||
@@ -33,14 +33,12 @@ input carries the role name as a prefix (`<role>_<name>`).
|
||||
|
||||
## Roadmap
|
||||
|
||||
Roles are extracted from the author's private environment repository in waves
|
||||
(tracked in that repository's epic #486 and its ADR 0001). The order inside a wave is
|
||||
not a promise, and a role arrives only when its own gates (tests, a safe cutover of
|
||||
the environment that uses it) are met.
|
||||
Roles arrive in waves. The order inside a wave is not a promise, and a role arrives only
|
||||
when its own prerequisites (tests, a safe cutover wherever the role already runs) are met.
|
||||
|
||||
Still to come:
|
||||
|
||||
- Wave 2: `pve_vm`, `pve_lxc`, `tailscale`, `cloudflared`, `pihole`.
|
||||
- Wave 2: `pve_vm`, `pve_lxc`, `tailscale`, `pihole`.
|
||||
- Wave 3: `rke2`, `proxmox_host`.
|
||||
- Later, wave not yet assigned: `opnsense`, `proxmox_firewall`.
|
||||
|
||||
|
||||
+3
-3
@@ -93,8 +93,8 @@ reduction. A later decision that accepts a risk adds an entry here.
|
||||
|
||||
- **Risk:** a writer can add a version-shaped change to such a pull request, and it merges as
|
||||
the Renovate bot.
|
||||
- **Why accepted:** bounded by the bot-diff gate (shape, not value) and by code-owner
|
||||
approval, which a push dismisses; every account that can push there already reaches every
|
||||
secret. There is no `renovate/*` push allowlist.
|
||||
- **Why accepted:** bounded by the bot-diff check (`scripts/check_bot_pr_diff.py`: shape, not
|
||||
value) and by code-owner approval, which a push dismisses; every account that can push there
|
||||
already reaches every secret. There is no `renovate/*` push allowlist.
|
||||
- **Trigger:** a token that can push here but cannot reach the secrets.
|
||||
- **Planned reduction:** none for now.
|
||||
@@ -5,6 +5,11 @@ objects:
|
||||
with rollback'
|
||||
name: _binary_update
|
||||
version_added: null
|
||||
cloudflared:
|
||||
description: Install and run cloudflared for a locally managed Cloudflare Tunnel,
|
||||
with its DNS records
|
||||
name: cloudflared
|
||||
version_added: null
|
||||
docker:
|
||||
description: Install, update or remove Docker Engine
|
||||
name: docker
|
||||
@@ -66,4 +71,4 @@ plugins:
|
||||
strategy: {}
|
||||
test: {}
|
||||
vars: {}
|
||||
version: 1.10.1
|
||||
version: 1.11.0
|
||||
@@ -71,6 +71,40 @@ releases:
|
||||
fragments:
|
||||
- systemd-hardening-unit-lookup.yml
|
||||
release_date: '2026-11-23'
|
||||
1.10.2:
|
||||
changes:
|
||||
bugfixes:
|
||||
- systemd_hardening - Disable and mask the socket of a listed service as well.
|
||||
A service whose socket stayed active was started again by the next connection
|
||||
to its port (``rpcbind`` listens on port 111 through ``rpcbind.socket``).
|
||||
Every name in the disable and mask lists is now looked up as a socket and
|
||||
as a service, with or without a ``.service`` or ``.socket`` suffix, and each
|
||||
installed unit is acted on, the socket first. A socket that belongs to a listed
|
||||
name, such as ``rpcbind.socket``, is now stopped and disabled, or masked,
|
||||
where before it was left alone.
|
||||
fragments:
|
||||
- systemd-hardening-sockets.yml
|
||||
release_date: '2026-11-23'
|
||||
1.11.0:
|
||||
changes:
|
||||
minor_changes:
|
||||
- cloudflared - New role. Installs cloudflared as a systemd service for a locally
|
||||
managed Cloudflare Tunnel, with a sha256-verified binary, checks that the
|
||||
tunnel still exists, renders ``config.yml`` from ``cloudflared_ingress``,
|
||||
writes the tunnel credentials, and with ``cloudflared_manage_dns`` (default
|
||||
true) points a proxied CNAME for every ingress hostname at the tunnel, refusing
|
||||
to overwrite a record that does not point at a tunnel and pruning CNAMEs of
|
||||
this tunnel that are no longer listed. With ``cloudflared_update`` it downloads
|
||||
and verifies a new release before stopping anything and swaps it in through
|
||||
the internal ``_binary_update`` role, with rollback on failure. ``cloudflared_remove``
|
||||
removes the daemon and ends the role; with ``cloudflared_remove_data`` it
|
||||
also deletes the tunnel and its records on Cloudflare. The opt-in ``mint``
|
||||
entry point creates the tunnel with a secret generated in memory and registers
|
||||
its id and credentials as ``no_log`` facts for the calling play to persist;
|
||||
it is refused under CI and does nothing when a tunnel is already set.
|
||||
fragments:
|
||||
- cloudflared-role.yml
|
||||
release_date: '2026-11-23'
|
||||
1.2.0:
|
||||
changes:
|
||||
minor_changes:
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
minor_changes:
|
||||
- >-
|
||||
docker - ``docker_apt_arch`` now defaults to an empty value that derives the apt architecture from the host (``x86_64`` gives ``amd64``,
|
||||
``aarch64`` gives ``arm64``) instead of always writing ``amd64``, so an arm64 host no longer needs an override. A value set in the inventory
|
||||
is used as before. A host with any other architecture fails the play with a message that names ``docker_apt_arch`` instead of getting an
|
||||
``amd64`` source line that its apt cannot use; set ``docker_apt_arch`` for such a host.
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
minor_changes:
|
||||
- >-
|
||||
fail2ban - the main entry point now reloads Fail2Ban when ``jail.local`` changes instead of restarting it, as ``service_jail``
|
||||
already did. A restart stops every jail, which flushes its bans out of the firewall until they are restored from Fail2Ban's
|
||||
database, and forgets failures counted toward ``maxretry``; a reload applies the new settings to the running jails. The
|
||||
``Restart Fail2Ban`` handler is removed: nothing in the role notifies it any more.
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
minor_changes:
|
||||
- >-
|
||||
gitea_runner - The Docker prune can bound the image cache by count and by disk use. With
|
||||
``gitea_runner_docker_prune_keep_per_repository`` above 0 the weekly prune keeps the newest N image IDs of each
|
||||
repository and removes every other image no container uses. With ``gitea_runner_docker_prune_disk_threshold_percent``
|
||||
set, a timer (``gitea_runner_docker_prune_disk_check_schedule``, hourly by default) runs the count prune and a builder
|
||||
prune capped at ``gitea_runner_docker_prune_builder_keep_storage`` when the filesystem holding the Docker root is
|
||||
fuller than that, behind the same job gate as the weekly prune. Both are off by default.
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
bugfixes:
|
||||
- >-
|
||||
system_baseline - Do not run the apt upgrade in check mode in the main flow. A package that is only waiting for the next patch run, or a
|
||||
package cache older than an hour, is not drift, but the package module reports both as changed, so a scheduled dry run flagged every
|
||||
host. Autoremove and autoclean are now a task of their own and stay checked; as part of the upgrade call the module did not reach
|
||||
autoclean, so ``apt-get autoclean`` now runs (and may report changed once on a host with stale archives), in the main flow and in the
|
||||
``update`` entry point. The ``update`` entry point still previews the upgrade in check mode.
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
minor_changes:
|
||||
- >-
|
||||
system_baseline - Add ``system_baseline_unattended_upgrade_package_blacklist`` (list of regular expressions, default empty). A non-empty
|
||||
list is written to ``/etc/apt/apt.conf.d/90unattended-upgrades-blacklist`` as ``Unattended-Upgrade::Package-Blacklist``, so unattended-upgrades
|
||||
leaves those packages alone on a host whose kernel or drivers must not change. An empty list removes the file.
|
||||
@@ -45,7 +45,8 @@ contributor docs are held by review until an offline link check exists. Terms su
|
||||
[SECURITY.md](../../SECURITY.md)).
|
||||
*Held by:* aspirational.
|
||||
- **No agent approves or merges a pull request, driven or unattended.**
|
||||
*Reason:* approval by a code owner is the gate, and an agent that approves passes its own gate.
|
||||
*Reason:* approval by a code owner is the review, and an agent's approval is not a review by a
|
||||
person other than the one acting.
|
||||
*Held by:* control for agent accounts (they are outside the merge and approvals allowlists of the
|
||||
branch protection); review for an agent acting with a contributor's own token.
|
||||
- **Every agent account has exactly one accountable person, named in its Gitea profile.**
|
||||
|
||||
@@ -91,7 +91,8 @@ The rules for these live next to the files they govern: [scripts/AGENTS.md](../.
|
||||
(scripts, their tests, tool pins and their lock, hook SHA pins),
|
||||
[images/AGENTS.md](../../images/AGENTS.md) (image inputs, version bumps, pin pull requests, the layer
|
||||
limit), [.gitea/workflows/AGENTS.md](../../.gitea/workflows/AGENTS.md) (workflows, secrets, the
|
||||
bot-diff gate) and [docs/adr/AGENTS.md](../adr/AGENTS.md) (decision records).
|
||||
bot-diff check `scripts/check_bot_pr_diff.py`) and [docs/adr/AGENTS.md](../adr/AGENTS.md) (decision
|
||||
records).
|
||||
|
||||
- **Test a change to `renovate.json` before the merge with `renovate --platform=local`** (the version
|
||||
in `.gitea/workflows/renovate.yml`), which reads your checkout.
|
||||
|
||||
@@ -40,8 +40,8 @@ held by review until an offline link check exists.
|
||||
*Reason:* it is the one visible sign that the agent loaded the guidance.
|
||||
*Held by:* aspirational.
|
||||
- **The tracked `.claude/settings.json` never holds `permissions.allow`; `deny` and `ask` rules are
|
||||
allowed. Your own allowlist and personal guards go in `.claude/settings.local.json`, which is never
|
||||
committed.**
|
||||
allowed. Your own allowlist, hooks and any other rules you do not want shared go in
|
||||
`.claude/settings.local.json`, which is never committed.**
|
||||
*Reason:* a branch's settings take effect for whoever opens it with an agent, so an `allow` rule
|
||||
pushed on an unmerged branch lets that branch's commands run without a prompt before anyone has
|
||||
reviewed it, while a `deny` or `ask` rule can only add prompts.
|
||||
|
||||
+2
-2
@@ -67,7 +67,7 @@ real consumers.
|
||||
|
||||
- `<version>` is semver, independent of the Collection's version. A published version is never moved or
|
||||
rebuilt, so one digest belongs to exactly one version. `latest` is the newest version, for looking only.
|
||||
- Pin `ci:<version>@sha256:<digest>`; the digest is what is enforced. Consumers: `lint.yml`, `build.yml` and
|
||||
- Pin `ci:<version>@sha256:<digest>`; the digest decides what is pulled. Consumers: `lint.yml`, `build.yml` and
|
||||
`gitea-release-key.yml`.
|
||||
- Renovate is configured to move the pins to a new version after the image is built on `main` (the rule is in
|
||||
`renovate.json`; the first pin of a brand-new image is made by hand).
|
||||
@@ -78,7 +78,7 @@ real consumers.
|
||||
files are copied in). The workflow runs on pushes to `main` that touch `images/**`, `requirements-dev.txt`, `requirements-dev.lock`, `requirements.yml`,
|
||||
`.pre-commit-config.yaml` or the workflow itself, never on a pull request, and builds an image only when its
|
||||
`version:` in the workflow's matrix is not yet published. A change to the image's inputs therefore needs a new
|
||||
`version:` (Lint enforces it, and Renovate's bump step does it for dependency updates), and the merge builds
|
||||
`version:` (Lint checks it, and Renovate's bump step does it for dependency updates), and the merge builds
|
||||
the image. Each pushed layer stays below 100 MB (Cloudflare's request limit), which is why the Go toolchains
|
||||
and the unused Go binaries are deleted from the hook cache, and why the build prints the compressed size of each layer
|
||||
directory.
|
||||
|
||||
@@ -58,7 +58,7 @@ systemd, packages, the `dbus` and `ssh` units, the Python bindings, `NET_ADMIN`)
|
||||
- `<version>` is semver (`MAJOR.MINOR.PATCH`), 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 and is for looking, not for pinning.
|
||||
- Pin `molecule-ubuntu2404:<version>@sha256:<digest>`; the digest is what is enforced. Consumers here:
|
||||
- Pin `molecule-ubuntu2404:<version>@sha256:<digest>`; the digest decides what is pulled. Consumers here:
|
||||
`.gitea/workflows/molecule.yml`.
|
||||
- Renovate is configured to move the pin to a new version after the image is built on `main` (the rule is in
|
||||
`renovate.json`; the first pin of a brand-new image is made by hand).
|
||||
@@ -68,7 +68,7 @@ systemd, packages, the `dbus` and `ssh` units, the Python bindings, `NET_ADMIN`)
|
||||
`.gitea/workflows/image.yml` builds it with kaniko. The workflow runs on pushes to `main` that touch `images/**`,
|
||||
`requirements-dev.txt`, `requirements-dev.lock`, `requirements.yml`, `.pre-commit-config.yaml` or the workflow itself, never on a pull request, and builds an
|
||||
image only when its `version:` in the workflow's matrix is not yet published. A change under
|
||||
`images/molecule-ubuntu2404/` therefore needs a new `version:` (Lint enforces it) and the merge builds the image. The
|
||||
`images/molecule-ubuntu2404/` therefore needs a new `version:` (Lint checks it) and the merge builds the image. The
|
||||
Ubuntu release is fixed by the name: a new Ubuntu release is a new image (`molecule-ubuntuNNNN`), and the roles
|
||||
are tested on every release the hosts run or are moving to.
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ systemd, packages, the `dbus` and `ssh` units, the Python bindings, `NET_ADMIN`)
|
||||
- `<version>` is semver (`MAJOR.MINOR.PATCH`), 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 and is for looking, not for pinning.
|
||||
- Pin `molecule-ubuntu2604:<version>@sha256:<digest>`; the digest is what is enforced. Consumers here:
|
||||
- Pin `molecule-ubuntu2604:<version>@sha256:<digest>`; the digest decides what is pulled. Consumers here:
|
||||
`.gitea/workflows/molecule.yml`.
|
||||
- Renovate is configured to move the pin to a new version after the image is built on `main` (the rule is in
|
||||
`renovate.json`; the first pin of a brand-new image is made by hand).
|
||||
@@ -67,7 +67,7 @@ systemd, packages, the `dbus` and `ssh` units, the Python bindings, `NET_ADMIN`)
|
||||
`.gitea/workflows/image.yml` builds it with kaniko. The workflow runs on pushes to `main` that touch `images/**`,
|
||||
`requirements-dev.txt`, `requirements-dev.lock`, `requirements.yml`, `.pre-commit-config.yaml` or the workflow itself, never on a pull request, and builds an
|
||||
image only when its `version:` in the workflow's matrix is not yet published. A change under
|
||||
`images/molecule-ubuntu2604/` therefore needs a new `version:` (Lint enforces it) and the merge builds the image. The
|
||||
`images/molecule-ubuntu2604/` therefore needs a new `version:` (Lint checks it) and the merge builds the image. The
|
||||
Ubuntu release is fixed by the name: a new Ubuntu release is a new image (`molecule-ubuntuNNNN`), and the roles
|
||||
are tested on every release the hosts run or are moving to.
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
---
|
||||
namespace: mortis
|
||||
name: kamino
|
||||
version: 1.10.1
|
||||
version: 1.11.0
|
||||
readme: README.md
|
||||
authors:
|
||||
- Defame1297
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
# fails without host keys, so they cannot be removed; image scanners will flag them.
|
||||
# They are throwaway keys of a test target that is never exposed.
|
||||
# ubuntu:24.04 index digest as of 2026-10-24 (24.04.5).
|
||||
FROM ubuntu:24.04@sha256:73b999393d07f2bf65a40373778a44dc9a6d54ad7718d29247d8ff9413c4d6a8
|
||||
FROM ubuntu:24.04@sha256:9c7f200c07e3d4a03e7249d2c16bf66a51120fb876aa2242cf31451412543289
|
||||
|
||||
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." \
|
||||
|
||||
+1
-1
@@ -106,7 +106,7 @@
|
||||
"automerge": true
|
||||
},
|
||||
{
|
||||
"description": "The Renovate job container of renovate.yml runs with the job token: hand-bumped, never by the bot (the bot-diff gate would refuse a change to that file anyway).",
|
||||
"description": "The Renovate job container of renovate.yml runs with the job token: hand-bumped, never by the bot (the bot-diff check would refuse a change to that file anyway).",
|
||||
"matchFileNames": [
|
||||
".gitea/workflows/renovate.yml"
|
||||
],
|
||||
|
||||
+473
-446
@@ -179,9 +179,9 @@ aiosignal==1.4.0 \
|
||||
--hash=sha256:053243f8b92b990551949e63930a839ff0cf0b0ebbe0597b0f3fb19e1a0fe82e \
|
||||
--hash=sha256:f47eecd9468083c2029cc99945502cb7708b082c232f9aca65da147157b251c7
|
||||
# via aiohttp
|
||||
annotated-doc==0.0.6 \
|
||||
--hash=sha256:361ca0950cc7082f53fa69e9328409f40a62c61e57e0a47e1825a08078a58a53 \
|
||||
--hash=sha256:7969bb69912085b2285849c0dcac0b4b374fd180c13cf10a87f284ffcf347bbf
|
||||
annotated-doc==0.0.7 \
|
||||
--hash=sha256:0a30ef8f5322a4173720ae6712dc9a5e58f5a19868f3f167b4b5778db066c2b5 \
|
||||
--hash=sha256:6bc31bbbec6dfaaedc1676dbc11dbda96fe22a2b5c400e9ebad113fec44a9dc6
|
||||
# via typer
|
||||
annotated-types==0.8.0 \
|
||||
--hash=sha256:13b2beaad985e05e2d6407ee4c4f35590b11f8d693a258a561055cac8f64cab7 \
|
||||
@@ -291,13 +291,13 @@ boolean-py==5.0 \
|
||||
--hash=sha256:60cbc4bad079753721d32649545505362c754e121570ada4658b852a3a318d95 \
|
||||
--hash=sha256:ef28a70bd43115208441b53a045d1549e2f0ec6e3d08a9d142cbc41c1938e8d9
|
||||
# via license-expression
|
||||
bracex==3.2.3 \
|
||||
--hash=sha256:8d6d677856121820d67b9009e76a5740fb02ab6dcd2d9815a83724d1888c305d \
|
||||
--hash=sha256:8fbf92b4db3c31de999145e22a47d4ffdbefb983a98583c3272bd7d570f9a343
|
||||
bracex==3.2.4 \
|
||||
--hash=sha256:82e9e738b63fca213c33211d30b0b1ca330896a1091736e78da2c1bcda93ab30 \
|
||||
--hash=sha256:c1e67eb59f81445dee15b2c588b7c81352b697cfbd6c4931a2943ea6b71eb5ea
|
||||
# via wcmatch
|
||||
certifi==2026.10.23 \
|
||||
--hash=sha256:a9895e6e2758b371e0545e321a3a8fd1fcfd9829ada8824a936dfb16aaaf36cd \
|
||||
--hash=sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1
|
||||
certifi==2026.11.20 \
|
||||
--hash=sha256:7422df25243767b9877031a2248cb14d09ddac9beee846f4cef3d5c9191d488f \
|
||||
--hash=sha256:af1cb240a8133f105aa52684a3a3258339d7f2fd0bd4e2812698ff5cf5588c4e
|
||||
# via requests
|
||||
cffi==2.1.1 \
|
||||
--hash=sha256:046bfc24911b37851ee1b51aab8bffe713d89c68c6a057b09484ce9fd5f69b4e \
|
||||
@@ -407,179 +407,179 @@ cfgv==3.5.0 \
|
||||
--hash=sha256:a8dc6b26ad22ff227d2634a65cb388215ce6cc96bbcc5cfde7641ae87e8dacc0 \
|
||||
--hash=sha256:d5b1034354820651caa73ede66a6294d6e95c1b00acc5e9b098e917404669132
|
||||
# via pre-commit
|
||||
charset-normalizer==3.5.2 \
|
||||
--hash=sha256:01077390b03f7988f11d700a2194e69b119741a86b1a638b1db88891e3eced8e \
|
||||
--hash=sha256:01b0c0d2262a9e28e8484a278c7e1b5d650e3ac8cf2683d2967e25899f208bdf \
|
||||
--hash=sha256:04851f73ae72b8413dddadb16a49dfee95263553741fd42d546f7d66907e6be5 \
|
||||
--hash=sha256:0521c5665880b33d603717defa76c094048900010897909952397feb3039da56 \
|
||||
--hash=sha256:0774bf9bf620249fee3e0b8b9fd3065de213be30f3aa94ce2494b3b638949e26 \
|
||||
--hash=sha256:0891b9d3903c5571c03771ca669a4b0ec5618ca722a5c957d3d29cd4e5062848 \
|
||||
--hash=sha256:0c951d5e6dd9c2ff60609476752bee49da4206adde960ebc247766937f72e718 \
|
||||
--hash=sha256:0fed1d06615f022ee3b13caf5e8b180cfea32bb2c5aded8a9d44277afc040f93 \
|
||||
--hash=sha256:114e4d0c92d618409ed82a99e22b5c5e768fe995f2973f78265f4524f49d4640 \
|
||||
--hash=sha256:11912e4bb14baae7c5d8791aa55ba0a3a03ec6729073307b0f57270abaa713d3 \
|
||||
--hash=sha256:11a4d68a6ecda3292cb1e50239e111543ba5d709bb62a6b4ea1afcfa729d8875 \
|
||||
--hash=sha256:124fbf1a8ff966d87ae05bb8bd45a71f966055ed8bba320d0c7cf450bc5f4d0e \
|
||||
--hash=sha256:1461ac396c4fdb983a675f20aa555624f0ee18ac83d832b9244ffff3d8055275 \
|
||||
--hash=sha256:1503bccbeb36d5527790c3930327704c39af22de3112f1b1666a9f3ce15ee204 \
|
||||
--hash=sha256:15bb4005af6320d259dc7593ca84a38d7fe06a421dbcf7b910ae23979101e787 \
|
||||
--hash=sha256:15c44f7edfd477b06f517a5cc317fc1707edb9de2c865f43d4b6513907473234 \
|
||||
--hash=sha256:16fa0eccf81304b79c5cd87f9271c3b85dd9dd99245e4422ae9c0dd45e0f99d3 \
|
||||
--hash=sha256:183b88127acdb4fabe59d951ab424faf1af7b63cdbb5f776186c1ea2ffcaed98 \
|
||||
--hash=sha256:195c26fb65950f8fce54e26349852b7bdd7c5f120aeefbcc440b8a20faaed4a3 \
|
||||
--hash=sha256:1afb975bd5d68d5ce9f6b6d44fdf2f7e34b895a35e95708a7a91b20a3b51d187 \
|
||||
--hash=sha256:1b4cbc7c3491ccb4aa17fcd8165649d01cf39f76de1696da8631b5f71b85401d \
|
||||
--hash=sha256:1bc0baf5ef96b6ede57d47f4b8fe4d9d84019c3bfcbeb20a41edc6a6ee341f1f \
|
||||
--hash=sha256:1c50fe28bbc2ced33386f298650d91218076c05420e6cbd790b913adc41659e7 \
|
||||
--hash=sha256:1db38f4c5496827c1a501846d64d14c3b80c7e6714e406cd7dc36a9899fa1011 \
|
||||
--hash=sha256:211d5a3eb6af8f513b8d4ca19a8c1b7accab1b5f0d3175f9826b03c1a920dc1f \
|
||||
--hash=sha256:23851fb4e1b85ed3f6c2a27b777cdfe2e19fb5b38429a8faf38c7542b7665869 \
|
||||
--hash=sha256:254eb48b9fa5ee9898a3c445825a1f340fe53712a098904b39b0bddba8ea3cb1 \
|
||||
--hash=sha256:2625388c6c754520c37abaf3b41eb34d1cc4a373f457898f08606c8e362b891d \
|
||||
--hash=sha256:281cb91036248400f4cc957495cccd44c275c2e0c5854f7e45ac5cf7dc193847 \
|
||||
--hash=sha256:28a15fdad492a99b6eccfaaed66ef3f74050680545ea61ec8b2f4c538f1f1320 \
|
||||
--hash=sha256:28b4f0d66fb834ff90f28209ac7bce77868c45d8c93e26f906709d9b7c2e1af9 \
|
||||
--hash=sha256:2a925889534b3748302dae5dead07cc13480de1dac3aea80a941b729b471ef93 \
|
||||
--hash=sha256:2b7b3bbfb4fe8ef40600792d762fbaa9057559f9d3fad209525b7a22b99e91fd \
|
||||
--hash=sha256:2c9ad19a6cfcd5ea5c0d41161d22f9df1dcc277e9bef2751391334546a314c00 \
|
||||
--hash=sha256:2cc961b171b3f3440f410489ab3573e86aea8736134ebbb40ea1338b7f0831bc \
|
||||
--hash=sha256:2ce45c6627b22c47e390bc91a41c3d13032192e699fa0bea96e9671b373d69b0 \
|
||||
--hash=sha256:2e06a3a98f916dd41d27f3105e02e7a40181c98c94b9158733d03a6f80506c09 \
|
||||
--hash=sha256:304d5463e65a35d7bb0850550e0780395395f6fcf452f04db7d5ca7cecc425ac \
|
||||
--hash=sha256:304d8e4d493af723536393eee0c689eb7813f4a474c8b479dee63f1fdd98f621 \
|
||||
--hash=sha256:30fcd120b732aa79317f08dee04d7de0847822e4cf7ee0e9f445bb958832252c \
|
||||
--hash=sha256:31f3930700408d211f13378ccbe1c40845d8da54bd0681fac3a9b5aae81c7aa8 \
|
||||
--hash=sha256:34276fd796040bf0993ab33a369aa572e6979c7aab225a88893667ad8eac8f7a \
|
||||
--hash=sha256:355ad8011081dec5412240c087a9a0c9d4d5039f3ed11a3f13e18c2b29b56c51 \
|
||||
--hash=sha256:38a873987f3be698494da8b2e3085e29da02da7b633dce73e79c699a113d7bf0 \
|
||||
--hash=sha256:39de2a259fc954455c57274dc94c79d5842774e1247a016aff30bc0efed0f4ef \
|
||||
--hash=sha256:3d14b50de6bf4d0edf857a9386836846f982b8f524e188e2e68b96d702bcf4aa \
|
||||
--hash=sha256:3d21b8b13c7592db2ac5e544a6d83187b995257472b0c9e8351b6d507ae37ed6 \
|
||||
--hash=sha256:3d31298449090ab8d47b7b1b2a555ff73cac7ed438a08b7ac160980c7ebed649 \
|
||||
--hash=sha256:3ddacd27458c45bdacd6bd6db644bfb730efbf9e830310186e3045c9c5be8fb2 \
|
||||
--hash=sha256:3df041de8887954562c9b261cba85ca0e9ded74048daf125f45edcfaa4832229 \
|
||||
--hash=sha256:40ab6bffa02ae10a0581e6c198be7d2d8ca5c2a0c64e4ed3465d766df457573e \
|
||||
--hash=sha256:4275811936e2f06feff5e598fb42a1b7ae852da8e39605211892b56b81a34efd \
|
||||
--hash=sha256:443eae2bf318abeaf6f15d785138f71fd6de770e99a92158b8b814265e079115 \
|
||||
--hash=sha256:447441e76ec720b15e64418d32e092297340387053047c7c694f579efb0ee1d9 \
|
||||
--hash=sha256:4495c5002a7b28557e7e222e77e0b661183e432b7d6d2e788101e3f240e05b8c \
|
||||
--hash=sha256:44bd4fbb29dfbeba60e7d2bd000c59e4b21ddb3cc53912b14048d37092706d7c \
|
||||
--hash=sha256:4685902cf26edf013ed7a3da0f426ebba7a00ebb9541386d835afbf002c11cab \
|
||||
--hash=sha256:498dc3188ca05a68231ac3fdbfc7f57eb67e1343c30e0fea17f8218c1599b253 \
|
||||
--hash=sha256:4c2b5031f63e331e3839b40aed2dd6f191e9c07edbde303e7876846ea1946995 \
|
||||
--hash=sha256:4d48f2d08b9de5864e2c8744d4461b862fb149a18274abc8b698c45975573438 \
|
||||
--hash=sha256:4f87960d57feabfb618e4e0af6e7371645fa26a277860739d6e5d6e0012c92f0 \
|
||||
--hash=sha256:50e3adfb96fc189eb27b1cf62d3b598b89b4bb0420d93a3d3e42e137409011be \
|
||||
--hash=sha256:51cf45226a9b588d0d2b4880c62d686934b63ab0bd79ca23ab0e9762eb27441b \
|
||||
--hash=sha256:52aa6992700996af31f375de0c6bacd402b0097fe40b53c426b9f51a90ebabc7 \
|
||||
--hash=sha256:55ea99acb17b9325618de155a0cd6a2e8f5d10be008113e1d433bbb58db543b2 \
|
||||
--hash=sha256:56bc200a365efb37383b7852e4cc5898d3b2da5987289b543956cf8cad71018a \
|
||||
--hash=sha256:588461c2e8384d309bd63e5826019b6977bc66d629b99ac8737bb795d7b2cb5a \
|
||||
--hash=sha256:58ca3755ee7ff7f59b57789ec9833c9de9ea275405cdd240eda1f193112e398a \
|
||||
--hash=sha256:58f361dcbab699cf8f42db3f47c8e7fd1036f138c23a5d08de9fde5f425a730c \
|
||||
--hash=sha256:598a11a2c7ebaa5334bf698bf29568c9c390abac6a154d8170fedecd1cea38c5 \
|
||||
--hash=sha256:59f63901b0031c3136cf64704dcb21de0bbae62ce2c9529bc39d27665463de37 \
|
||||
--hash=sha256:5cde776b7cc66e4f6c99612cea4aa7269aa65863f7a15841b2c264f103822f4e \
|
||||
--hash=sha256:5e2b6b57e9733d39f0c9fd3185efa6b8e29652c4cd8fe94180272cf6ed9a78c4 \
|
||||
--hash=sha256:5fb29fb8cd1a46c27a1bf9613ad5ec2599310d46b4025d9556404a6b6a292800 \
|
||||
--hash=sha256:6045373d5a89a5ec71afde535db987ca28e76dfa276c2d4c818265b375d4b055 \
|
||||
--hash=sha256:619799369eeef6366ed3e8755a5670f4f2f0fb6b30a0fd7264dc0fdc2357058e \
|
||||
--hash=sha256:62588a277bfb59def052abd940703fa35107152bf479781a878617d60faf8fb5 \
|
||||
--hash=sha256:62603db9a7caa0802eaa28c1c46fecd7b3a263a774069c24c3c28c302448721c \
|
||||
--hash=sha256:65cd72beeeca9d3aaea1201e5923859f308f952f9c71de93f06063c79f0f7a3b \
|
||||
--hash=sha256:68eb192d85ab8e5f6ec69c2bc6ac0179fbf04a5ac1569d12fbef74883fe102d0 \
|
||||
--hash=sha256:6bd128f206a7752ae1f2ab6c61bf8a24ba28913a10df8b14c2637b973ff97a80 \
|
||||
--hash=sha256:6be488a102b8cf28d0391d8c4ba7748938ae28b78ad901f8585520fca33ead1a \
|
||||
--hash=sha256:7218e8f32b0956cfcd048fd42d9d5779809745ca1d86113ca56f66e7ae1549c4 \
|
||||
--hash=sha256:7441d755b7ab94f8d4eb3e43ec05482d760842fd263d003a99102d742cd835e2 \
|
||||
--hash=sha256:749e97e1b32313717a565abbe321bc2190bc8b35f1a67e4cdbc7c56c8d8ffe58 \
|
||||
--hash=sha256:75a3ceed0724d625d64b86ca20aba182e4df462e04c2414fc941c0f523f06aac \
|
||||
--hash=sha256:780fbe7cab297b81dad9fb8dc5eb003c0468ffb0d9e5f65068c53a34661a96bc \
|
||||
--hash=sha256:78456a747de8dc58360ffa581f30a002baf5aa28cb262536545e91f113ed7639 \
|
||||
--hash=sha256:7967d08cf06dee78443b874f98c98036f624f3a4e73e11f9f64f5be4d25393cf \
|
||||
--hash=sha256:7a881931aa470808df94a8c380eed2bbbc76cd9dc622310f99665658c821eb6d \
|
||||
--hash=sha256:7dcd882da75ef9adf94903b1e3b9419e8aa8fb4c7396822b834b9ef7fb96954f \
|
||||
--hash=sha256:7e841fb9010836c992c9f12fcbd43a831de93a5f726fc1ccd8ca1d0268c5014c \
|
||||
--hash=sha256:7fdde2c9fd9e3eca40631e024664cf2584272cc8f96308cbe5fdfc930f51d8bc \
|
||||
--hash=sha256:8024d00c3faf3fc0c16e07a69f4405e8eac7cc0ab15f65fe6cf43827c4cf72b4 \
|
||||
--hash=sha256:80d02b6f04e92601a081dd97b23d3128033098bff5d35d392ddcc0476ea11253 \
|
||||
--hash=sha256:838dcc90063569a0448120554591a1d6c4a4ffe11babf048908793154ab86ade \
|
||||
--hash=sha256:849df64e889b2e17230d58410a03dba311a65b163508fd33679b2b737d4b7858 \
|
||||
--hash=sha256:87475fabc8d9996fd9c27debb395e642e8c838d78a00b6e932227a0e06b81e26 \
|
||||
--hash=sha256:87e50a3e7cb90af586b6c5faf23e302a970415ac73bd7bd90a515a04b427ef96 \
|
||||
--hash=sha256:89b53f3cda69831909888e0494f4fa0bcd3537e3e138dabeb620bd6ad946bae8 \
|
||||
--hash=sha256:8a893cc101149f80a653f82062ebc95b34525a2614382e1da5458fe7c6997249 \
|
||||
--hash=sha256:8b2bfab86aa71ae13aa41a6a26aab338e0db2b8bc75434b05aea89e011ff35a4 \
|
||||
--hash=sha256:8d86d6fc60743dc916eb79e2eb1ec4818e21e427731543af40a3021851174a13 \
|
||||
--hash=sha256:915563965d418f986e7e145accc592eae9e1a1be3566ff98a05d7a9ec42a76e1 \
|
||||
--hash=sha256:92888bb3187c5ba50500b00b3b310c9f2c651709d28036077680cb5255450a03 \
|
||||
--hash=sha256:93223adc95033dd47133a46ccfc316a0139176fd79085762e27202ec56018f03 \
|
||||
--hash=sha256:9373ad13ef0d2c0fb761e04e55bfdee5a08b52cef2c882c8fbe9935b1517152e \
|
||||
--hash=sha256:9409a8bf35cf78353942504b24a57de3d75b708997a1e4bd8db71ac8633ce364 \
|
||||
--hash=sha256:9b7f416ff0978e2f2249330527f0ad6fa02f4932e6199692d3b52da2048c19e4 \
|
||||
--hash=sha256:9bde855991b7e362c146535e3136a50bfaffc0487d38b33ca7e5edefc6e23849 \
|
||||
--hash=sha256:9cae88599c7219005d879f98e5ed53341e9a122af585e1091200358a3003d2a0 \
|
||||
--hash=sha256:9cf9b1a857e25c4baceeb3624e92a56df3668f398c4acba74e174d81fb4d1d3a \
|
||||
--hash=sha256:9f56f72050826f63dcee7a7f55b0a77168cb3bfc553fd405e7f8f9ece75a4036 \
|
||||
--hash=sha256:a090bb2c68df85450502e3e20d665e3a5af9c65a84d6508ed477badd49166fd3 \
|
||||
--hash=sha256:a192e2c40070d92c3ccf777e3a5c4ff515573cd2bb7ed0c537fdadbbec5bbf21 \
|
||||
--hash=sha256:a19a731138fc27d5682277d3b9df22855cea1239bce7fcec5f78f42ef2d1f3c3 \
|
||||
--hash=sha256:a66c3bc5ab1f0ff2164fc9965ddd611ff0802173f4b9d24554c563f6ab7e1d6e \
|
||||
--hash=sha256:a815775b6c38d4e0ff7bcffbeba67feded90202bb6a226b8dd35f1c855217413 \
|
||||
--hash=sha256:a89012d6d5476ee112d20d998570ed58df2260a852afb1758809cd6900411d21 \
|
||||
--hash=sha256:ae4f5fea5b8b8ccff88238cc8569303e5ee95efae67fa62922a311397a71f346 \
|
||||
--hash=sha256:b6856554c4f44d79fc2307d5768854310a8f0096e501c75637542c82292b0429 \
|
||||
--hash=sha256:b6b751274acb69d77b3323d6b7dbaa3c7fdfc1eb829b7eb61d262f32e1af9685 \
|
||||
--hash=sha256:b736353c0a625bbd5fcec108576e2385db3496f4f771f785ff32e108d3c3bc45 \
|
||||
--hash=sha256:b7fd005a73d9e657273b7a10dc71a9e03c8fb9ee6999798d6918ce095b81ac7f \
|
||||
--hash=sha256:b91363207bd9dc966a691e959bb47f64b30f7ac4b072be9968b366982f7db77c \
|
||||
--hash=sha256:ba0b1d2620edf869789c3879223f52bf2afc5d31b3cb47cc57b3a12c05e2aa9d \
|
||||
--hash=sha256:bbbfc8e28816f19d7c0f1816664980c0a9875d01b27cdf8eedddb639d9e108ad \
|
||||
--hash=sha256:bd16aabe4a02a297c23417aa17ac6299dbd8c49f673bcd645b4929b11f5a4400 \
|
||||
--hash=sha256:c0afc6800ba57ccc350374c5bd6150419915d95ce93cdbab2d783d75eaf30ecb \
|
||||
--hash=sha256:c6708715abcf3c73b99508253e961a9967f02fe536532834149574eda6de0d1c \
|
||||
--hash=sha256:c7c9ab723cde841fefb34efbad91e87f00a674b1fe1cd0784fde742bf2c154dc \
|
||||
--hash=sha256:c8f3d67aeaf55f017982b73683f0e7342ba2f6635a78f69ce89ebb26aa411e5c \
|
||||
--hash=sha256:c9790464842f85f437dbbb54417eda1e0e6bfc52dd8d22d6fd1c994b73b2dc74 \
|
||||
--hash=sha256:ca403d7e4798f525fdfc78e258820419cbbd0f0ecbab9de7840e3c017cf6b8cf \
|
||||
--hash=sha256:d008d90a7f2471519aef0c90dfbe73b3e6e4d5e66ac48e19154c17e89e98b604 \
|
||||
--hash=sha256:d19fbd981a488e22cd04883659ca6b08f50b5974f9fd7c95655ef6a043e5893f \
|
||||
--hash=sha256:d1befeed746d247c81127bb14de9dc3d30edb6e5976d34f83f86ed262b1d9105 \
|
||||
--hash=sha256:d2374b62878abb00cd8309b32af6c0b715cd02dec0ca74ef12e5069bdc64144a \
|
||||
--hash=sha256:d376bbd28b3a8999db1a103b3b388aee6f1ddeb3e51bc2172993efdcd86e064d \
|
||||
--hash=sha256:d4a7319f304a774bed22115bc891618e45f85065ab44ea6acd07d274e750519a \
|
||||
--hash=sha256:d6734d2ef8a50fbf8445c139477da401f50d62a0606bf00e20ec6d87773fefb1 \
|
||||
--hash=sha256:d760fe2a4d7c3b226cb9026d6a842868d52a7901bd98420e1baf14e80da85cf5 \
|
||||
--hash=sha256:d913de495d90407cd859d263bee2e5d1a4ed3eb6573c04e70d9ec619a7cbed7f \
|
||||
--hash=sha256:db19d07e2e0129e974a0e65d0064fc222a446cd5122c2fd4184d2af9fc734a9e \
|
||||
--hash=sha256:dca9ab98072a5a54ebacebdc45f53e645336b320c667410b061be1ca588ae709 \
|
||||
--hash=sha256:ddc7dacc8ece3a182e7f15cb862d1fd616b46d076cb1ae9dd232b2c38b655874 \
|
||||
--hash=sha256:ddf19c062bea7a0cc80f519243d2c01dd091be0cf952a0750d4ad576709559f5 \
|
||||
--hash=sha256:def79fa35ef0cef8d2accec024f4fdc7ead3012ff02f5215c783f39f03ef8cfc \
|
||||
--hash=sha256:df29a0a7107f7011e77f4eebdddec4c7331e24d787a0b21a46d63bdf7445da95 \
|
||||
--hash=sha256:e09a3942ecbdee5cce73ea9d42da82b81b72ac1bf031ce069b93b5adf4eac8cd \
|
||||
--hash=sha256:e242bb1c5e76e97dfa9e7f209a71e93a01d7f19ffdd5cfbb2e2d55b4f08f8ab0 \
|
||||
--hash=sha256:e243bd13217235fc7290c621941c3f5cc8b66e4872495be821d7436ba2fb838d \
|
||||
--hash=sha256:e2af3aad578aa6bd1384bcf4750fc285e5a9de53f40b7d41e5a0bf748edeb2b3 \
|
||||
--hash=sha256:e4e81e09c1578b8df602e3db08b0b3ea0a6947ad612f52bf8dc5ea8d47691f0c \
|
||||
--hash=sha256:e54da4baf05720032d527874d40b65fa4d7e5c6c6a43d0c3adbeffcaf275a2b3 \
|
||||
--hash=sha256:e80e6c2f55656b4824d72065abb4ddd6a525c74bd78a0aab5d9fc2cf4fb5af50 \
|
||||
--hash=sha256:ed2a239c0ea213acc1908150a3037257083c7c083128f1a4cec2ec4b97dca491 \
|
||||
--hash=sha256:ed905975ab14056a2e5eb1c376cb2e1ebc5396baf84163939c518556fccde9f5 \
|
||||
--hash=sha256:ee21e28f0430bd6dc9086c6e525d5e818a44a5ad19720c8a0ef766792f3eb5e5 \
|
||||
--hash=sha256:ee43c17b173d46a3212baa6ead3ae258eeabdae48c263a01ccf0218c366dd655 \
|
||||
--hash=sha256:ef4fcbf3327382cd4c9f540babd61248208af7b93eec4de397b4d5f58a09e288 \
|
||||
--hash=sha256:eff0ac9dbe711a4aee69bf04a83896aa9b85f19641264053a9f6d48573abb7dd \
|
||||
--hash=sha256:f0aa869112ef88429ae17820d99c3dd9504c9e9c671d3c246f3d7442cb051084 \
|
||||
--hash=sha256:f3c96f633825733f735c5a9cf21d21a257d8e1edf0b1cee0a064b9c424ca0f7d \
|
||||
--hash=sha256:f5833ad231be5eb6553de524a70f48d71b2c8563101750531e0b80184e175cd4 \
|
||||
--hash=sha256:f5ec61164adcec446f8969a3358ec3f9b26bbda3b9213e5586d219afa8df2915 \
|
||||
--hash=sha256:f7d486c83842422badd511868fd8a9a20e9407ace71564b6af47ce7e60a336c1 \
|
||||
--hash=sha256:fb9e68df06293761f9fe66ade60a9bc6d0f5e42b8acf2939a9158af86ab0e5bd \
|
||||
--hash=sha256:fc14a032f813bf5fe624d991960ea83e9715adc27e4c1830a2361eb1d02ac341 \
|
||||
--hash=sha256:fcff63213e8e6e47770541a4607175404f47cbb3ebea7b6058cc82d524a0e424 \
|
||||
--hash=sha256:fd1fbe0f116b6e55da77aca2c6ddcddcfac2186cbf78bdebf40fc156efca389d \
|
||||
--hash=sha256:fe9753dfee015c570d73df76f899f18444d41388bffcde097deba51c4fadbb9f
|
||||
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 \
|
||||
@@ -686,9 +686,9 @@ docutils==0.23 \
|
||||
# antsibull-changelog
|
||||
# antsibull-docutils
|
||||
# rstcheck-core
|
||||
filelock==4.2.10 \
|
||||
--hash=sha256:9479aaeb4db20b5a53e3da28493edd24720b66b8a0b84030aa56ccdf243d6857 \
|
||||
--hash=sha256:fcc3c0cb8bfe7f4b3bb0e231c04b15dbad068cb3c2515f343d8fde4dce93bd5d
|
||||
filelock==4.3.0 \
|
||||
--hash=sha256:143407310acf479e82d88068e3b9a6486f45fb410c0ed8729fe7359eaabeb6f1 \
|
||||
--hash=sha256:f933f39f7e01249a4a49b9abab30edc6d4b874624c3de5dd0b0d137aa8adb979
|
||||
# via
|
||||
# ansible-lint
|
||||
# apm-cli
|
||||
@@ -1344,34 +1344,59 @@ mypy-extensions==1.2.0 \
|
||||
--hash=sha256:993e7a20aa5671eb41a7132cf555af30062da99729601601b9a8382b11cae768 \
|
||||
--hash=sha256:c6e275a07f1c2fc096b62940452d0eaa3f3af7de45d704787866240a7c6d5a51
|
||||
# via black
|
||||
nh3==0.3.7 \
|
||||
--hash=sha256:157ec1eb7a62f3d9a7badb8d82d89aa810e3e24e097eedfa481a25d0c8a99877 \
|
||||
--hash=sha256:15f5fbf090f5c88d61c820e1fc1fceecb6520cca9fe85649c06b57ef9dc9ff62 \
|
||||
--hash=sha256:18f4278ecd157d43cb35acd5aae9f35cfa79f546b4922bd86536adc0f6312102 \
|
||||
--hash=sha256:19f288c938ec6eef1f5d2c6cab47838e71fef8097e1c1233802be5a6230ba086 \
|
||||
--hash=sha256:4968fe8d2db97c6f047659bf46a449fd8ec377f44ebf3e0a1b96c0d3a333ae32 \
|
||||
--hash=sha256:5ffdfcb9a686ffb12765376bcfb6b5b55728516d3c0ee317d29982381ded3df8 \
|
||||
--hash=sha256:614dac4a4c36ad084e78447d16fe898dedd762e354a7ab9cda2984e82f67883d \
|
||||
--hash=sha256:618e3059caf41ccdf5dcccb3fa9df4cf6e4efe23d1382a8bbfca272a8a4f8bfc \
|
||||
--hash=sha256:6698a822132beedab80f131c08d8d0ac5a178ddeb488d02ca4b67716ecfac7af \
|
||||
--hash=sha256:6c3aa50eb26e9228238271db9f983cbc3b006dfbfeca2d4dc34c33ddc6ac5ea5 \
|
||||
--hash=sha256:6e4280115d44c3b278eef712a86748c1a723105cd79feec46952383117ab4e59 \
|
||||
--hash=sha256:70f5ac8626e899a4bab0ef74ca2f5bd602f49c7b739e6e5026b4afc6d63dac42 \
|
||||
--hash=sha256:71860d01c16f4d8c72e334e0674beb2b0899dbd0bf760de18932ef4390303848 \
|
||||
--hash=sha256:808def0c8c07843e6e50dc84f532457bfa2cfd17417b219a5d9e7c773709331a \
|
||||
--hash=sha256:874b7d67a067bd29a59223f6270fc30da4edd8e6d87fd219fc93bcbaa662c946 \
|
||||
--hash=sha256:91a4dab4e94d9fc54b9f67b1adfb23e81fab7ab43f33c3b8c97be9aa38f789ba \
|
||||
--hash=sha256:94fd6e59553fbb9ffd8ba71bbd5a54e3126ba01799a097ae30d5341d750bc6ac \
|
||||
--hash=sha256:9b7279d43323a25225df23576af6594a16693f61431170848b8b2ac21ad4f174 \
|
||||
--hash=sha256:bc42bb1193c1e28a1e74c2cabaca178e118a7103e8832699fef8a2b3e2496493 \
|
||||
--hash=sha256:be53a4825585f701955cb9baf49f478f56eb81e20294329fe4bc689dd5dd81fa \
|
||||
--hash=sha256:d56e76bd3cadb09b6b0cef364850811663734b348a25f5f587a2819c495367bd \
|
||||
--hash=sha256:de2b2aab32ea303405debefdcfc58043d3e635fa3f67b9eb140d2b0e0c0d2563 \
|
||||
--hash=sha256:e8fd1ab205258b29254f72db377d99e2c96aa7653ef3b015ccab0420b094b506 \
|
||||
--hash=sha256:eae64328e46a25785535afcb6885b6f182ecaf5ee8c88f8c075422db8aacc65b \
|
||||
--hash=sha256:f04b7d333b27f13ca439da3cf1c75c2fba34f104969f6ce4ac8e7079699c2f4a \
|
||||
--hash=sha256:f266d3f1b3647449923a8e406524632220dd5d8b647078dfe45b885d33d10479 \
|
||||
--hash=sha256:fd4a70efb45d5372174f718878eb7a35c12677626a63b2f103b23b833457dcac
|
||||
nh3==0.3.8 \
|
||||
--hash=sha256:088eddcb226811214be26cd8077e8aaee6b93561db9eb2c39dc1af29e9b9c4f6 \
|
||||
--hash=sha256:0d81c2e4b207f59704d4711b0941fb5bef8aa7e03503ea836c7f643495463198 \
|
||||
--hash=sha256:0f8dec05fb354ecb4c1bbc61076ebd01a61ff62d6c5a7f27a320d4165c64a73e \
|
||||
--hash=sha256:1af0170f80c57295cdee2b50a0c72eaee86fe0068e9d29957d124eddc231e1ad \
|
||||
--hash=sha256:1df82e4e8d7bf3eb49f74e22cfec1ed0d915aa430ba2e28fb1458ac9c35b1bfa \
|
||||
--hash=sha256:1e04c04f7b5eecd8d25ef95ae34503e449211a086ca99dd709f34a46a47d65e5 \
|
||||
--hash=sha256:24b39c4c0a5d0e880d43cc622472c95db6da1d65355efd043ed3ef7abdd74d66 \
|
||||
--hash=sha256:2a7678eec59a0a24ed2d5a9e11042cf078ae64aff6d8be8edc7aaa51f54f6a34 \
|
||||
--hash=sha256:33e8464e383e4ae995aed3efbfbe901b995ac5639056b79b2273a787ba5f0367 \
|
||||
--hash=sha256:39a84587d2aacd294b8f3c1d6da805e2e60f66c8035f9239be123cb1264b0a78 \
|
||||
--hash=sha256:3b0527be4e7e16e0ac9d9b022ee7fb8eb617c275db4f7f446ea1233bc0159625 \
|
||||
--hash=sha256:3b7f2915b46d7b6c8f1cf583f461b3a4d0ab727b23693eda54b3d1c8a968598e \
|
||||
--hash=sha256:3ce8966c7eb0d5e4a7e94de1d005c2298f0f26920c818d5912f4f57be0200861 \
|
||||
--hash=sha256:3e97326a8c7b537b5583aad483f249d7c8d0398fbf7b61a995fc508ffdc0d2ee \
|
||||
--hash=sha256:4ad0d8889ba9ba4daa0b535f79a2cc518de760e5f76243acb62e9903a13e9894 \
|
||||
--hash=sha256:4b989ad2c62b853af163db763a8ac0b1d3dad9caf316daef953092d21a7d1721 \
|
||||
--hash=sha256:4d7154968dcb4dcd204752e21995942292e0b5311b843015f6c048a81c3e547c \
|
||||
--hash=sha256:4efb355d6f2b2d3f8b87a1b41c1a018c4ab2b955b5cb313ae7bfce183481eaa2 \
|
||||
--hash=sha256:4fb7fb01e726a39addbafa3dd9e008ac905a1219b0a82f6f0ad5bb410fdfe283 \
|
||||
--hash=sha256:5106e053d20e586079e6608e242a82bf4acec1b64b6b367455fbb9974de2d800 \
|
||||
--hash=sha256:5322483f474f0466145372ce1253e72f9c423e8bd3f4cfae113b4a2be544d266 \
|
||||
--hash=sha256:59ca60a575abadeb6ee23e85dec47e52e069d24ed1caa5ee0602108dca49def5 \
|
||||
--hash=sha256:5c5a315abc2e9d5d78ce1ba6b592a1ef8cbc7e535dfb1e641966768e87870fe3 \
|
||||
--hash=sha256:5efdbe0aa48f38b92c45ce5f1d228191b7e6446f51d014c2cf08c433ee9d289e \
|
||||
--hash=sha256:6906e95986b8968db3dde8d96331d21643b4c84fe028476ae3d8d5f9817beb01 \
|
||||
--hash=sha256:717965df47ab5d2c5191419b26deb0c9552d769e4451b09a7b41ecac2a69877f \
|
||||
--hash=sha256:78638192f24837aad8d55a0728aad6d24aa9ad1363fb2f2586ac2d92b56ab1ad \
|
||||
--hash=sha256:83219d0778e2e574c82253da1ecb765b021d8f1f6d098f7e1142d7342746d66d \
|
||||
--hash=sha256:835514cc418afe7815af9855b7461bd050a0eaa5a40487fc369b69d63b60dbff \
|
||||
--hash=sha256:90517a6ff4140bfb0ec1b5458e4d2abf0623ac9bc458427941bfa9e93f41c64b \
|
||||
--hash=sha256:92455caf010434168c26d5b2fd523bd588fce796b1a8067fef0a51f9e88f5cf7 \
|
||||
--hash=sha256:935c861acd0cb1a7188f574973b08730f63e4a853072858f388d2f19e044d509 \
|
||||
--hash=sha256:9634748f7b7377044a8649f07bba1fbc386faa2cfde9fbde1f32fff47710d574 \
|
||||
--hash=sha256:9969ac0f9a68f2949a92597cea021a8099cc0e7e10d21a1b2590b36240ea4ff1 \
|
||||
--hash=sha256:9ef0673494134c3398453c9e7f803886fdbf67d5c7b6c2e445c69cce042d2a69 \
|
||||
--hash=sha256:a73b3b888b27be87fc7269a009ad3d7687e049717155386ae13ef271e838ef85 \
|
||||
--hash=sha256:ae0836106ccbad5a89736180cef6114d7e568fe0f572e4daeca0d5238393b25b \
|
||||
--hash=sha256:bd7e1a17d613d3e183df12e9db19b85fa83945746b726431c10de0991f39346a \
|
||||
--hash=sha256:c4fe52dcdd8ca966c8a3e5f5bb9c5922de270b8ce8e1f840785e1aea8dde7fa1 \
|
||||
--hash=sha256:cd6f205ecba5fe5d5540c31c1effd73c133ab1c34dea2ddcd0effd2ae4febede \
|
||||
--hash=sha256:cea4ab307e99b36d9060a3d221638cb9af253008e42e6126f2badb0192852769 \
|
||||
--hash=sha256:cf1ad568d9b5c89e370ba857650539f634ca6d90206ec0f4ba2ca5155da3a281 \
|
||||
--hash=sha256:d016457e937ffdb7e66833e1a82bf89925acf463c45ece36b1a1dfa4e5ea187f \
|
||||
--hash=sha256:d1af0f06c8c196cc6525a2a9d55e45c35989e789144e62d1f1c33dceeb91b41b \
|
||||
--hash=sha256:ddb6b757b249f46a91e642124f67951d049006c9a4e9d9a532b9c6e0cc852f1d \
|
||||
--hash=sha256:e0877de704cc4a4f26818b1bc6414a2b03cacf3f502b53d3a340bfcff78c703b \
|
||||
--hash=sha256:e11f51c8d6174d069844d3dfd3fd6df26081f9b4eb602588d63c465331867a4d \
|
||||
--hash=sha256:e2c05dff8a30a07b4b28752ce716f3a0f97a8ab983a4a90d72e9e520352c9dc5 \
|
||||
--hash=sha256:e52a49e257654cbde5aa26c3a4a601c5d863f0d452fa4c338771b067f6e5e1aa \
|
||||
--hash=sha256:e5e63c71c0c6822b530b7444e004cb29a49b3e2dd3c58105f58b5b7eb804f6fe \
|
||||
--hash=sha256:f1dc18a6ee2d613ee445251102ec7f13fe16d234b8c7ea88357aa24d4e3f8d9d \
|
||||
--hash=sha256:f5ea9b719643f89c47158d4efb8eb7151f5937dd726a4908547d413d4a1eb8cd
|
||||
# via galaxy-importer
|
||||
nodeenv==1.12.0 \
|
||||
--hash=sha256:4ea7f88339310afebc3253f2c7a91b94bacf97d73a36a5c108962abdfaca501e \
|
||||
@@ -1409,9 +1434,9 @@ pbr==7.1.3 \
|
||||
--hash=sha256:6583e878a1d97cb135fdc509811f31b9235905cde8d4dacd3dbadf9efc45d745 \
|
||||
--hash=sha256:9a4a85b84e906337708009af0b5f5cdabeeb72d4dc213c9e97974da54fd9acc5
|
||||
# via bindep
|
||||
platformdirs==4.14.5 \
|
||||
--hash=sha256:32e9921db7385aa8169bee4fe9501923e5715ba9fb7ea3b9c69b0d8e0639f7a1 \
|
||||
--hash=sha256:8e778c6fa421516f4d3369449f8df3b0e1b72c0e0005fe88e3ec772d0a14e750
|
||||
platformdirs==4.14.8 \
|
||||
--hash=sha256:1e34af590de4d978631b751eb2202f2fee4497537a17c1720b12fcf57b331392 \
|
||||
--hash=sha256:96893d686e84e9e6f358a9ea41a8de544df66dbf2ba6cda250e7dc73acf85b9b
|
||||
# via
|
||||
# black
|
||||
# virtualenv
|
||||
@@ -1579,156 +1604,156 @@ pycparser==3.12 \
|
||||
--hash=sha256:a076f3f489b39b43ed13563a1dafe42447445bec2e294154ec5c57fcdda4c85e \
|
||||
--hash=sha256:f03387877eab82ce01bbdfd0ba7252ee55a90b1c708d5129e2ce915475cf1db6
|
||||
# via cffi
|
||||
pydantic==2.14.3 \
|
||||
--hash=sha256:1054f237f4d4733e5a30e1e2333bd33a2004ab9ab1510bd053a9a31bb48e232d \
|
||||
--hash=sha256:3f7b347782ab7e4cf4c798496ae3a82787d9f21ec12676a9c564355eeef8daa8
|
||||
pydantic==2.14.4 \
|
||||
--hash=sha256:653a2ad9f6d8858529c77c72717d0ea991d6c6837fe683246b2f4b2bbfc3fadc \
|
||||
--hash=sha256:7c19f1d46f8accf55a4617a6116e1ade64840870f397b846a2c53fb9019414ba
|
||||
# via
|
||||
# antsibull-changelog
|
||||
# llm
|
||||
# openai
|
||||
# rstcheck-core
|
||||
# typer
|
||||
pydantic-core==2.50.4 \
|
||||
--hash=sha256:0001d6920e3a5d92758cda460d6dc9f918a78ad6d5d092f1c8b5395e6b775356 \
|
||||
--hash=sha256:0574866e05f6adeecc520d87e87dd06210c0a51706341f6ef8421572f5a64444 \
|
||||
--hash=sha256:09450778e3ab58d3f565899fcfbf6c82926e31af29e28e799d1d50941316e0cb \
|
||||
--hash=sha256:0af56dbf8822ba9f4efcbbfdc15478f8b6fb08f1609860cb50aa2cc8476b3c34 \
|
||||
--hash=sha256:0b059a7968b1911be5a2d9a8234827ab0bef9d1e465d4b42da525894143550e8 \
|
||||
--hash=sha256:0ec20aca2b067369913716847f7dfe5f4dddf16a46965b7a70bbad5defaaba86 \
|
||||
--hash=sha256:0f87ae9db5ba8d8de40dcb93982cf8dd544e6552a80d3345af51941cc2146b80 \
|
||||
--hash=sha256:1239daaf063e62213ca1f34d96663900bd7510c42a786e843fd328af70e46445 \
|
||||
--hash=sha256:13b6dd62b5279f5b9d72f3bf918a35443ee8bd549241d9dc52d79a2c3b6d7016 \
|
||||
--hash=sha256:15bece43a02ad543c621c8305e67dedb5f27d378c5ba741e5a2c36523f8ef37f \
|
||||
--hash=sha256:16902a147b3da4840612164a5e67947104d63e978f7a57c395877a5e26690b9c \
|
||||
--hash=sha256:1afefe44ec042fbabfb4483ea258c04cf75ff4ff328d754f09b321fdaa232aca \
|
||||
--hash=sha256:1de7be9a66fc8536770481ab64a05aae5067c725f2b29a09543af00e6a417b97 \
|
||||
--hash=sha256:1e20cbde2b6deb33a51d08cd168454dd9044ec7d4474056f4d98d63f51578783 \
|
||||
--hash=sha256:2039e323acee9abfec1fb5f661776e8965fe5928f3b7f8431900a774cba5c317 \
|
||||
--hash=sha256:219114f8dcdcbe4720d82ef016b1287ce5a0a67d7c69ca61524eb72e82aac344 \
|
||||
--hash=sha256:22e874666bdbd96d6bf629d32cd8ab376fedf1fd62585b52a42b9fa9fa6c20b6 \
|
||||
--hash=sha256:23a9ba564b2db709ff16eca990992ba95a19069972b34bff87c81d4b473cd755 \
|
||||
--hash=sha256:25e7e1080f9f7ce7cd9d114b31470ce912771bd02f38c824721d3c35d312abff \
|
||||
--hash=sha256:26cb012c4b8ca9f847bd0ac15978bd3d0f55b050bfbe6c47355edfc7e945029b \
|
||||
--hash=sha256:29358a8ca74e7d81158d14e2b10c904bd18773293ae3788716c0626fe0342347 \
|
||||
--hash=sha256:2980a701be88f9128a7470189fa3bcda5387f76c298a6f8e000fc29eb2a6f4e7 \
|
||||
--hash=sha256:2a60ec2a57ac3ef3767e526e9bf706ec75aa3d79c4ea134d9d4fcf7c62a297a7 \
|
||||
--hash=sha256:2f42584e5785385f681163a42506cab0d51295e17599a648396c52a7046c1372 \
|
||||
--hash=sha256:2f5cc5bcb94063fbbdfd285a2b302da34af07491337c10bb35de1d5220fa1583 \
|
||||
--hash=sha256:2f6767122b37c780bb756a720a4eef2bc6a050a0a1143428834b3cbc89448bd2 \
|
||||
--hash=sha256:300753f71c73302e218124baf995f00058e085cd01869bd9610bcbd0bd4500c1 \
|
||||
--hash=sha256:30d4dc35bc0eea52202a90b3820445ee0072c820241bfa710a623a078c9b267b \
|
||||
--hash=sha256:32a991aebd165f227b7c7c60bb9d66c2c7de9c24308552da264c9938fde0f8d6 \
|
||||
--hash=sha256:32d6dda86383645ec428ea64dfc277036f5cbc60a72238eab28b91a3fdb9a113 \
|
||||
--hash=sha256:33b21f69540a12c2053cd1d95766d8bd9667a3897f7c712a642de8aa37eb0865 \
|
||||
--hash=sha256:39f489ce31272073e6e146f6781690f9c1ee8c126836e6403361ef91154d89fe \
|
||||
--hash=sha256:3a48a5254d15a0ad050318bfc7a9566d4ec740118187e8f303e47a6840287eb7 \
|
||||
--hash=sha256:3b8ee2589a082739c522c1fe4be227412fcf108b903abb6672ae2f5570558882 \
|
||||
--hash=sha256:3de6c2a4df2af0ac9ab4dc1488746fe8b1a90e27955d870d9edda3187d20092b \
|
||||
--hash=sha256:3e0b395648c6cb871bceb2906907f255dc876ec425f2d5b024e129985cea8519 \
|
||||
--hash=sha256:3e547ceec1da7382f01f9e13963023e53367a71802c88778b21b9645a077cbdf \
|
||||
--hash=sha256:41b2cd8b29dbb5a4c9828a70f50d1abfc92011115c813213d3a91205c6f731b3 \
|
||||
--hash=sha256:41f4f8ae714e4fea1d635880f8a1af715ecf080eed4d13c5b04a0f3210f9c61a \
|
||||
--hash=sha256:474f7e598c7902165662a5d5160d3fce31037890a2975a9871ebf7c05862300b \
|
||||
--hash=sha256:477af785d1846e4e96bf56983b92ea7553aaeccdeb8acdaa55c7cee9eda0ae32 \
|
||||
--hash=sha256:49eb1241a969a5994db6880c18c012b6cbe2340343d8f529721571806583e500 \
|
||||
--hash=sha256:4c29b8f2d6417069bb1f257e6b9113f5d64dc2f554cc200ea90b4fe2c5cdb733 \
|
||||
--hash=sha256:4eb15be588407148ef5937dc8d9256a71f6b115e6cddadb7aa20b6ee384680dc \
|
||||
--hash=sha256:4eda7e3fdef382b7d4492745988a5baaf6953923a337f8b9dde5f76fa8afde20 \
|
||||
--hash=sha256:523466eba8ee10f7480f3c2057563145978011c583130d2cc01fb1e7af808e25 \
|
||||
--hash=sha256:57fa0a9490785139f1a4e4f43891830d55dfe4408845c0c9cb5eff4aeaf75f69 \
|
||||
--hash=sha256:5b26e5f1793b96cdc60242bf38da86ff24a27a708aa396214cac9b534bf571c7 \
|
||||
--hash=sha256:5bc1811ef2b4d4ba63e8e452f6e332b6374bd1d2cbbfdf66826c8cb1f71dd10d \
|
||||
--hash=sha256:5c074454dc6d4f6f4ba6561a56bf33a14db7651d882a5a5321ba3ae8868e082d \
|
||||
--hash=sha256:5c1013647be741647895c102831dcf79c34209662dbb683df9efb864417ed7d5 \
|
||||
--hash=sha256:601fce6cea9ddeaa85329e12e7f351def38d233075f42a3012b9c48071b02941 \
|
||||
--hash=sha256:6118e5a5550e36582e19bac1a403711a748f9f18251b054c326d3db02aaa7a18 \
|
||||
--hash=sha256:629eae995185540406e3635df5d5cf1d44f19ea240840b835d3f44541ff694d8 \
|
||||
--hash=sha256:6348ad12fa741bcc9c2f173e99fbf27cbc038826d8c31a4a7d836eca27878ba2 \
|
||||
--hash=sha256:65376dbe1ab4dbc768ca2b72b7c13993562c035f5925fd3bc7ff9c8c585c515d \
|
||||
--hash=sha256:6619d49a89a15cd04334f76fec530c155923bfc60da74ff5d815a52629e1aa6c \
|
||||
--hash=sha256:664e74848c2f5fc27db8505fe24e1ecd3ac669412913bf73d176916f86cc08e2 \
|
||||
--hash=sha256:67f7cc397e1d5556a801d1cba74de0d27d827eb242e6c036c0ca273c745414f1 \
|
||||
--hash=sha256:696613a0c0e7b2b35356e389ba4195ce20cfe7a2fc2e992c87d974d973eabec7 \
|
||||
--hash=sha256:6c5687b59b6ba0f663c4f2f15470f68507d6b45ccd3a19ee6d224f95cbee70d8 \
|
||||
--hash=sha256:6c7d7b0b596319e9ce79ef96ce57a14054a2eac629c0588a0539187a218be799 \
|
||||
--hash=sha256:70dbc9f83c41f37a4faa62dae5203853847223a891da446f48ef2efcfd5df806 \
|
||||
--hash=sha256:71395a43da5584bb70556f380387e15f845c0dcf76373c1afbfa0025737576ac \
|
||||
--hash=sha256:71ade6d2e445839350d589ff99bbddfde16f3f32db28da5c894a09f99c8b2a03 \
|
||||
--hash=sha256:71e03d2ea1a221d020cfc5b6cc8bbbedef23a06704c70fcf4d0afb42965b22d1 \
|
||||
--hash=sha256:7210398a1607ad607dc73196e575b3148b00a333cbb602ddbe1b60ba54554f43 \
|
||||
--hash=sha256:7472c39480ccc11dda69a196d1b7c7a6b48eb6594b77f05d945599d3e47f731c \
|
||||
--hash=sha256:7646353a5a7c553c04167aca628e2550b538f492765b03ccf34321a560acc43c \
|
||||
--hash=sha256:76e0065998159244ff4c097a6c05ff08019c6fbb6e597a85846e73044f0215b3 \
|
||||
--hash=sha256:789a6453e5ffd18a7ab6b8c3a0dd8403053829197ec258ecb90c604c21ffcc99 \
|
||||
--hash=sha256:789f88dea57841cdebef392b5d6e90444d767117e9ff2e0d9172df5c9de6690c \
|
||||
--hash=sha256:7ac2769a7ddd661e07e26c12220adc31b17014c48234b2a5a88993b8d4109e09 \
|
||||
--hash=sha256:817953730e4a73a09008b010c4a42396cefe799616a22df2ac21d3927b3080cf \
|
||||
--hash=sha256:83d2beac85b757bfc404c5c0612df51c4ef33bbb7be65cf4a96b4da7cbc4ff4f \
|
||||
--hash=sha256:86c7c4615634b5c57a79770f5b738354e45ae219a89949aeae84f19169a05283 \
|
||||
--hash=sha256:8923fcd49f875e8a0448d7223d1fdf1a9973ae2d1f20d4158753ceb8909facd2 \
|
||||
--hash=sha256:8cceae48ae7f94990c2f4e36291e9ec9868735e8b0f19e4489a17b0422338466 \
|
||||
--hash=sha256:92f8f63df729061bb14558ed740e7a222f6e2aa6c2e6a5bcfb4e706676562049 \
|
||||
--hash=sha256:930ad463d3fb7a340d323bcc496ec32dae469ec9974c29ff569f19806b6b03b4 \
|
||||
--hash=sha256:94733cb447c37b0ce6f71b39ca1288d5f966a084023a5617b4cc35a852586859 \
|
||||
--hash=sha256:9be1cfe715ecaa060ffd5d599ef410b94ef2697a0eed4cee562f788a2aa2175b \
|
||||
--hash=sha256:a0c5210d038418a115e7cf8706bfa611bd14add2f5787274dba45aadca3155e0 \
|
||||
--hash=sha256:a2f8716344bbbd10443391be0b1f2003b34949e3c4e6883005c2bc498ab6b64b \
|
||||
--hash=sha256:a4bb174bd65f795c39ad6642d9d5bdc43351b306b7d0a654ab0d0abb38be245f \
|
||||
--hash=sha256:a70d5effebd81ebd8e15a8aabdc7980832367b2b00c36543bac378977004cc80 \
|
||||
--hash=sha256:a9ee990bf2cfbd81574c5d4f9f6c9d480a14b5b43d2c4f2ca13f4c6f48089394 \
|
||||
--hash=sha256:ab2822bcdcefb54d1e8ca29f5e3ec3afe160fb794bb3a3a73b09d11ed2671104 \
|
||||
--hash=sha256:ad92d255a165cde5f9882ff69699eaf5495e0a1f32e97566bbbb80f11e46781f \
|
||||
--hash=sha256:aead3b74b68396bf0feab5d57e050b730ded7df55853c1e048a87e00aaf033c6 \
|
||||
--hash=sha256:aeb2e123cbf978a905e9f55155c1b8316fbbfa7cf64d04521fe174bab302d100 \
|
||||
--hash=sha256:aec3c2d741a8e3ee993de7f95f37afb51e31b169c95dbd29da4cf6688f340914 \
|
||||
--hash=sha256:b0cdb655fbd1562c2dfc9986f9103a106f7058cd0915afc6e656d4b1d73f3387 \
|
||||
--hash=sha256:b26f39a5be3cd91a2035818be3d0ffdf5282c3e1f5f53d3b80b7024021acee52 \
|
||||
--hash=sha256:b2f2d13239487cecaae98c9f4d5904ad0737643cdf8873c88ec6a78b12214f20 \
|
||||
--hash=sha256:b300a30304c4c6aeab03ed06809819d9eceacdd58441d3c7dffe41edfd006091 \
|
||||
--hash=sha256:b42f64825f5d750228f08318a9bf4d723b7ecb4c472aedcb3013c3ec2dc1f949 \
|
||||
--hash=sha256:b67d38e8bb0ade7e6e84575e4bb153fab35b122458077273aeb08fdf12be9d2c \
|
||||
--hash=sha256:b867f9fd183d76977f810c626d539265183c25b2284762893a31e8d6cacc81c0 \
|
||||
--hash=sha256:b99bed995ed7c41515c11fe2beb86f8a6cc298e5537cae2f736de2f982f74ef0 \
|
||||
--hash=sha256:bd46bcc28ed85d3cf71581b42d90b4ebd1f2062f81879519fed209f8a4d1cfc6 \
|
||||
--hash=sha256:bee28aab5a580eec673f7b68dfa8dece3dd37bd207ef8d22fafe23a8e9837296 \
|
||||
--hash=sha256:c04e9d920e2674f54651fd260a15c5d2843526c73d5242ee4311325ddc9573b3 \
|
||||
--hash=sha256:c4c5a1770ecfe8bdb6c6f09f8d81ea4de04f7efb012fac1efa4ad315dccc1fd1 \
|
||||
--hash=sha256:c733087ecf7dde06b1d071679bfd5f3ba03266ba77814c1c7253bc48c9adedd9 \
|
||||
--hash=sha256:c813ada7a651193acda85b6bc1cf12abd4b37cd25c7c6a75d7183512cc374969 \
|
||||
--hash=sha256:c81d98e27d9d9261909dcccab1ba5d6ea1c98b0bb9470e368604614fd1d36ddd \
|
||||
--hash=sha256:c81e35862aced259177a537ce1a6264c3a97bae1ced184ca9dc10ea754563688 \
|
||||
--hash=sha256:c856e439a9d54d514e81a7131229ba151cdf81df7c408e0f6c89340e5003dfe2 \
|
||||
--hash=sha256:c9e70012926e97069cdd09221861aff412aa94e4cac2e019055cdb79485b150c \
|
||||
--hash=sha256:ca83a32b2b41653d89f09a3d22b770bca96da72273bef8f7a68136bdd1e8b823 \
|
||||
--hash=sha256:cbf0777d54672990b10cb8ca9b0523499e182d7e2ea39f86b138519a902aa601 \
|
||||
--hash=sha256:d49127f137f871cde3c5650af33bbbdcee02679dae76e020902fa106f522b8ae \
|
||||
--hash=sha256:d690121e80ab16e623415351ab24713534d4e500b3cadff216409cb6826063d4 \
|
||||
--hash=sha256:d6a166978f22f10cb91413f70519861605219346decf65bc79008f9257c94afe \
|
||||
--hash=sha256:d6e3485a5e5c01fb5339c1ee3d4b9e21e2135a2a9d44caafb71acd994487ee7c \
|
||||
--hash=sha256:d7d406709ae924cf0b08b8282ca2f0e1c90526911d93bc040557cbc83b74c55f \
|
||||
--hash=sha256:d8201c9f9035520cdcc7dcad383b039ec8123969b87e01cf27c3dd883c02313b \
|
||||
--hash=sha256:da779ae50b46f3f7d1e1b5f362fdc0ad376a49fd55f6f3122dc2b6149936cdf7 \
|
||||
--hash=sha256:dcf2c7eaaa4cafe8e49b017e5bb49e76e084ab6f0cd712ee4019c812b5cf68b8 \
|
||||
--hash=sha256:dd8bed00731a21e3106e5dd6bbffb6c775a2c0bbc7c0c9face534d830057bdc9 \
|
||||
--hash=sha256:df1c174796cd63eb6b139f7daf783affe1f3ed659605850e843b24764c21bfc5 \
|
||||
--hash=sha256:dfcf6e51000b34f7026322cd9ea9bc340d745637e27e0bbc22f504b4f6b967ee \
|
||||
--hash=sha256:e498900bfbf7ddddd862f810440c09e9b81674739e8a11d619b40906dccd4a9a \
|
||||
--hash=sha256:e512c75ec5cf4475c1aa50ad975ecdf253f4963b06e152e1a11edd6de4010753 \
|
||||
--hash=sha256:e5bd109d095aaae989a0463d5ef0fcc43e9ddd5de125e656d3c119a79e466380 \
|
||||
--hash=sha256:e6b4b08d09054310a4dc389fa61ee22a7a5a292cb23ab8a985136ca8828bf924 \
|
||||
--hash=sha256:e6da138a1ecc1341c8b788a5ee822670b03788e1f5decf7af9d461de6e508b8e \
|
||||
--hash=sha256:ea2f61b0bc12f3592288503961b764579dea0658852d96a0b3d823614d808821 \
|
||||
--hash=sha256:ed9c0b6f236648dbf30d57e9f57e1f74878caafa04833a19f529b5ba5164b7a8 \
|
||||
--hash=sha256:edbca8789fd10f0de534b660a6b4c71f1fd18039679c918dad392ab044bb37e4 \
|
||||
--hash=sha256:edc17549ab592e33cfcaf285f047bb75fcd98f608aa9309af1187fd736ce9641 \
|
||||
--hash=sha256:ef8a9ddb2e2a4eae4abb72dc0710eca6c2726779b0664bd10c3ce9fcfaed8c4e \
|
||||
--hash=sha256:f08ee8248aad2d054e5bc4c73554d4505464698f6d754f16198dbc5764e9821d \
|
||||
--hash=sha256:f1d62fb172db35c6478c9323da34ff37d1f3d37d7d44337a9d94ba8c583e5730 \
|
||||
--hash=sha256:f8fd23653a252cefabea11cd041efd7b80bdf403e43a36dea53f9cb0aaa21f0f \
|
||||
--hash=sha256:faa4e96385c820ce9d7f7a623486e23d4134ae3c9ba2071e44e0ab5a5a5002c4 \
|
||||
--hash=sha256:fb2bb5b557080da398b866408117d98fe9731a12334afd0cdff221b458cdc5dc \
|
||||
--hash=sha256:fc04affef30be98c1f36f0c422a4061ef618fdc1dde79f5ad5458dd496fecffa \
|
||||
--hash=sha256:ffb616d8d55965839670301dc3bae3abacff560a7e137a89056058a8a9da4d96
|
||||
pydantic-core==2.50.5 \
|
||||
--hash=sha256:004c784d4642bd1112a9fa9a022543aa17793fd32004f7e903ee97df2086bad4 \
|
||||
--hash=sha256:00598ae680c6e4a17cda01910e49c0da8ce15610505e6c57cec3f15d83daef88 \
|
||||
--hash=sha256:008de9d97f2b0c8e596fb5d93d49b63be158e8be5ac35856903b338cbcfd21f3 \
|
||||
--hash=sha256:041f4730fa7a8bf975e88436d439bdc72f3f16e584a470ffbe47392628d99de6 \
|
||||
--hash=sha256:05815bbe2c7bec58d1ce456cc0a98f368e6ef9345b1d9311f42b814d34ad7086 \
|
||||
--hash=sha256:07a62d44515d674d750cfd86b7ce1dd93111be870f378d7c27b37aeb78d0cb4a \
|
||||
--hash=sha256:09c732c097816c89d46ddb70f89d72e853e3a1bbac6475961c60a88aad9fe612 \
|
||||
--hash=sha256:0a7d599d0c5afbab98c0e4441f5b76163c6fcfd2ecf73dd6418e468a7ac452b8 \
|
||||
--hash=sha256:0c9f0002e4ec37db931e4ee8b7dafab2c7288ef66354e74fe16484e60eac6616 \
|
||||
--hash=sha256:0d4edc3350e21e0ef773ef9395227ca072832f05e484cadcf4d8663b63a231c0 \
|
||||
--hash=sha256:0d6e614776c8c99495dcfc6ce8f826277fb4388a5e5cbee23c199cbe39e6dcb3 \
|
||||
--hash=sha256:0dd037d96e98f6db8b69a44ab7d5c20a07fb0a2051775746a9e1b5fc8f52867f \
|
||||
--hash=sha256:11806d9b4888f1645d74fc24237f21dad559b42fb8930481b3df414997be6ee5 \
|
||||
--hash=sha256:12178e58af383bd4c32b2fe141188bc7e540c5eb33ad550856fa5863b4c31bd5 \
|
||||
--hash=sha256:15124b48e0acb6d24664690e052d50be51901286886bc124090960f1df869f30 \
|
||||
--hash=sha256:159f6bc1b616e0ca0938eb568d87ca03c633d6f06306ac47b9c3e5dd8c14d39a \
|
||||
--hash=sha256:1793ec63c8f247131aa4dfc8c4da645b9c5872cf26b53ce240f143f59ad116e4 \
|
||||
--hash=sha256:1d53befcfd415bd9212e685372c825e62f29b83820db78512c9d3659f13d29e9 \
|
||||
--hash=sha256:1deb966176b1b66be4281c83f10a0b6b1cecedeb25f53ee894bf27b22376facd \
|
||||
--hash=sha256:1e740886083ff95530d694e6a3f09ed914bcf92a496d16acd307c6c3484fc36d \
|
||||
--hash=sha256:1f22c36d952f33bac936273ca0be115693a1d7c1c9496ca7d699e6a338656d6e \
|
||||
--hash=sha256:20337f547d79911457cd4739bb6699213a53089f946af87633a48fad3f74f5e1 \
|
||||
--hash=sha256:22f5f0c37251611191a55e801a5150aa21f348fa10eac8eac9fa43c29937a7b1 \
|
||||
--hash=sha256:24d23de96195ff9637e5940a7fbde3bea6a355b26fb5f491737dd803aa5d5a93 \
|
||||
--hash=sha256:252ce30d79b47954cc3a49f8a0d812ac24a356627391fcec90a68733c755707e \
|
||||
--hash=sha256:27bc22dc8d50335bc62296261a7dc4c2572149910ba7c274ef0f945b5be0d570 \
|
||||
--hash=sha256:2cb80e0323b31d4669c4d72a466d99c885e13deb06205aa079ea6594e7ad1ef8 \
|
||||
--hash=sha256:2d785ae9ff0ac485567f27f4fc53712268916e04be4a590160e5bf55b096225a \
|
||||
--hash=sha256:2f0a86887c644247eff4cc7b9e609042a49833dcd72f84574e7b8beea89729ab \
|
||||
--hash=sha256:2f5f29ff80ce0cf93102198cddebdbb3411881de177359c770e5c9c99495a6b3 \
|
||||
--hash=sha256:2f6a8c9b8647378c0dc128805e6b98da39d36019a0e7cac134badeaedb14f849 \
|
||||
--hash=sha256:302517f9f5589e07ead02d38fbb443947a211461b39b18f46948b20941fa8d98 \
|
||||
--hash=sha256:30988977d38909df645183a9869a9d12211485639ac4757de18585f0ccb6f3dc \
|
||||
--hash=sha256:3129b52ee2861d0270db8bd140fc9b53ee9821247ca47fda2613a899ce9a1ea3 \
|
||||
--hash=sha256:372f4ab3e67b2387871950cfa27d94d644c3475e650836ea52e25c2e4fbd7975 \
|
||||
--hash=sha256:3cf575867ecaf89aca440e5a4253d2facf1ca37bab30a4e8c205ec611228126a \
|
||||
--hash=sha256:3f800fc0f304f3b0e09d07d4287f9f0bc9bfe5319d1d7cabeaf265737c516083 \
|
||||
--hash=sha256:40d5da89a632e6c6c938f93fdf54c534882d258a80f51ccfe1650cdedc12e82c \
|
||||
--hash=sha256:43917f090dfda561575a72f75814f76a0680964b70d7b44c84e44d217bdeade7 \
|
||||
--hash=sha256:43a6eaee9eeac4a54f2ff6567e1b0ec51651b37a40d862cab2e6fd16109e6528 \
|
||||
--hash=sha256:44e6c35bf3a9b6785db0c083df8a6929343f9c8fc27186991d21653242c77c19 \
|
||||
--hash=sha256:470bbc2495367f60d3ca849a8039e4c164701d10637e7743f4427d92651bdb6d \
|
||||
--hash=sha256:47f4d79fe4876feace216a5b2263c40d792476b4a6508c38d66a2facd3f1f4cc \
|
||||
--hash=sha256:488319076ec92908b91fc6265ce761f1d78748f69f85518564fd16bf333e1b70 \
|
||||
--hash=sha256:4888829471cd8d85c096ef0e1f41a066c7d76e88309a4fbff4069f70d07673be \
|
||||
--hash=sha256:48b5deaaee4f1b99603173cd291127523e43ee9f51db58c7ff98d16dc5c6fc93 \
|
||||
--hash=sha256:4ac243e358837f62d085f07b98625fa3831abdb28e8f77196934345bbff0fb0b \
|
||||
--hash=sha256:4ae5c9f84dfa43643d10328a212f709c7602c5e70df376d217ae5770d374ccd9 \
|
||||
--hash=sha256:4dcf7b2cdfb9c59c1d377de318f3c8462121f32db939299999484ea0b1eadf18 \
|
||||
--hash=sha256:5027c263fbceb821cfb4b385d36d485e19efca1d9adcc4e5bec69c04ca3cdc83 \
|
||||
--hash=sha256:50d12ba7cab98b355ba65d65655e969f66934ab7a3d2d0c8abd61ae2282efce5 \
|
||||
--hash=sha256:5274f8314ce3be1df07ae8ebceeb97a73b8409d842fd7677c5d0a85a68793ec1 \
|
||||
--hash=sha256:55e0d60384a9b14641749d2ba6721f82409248288f066b95d555c6dd484273d2 \
|
||||
--hash=sha256:568e928322f0b6b94671fc1a4dbc867627af74695b0c060ac6d4f25b6a7425d8 \
|
||||
--hash=sha256:57b79401d870c9df395799c596d81875b647ecf3030129d86659a54f6bfcc0db \
|
||||
--hash=sha256:57d4350167130c9c136b7efa35e6e7ee9539779698755b01007834d32c7a1f7d \
|
||||
--hash=sha256:5da0e7da9d7cdc39df85d1b927b77d40218cf40acbfc523048c95ce44d33abb9 \
|
||||
--hash=sha256:5eafde2cd1d97b7f60efc423d8504b22defd9d2fb9c4a358ffd1230e5fe65311 \
|
||||
--hash=sha256:5ec2e8caf5eadea7be683fc7025d60563e920f1f52fe18ae46c49558e67b8cd0 \
|
||||
--hash=sha256:5f33c92da4aa5714fb6fcb086358274598e8ff62b6607afd132a38657aa64f02 \
|
||||
--hash=sha256:639a51931869c0594d8723b2f529c547db1aa33dc9571d001dc205d896170c08 \
|
||||
--hash=sha256:63a0ba0d7ccf37c8c724bb7ed13c3aa0aa4c743f4f5f376c92c47e584844c7b1 \
|
||||
--hash=sha256:655d0cc2ddbc3fb1f4f8a8e3724552ee2ba6b8561289e9e6e06186982b27bceb \
|
||||
--hash=sha256:65b0f52abcd06dbb53961db9cc3610929f4f6518c3726d965a9babdaf7bd79c9 \
|
||||
--hash=sha256:679f15dd3bd2a82bde350ec8c94c0f8f05f05dba39fb3464cd4136a724da9844 \
|
||||
--hash=sha256:68334f281460fb2a85bbb9e2545438bf2fd2c9a166823a60b84541a3c8f2d2e0 \
|
||||
--hash=sha256:6a069ceeca397bd8da2e8ef6383595c63ea17de37d5f2d5cde729bdc0dfe6774 \
|
||||
--hash=sha256:6e01a2033691ea2cbd91e499d6b6573f446dc926ccdfc670ed576991cef85cdb \
|
||||
--hash=sha256:706c75cd9f8bd1798367f463ea81df52eff5fb2e4c4ef83997dd4ae538adc109 \
|
||||
--hash=sha256:71633f82d51d4796a48026bd6eca5ec83e4a0edbe6187d59bbc45ace1111ebae \
|
||||
--hash=sha256:736782cfbca37b4d81e6f3c7a3414de25db045dcdb7a05e55b64191a33c5ac45 \
|
||||
--hash=sha256:7c3faea08d44b4a7b57b30f1113e6404e6aa62a4f3489a22359fb27d6003d8b1 \
|
||||
--hash=sha256:7dfc0431e94659ae8449303ca4fb1588dc1e00282d6636d00d72bb4bd6459b4d \
|
||||
--hash=sha256:851a78a30265bb203186fd0e19712c1a4431083eb5a1e1715f758a029cd8aa6e \
|
||||
--hash=sha256:86bd5aad5ccbaced98139d08b4314f253c086897830f4bcf9c1d1f02f740683d \
|
||||
--hash=sha256:887424ba7c2145e97f131bc2cc73383a8c464d7bcd56eb98bbd941afb6868b95 \
|
||||
--hash=sha256:88b543705849d0c59343f97c38296dbf59eb7b3c9565bd4fe1ed638ba38da5ed \
|
||||
--hash=sha256:8ba2dcbeea0ab8836e804c54e905075125c702cf78e592d998eecf2764b64144 \
|
||||
--hash=sha256:8bbe282e79dc71b24ba7be284eacf27c8ddff8f26911e2030a0dd123c6aed326 \
|
||||
--hash=sha256:8c7244134b93ce028e9166c1b5d3e4537349307ccf3e65d746b4c6b1bbed8c89 \
|
||||
--hash=sha256:90dabbf4f38f37de1663ce932d37c6f694a005f6470ae2f0d97755d9e3f90ffd \
|
||||
--hash=sha256:90ff55049623eccbfa997332e2b91358dc2c4c30ca6e664b45438723cbe181df \
|
||||
--hash=sha256:922455cc5baddb0f2c82b7ba649e57e89183442b32fe512670db6ebb9b66b251 \
|
||||
--hash=sha256:92c0ebab606f982730aaaa741a30cd5e0f68dc7c005a5baa9b332fc182232c61 \
|
||||
--hash=sha256:93a10c0b967c0dc6c2253d3a82b9117d2a841b8e344c637edc0a14220852b115 \
|
||||
--hash=sha256:93ee3b4f9c64fb1c39892413c4196d0a84790a7e0e5d72b463882c432c1ffafe \
|
||||
--hash=sha256:98b92dad690e6578cc0b504eda53d53adaa4f34bd09c97a547a957e419544eb7 \
|
||||
--hash=sha256:9e255e7c32d9c2f396d3daa833e7d8d701eec7bf8e13ca092b4b83ce7d9487fd \
|
||||
--hash=sha256:9f2bf218dbc93363fe3e31cc53d36db8d6ff4122179406bec05f33bb79c0e2c1 \
|
||||
--hash=sha256:a5f6622451fa3cd71c8ff15df24307cb3f8b5dc35a723de281646c34872d7179 \
|
||||
--hash=sha256:a9bcf23628860d5a90cacdc188ee3b7d0547a38eb985214f03e7002a6ca0e558 \
|
||||
--hash=sha256:aa69eaeed433cfe5de809fb84c95536a5aed991b28290d0db059fe6766c69274 \
|
||||
--hash=sha256:ad0e0221deec2a2385300d76b9259da7036c0ed784502c154ae237dafd67605f \
|
||||
--hash=sha256:af453c0c20372ca8acf3c46de2a89b242491853dc61d0171ba24608d33310e09 \
|
||||
--hash=sha256:b2910ec0fa5aeb9bef70156f2b79f4783978fdcfaa7b2f1b5d1814458d2e79a1 \
|
||||
--hash=sha256:b2b64d3204f9c33f03ed3111eb754902ea76ca5aa61ab4b2bdf9f767a4a1f279 \
|
||||
--hash=sha256:b43115385de7db83bd2fe7a08dea8580bce3acc3f54200c4f4fe32a4a49688d4 \
|
||||
--hash=sha256:b66f2434c895652ac21c030d5a3a92c7811f0f9b98af41bf35be899c2d34aa4c \
|
||||
--hash=sha256:b6f48c4bf1c77ace644b125f168418438fbc9b8e4c3b290915cc7d055d83c8b1 \
|
||||
--hash=sha256:b7e6a76b77513cd633a08addfda8409623ad884a4d91ee3664fb05cf094b2c35 \
|
||||
--hash=sha256:b9348cfd798b8199d34da5258becf2fc8f5e4e7a3b51da30c34b81b996a07b34 \
|
||||
--hash=sha256:ba2b34529984a8e3cb1bc62a7687617722695a2cb4e57958de32a0eba128a07a \
|
||||
--hash=sha256:baa107902f8e38011a5f79836d905eb6bfaac1d4b0bd09fc86509b711d0b09c8 \
|
||||
--hash=sha256:bb103c150e1a0f1b8b2710a66ce1f741c7922b22ef07a290aea0e6cf702d8bbf \
|
||||
--hash=sha256:bcc830e4f48499fd30a870f07c30752273ae2ddccce34d65d51c9fc880c380ab \
|
||||
--hash=sha256:bcd9d9b38e61dfd43e00f621ce00da2ffed35047fad532c4afcadf4f9ca0d672 \
|
||||
--hash=sha256:bdafd6b05bf012772b7d7325a98d26f19b7918e21dabdd5970c885262245aae3 \
|
||||
--hash=sha256:be4615d4b5f90c65dce2295dcf32eff7f05ea5d0d3a82421c03c572785cb9bf8 \
|
||||
--hash=sha256:c334b8759496f9e597b68e1309b2fb3d824fd24a29e562afa86b61005eb9d54d \
|
||||
--hash=sha256:c415a8da7c89a3dd32d988a9117bf0a52371769b77b0943bcfd50b281ecefb8d \
|
||||
--hash=sha256:c4c4313dc66f45822b3d7f39aa74e59e7987cf7572b3309005b26d956a0098a9 \
|
||||
--hash=sha256:c69eb2e09d2830949e6e8f395d4eb8c714ba083213ccff64932ded681fe69a4e \
|
||||
--hash=sha256:cbec4aad328be58961c738b83fc2c7bd993242d2366f949d914e8c09266dee0e \
|
||||
--hash=sha256:cbfde3ad127786f1dea1a6cd89a5eb824a16203f24743ad2b4e07506f43bc844 \
|
||||
--hash=sha256:d16cb794449c2bc0e5cb0ab0022813419bf5283266f2a7ff1fc54e5c6e27dcee \
|
||||
--hash=sha256:d34c0d4dd4a318f2be788a60a972c3a1ed5da0155a7c06d6dd810dc5d60ad704 \
|
||||
--hash=sha256:d3ada66d0601feeeba504a6daac73e47ed164357e46930366f135c4121594d53 \
|
||||
--hash=sha256:d4ebf349b1b60049e80df5d9ea6725b1b7e434a7d006474b0f664fa72a6b3c75 \
|
||||
--hash=sha256:d7826407ed74ff8e6cc6e6df7ffbf180e9b449ab1516f28eb5f6e2a489bc5129 \
|
||||
--hash=sha256:d84b427c6badf48adc2586be1dc5c8677fc2f22a09da50e5d3f342d3daf3b2b4 \
|
||||
--hash=sha256:dac78f91e263c4c9a4d587b9d97b3b5b2561293b33247452cc3cfe5b500e8cfb \
|
||||
--hash=sha256:dc5717ed8981efdbbafc15a2533a690703cf80e96b886a158c61c9ec9bafcc28 \
|
||||
--hash=sha256:e0a7ae307b4e1eff195cd23a757da07f70a115e45175039caf5f3979a20c7edb \
|
||||
--hash=sha256:e5d5d77a9446f44688a5ef420d92c9facac0865ef5565215db54be184ab7906f \
|
||||
--hash=sha256:e65f78eb3d930ac30ff3557fc74a0771300096fb002f588a6fe8d946e83f14ad \
|
||||
--hash=sha256:e7dd59f498ef42077f22db607571249db41997227018cb84644ba0059f8b5719 \
|
||||
--hash=sha256:e8faa73de2e9231f604cfa44c471d0986e7e9c45129d7888839a34196e46a7df \
|
||||
--hash=sha256:e8fe516a4b3b06e4ff83b9adee4a786d28a617e5fb5fe90bda49fb6f52a5ac19 \
|
||||
--hash=sha256:e93587aaa5660536b9188686e8fe0544b577ec57d896d424b5b2118b151a6845 \
|
||||
--hash=sha256:ea215f7f5d2df866e3b5448c0bbb4a35285086ac6ab18687796704cbd5f2c5a3 \
|
||||
--hash=sha256:ea7429e3adb2f2fd81e2d6e8942e5c1cd760a6e6be5b7574d2ee5499b5e19e67 \
|
||||
--hash=sha256:ed4a01922af0d41b2a3b9433818cbb73b6b28e8dea344c90917c1fdcceb9960f \
|
||||
--hash=sha256:ef461e9299ae665fab67c6f054847178b8fd510da10b4ef745a074b922efbf0a \
|
||||
--hash=sha256:f20c692c599ebac7f04f3a0102b969f3f9d6667ffe1e72629fc7fbf8b6375234 \
|
||||
--hash=sha256:f33be114a0ee27870cffd31057ed60bf5a0cd522dcbdc1dda0bdad70f8302cb0 \
|
||||
--hash=sha256:f7509c6f8a0f9d9eac58340dd567f0eb71ce2f762df09f0d51280e30da3fe687 \
|
||||
--hash=sha256:f8dc2008577c5e02eaa1eb3fbfa8fe0eba9af27ff6a740e9f1dae6661e88efcb \
|
||||
--hash=sha256:f8fd7e9c44bb4c9214d41c3bef79cba5a513b29c3bcbfdaaf0440ca6f5fb65ea \
|
||||
--hash=sha256:fa66340c6d3e08a276803812e7665312dfc75dd24eedfa8e09f18a0f8e3e0e8f \
|
||||
--hash=sha256:feb8c87dbc4684777ddafbf37c922d9e2748272ba61e362ebf85db73ebda6234
|
||||
# via pydantic
|
||||
pyflakes==3.1.0 \
|
||||
--hash=sha256:4132f6d49cb4dae6819e5379898f2b8cce3c5f23994194c24b77d5da2e36f774 \
|
||||
@@ -1746,9 +1771,9 @@ python-debian==1.1.1 \
|
||||
--hash=sha256:f98ae013e8e5310e49041cc3860a7105df73af73d4ff1d8afb474770d328a6ad \
|
||||
--hash=sha256:fe4fc3dc798dbf1f0ef5865e2b1b4f7cc0352b6a511b25ab7594906c64a73629
|
||||
# via reuse
|
||||
python-discovery==1.9.5 \
|
||||
--hash=sha256:86279f5d2728bc067de28b7ddc571be2eacc2ae0e7048f8629d2481a0f8848a2 \
|
||||
--hash=sha256:a1fae8fca11e4bc61e38491c2aafff29e430b3c5e272d51ae52fb895bc4c0fac
|
||||
python-discovery==1.9.6 \
|
||||
--hash=sha256:383aa67858d73a9585a843a37a4383c6be98e4d86a981a031328e393a6eb2632 \
|
||||
--hash=sha256:93b10b90363d4151964cdeee2ec6601f3041b17fc2b253a1c3da7d6e7ddd8337
|
||||
# via virtualenv
|
||||
python-frontmatter==1.3.0 \
|
||||
--hash=sha256:9f7dd9260bec99044219159a329f64f039087f9d1a2124c9442556f2fe6f82ec \
|
||||
@@ -1806,80 +1831,82 @@ pytokens==0.4.1 \
|
||||
--hash=sha256:ee44d0f85b803321710f9239f335aafe16553b39106384cef8e6de40cb4ef2f6 \
|
||||
--hash=sha256:f66a6bbe741bd431f6d741e617e0f39ec7257ca1f89089593479347cc4d13324
|
||||
# via black
|
||||
pyyaml==6.0.3 \
|
||||
--hash=sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c \
|
||||
--hash=sha256:0150219816b6a1fa26fb4699fb7daa9caf09eb1999f3b70fb6e786805e80375a \
|
||||
--hash=sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3 \
|
||||
--hash=sha256:02ea2dfa234451bbb8772601d7b8e426c2bfa197136796224e50e35a78777956 \
|
||||
--hash=sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6 \
|
||||
--hash=sha256:10892704fc220243f5305762e276552a0395f7beb4dbf9b14ec8fd43b57f126c \
|
||||
--hash=sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65 \
|
||||
--hash=sha256:1d37d57ad971609cf3c53ba6a7e365e40660e3be0e5175fa9f2365a379d6095a \
|
||||
--hash=sha256:1ebe39cb5fc479422b83de611d14e2c0d3bb2a18bbcb01f229ab3cfbd8fee7a0 \
|
||||
--hash=sha256:214ed4befebe12df36bcc8bc2b64b396ca31be9304b8f59e25c11cf94a4c033b \
|
||||
--hash=sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1 \
|
||||
--hash=sha256:22ba7cfcad58ef3ecddc7ed1db3409af68d023b7f940da23c6c2a1890976eda6 \
|
||||
--hash=sha256:27c0abcb4a5dac13684a37f76e701e054692a9b2d3064b70f5e4eb54810553d7 \
|
||||
--hash=sha256:28c8d926f98f432f88adc23edf2e6d4921ac26fb084b028c733d01868d19007e \
|
||||
--hash=sha256:2e71d11abed7344e42a8849600193d15b6def118602c4c176f748e4583246007 \
|
||||
--hash=sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310 \
|
||||
--hash=sha256:37503bfbfc9d2c40b344d06b2199cf0e96e97957ab1c1b546fd4f87e53e5d3e4 \
|
||||
--hash=sha256:3c5677e12444c15717b902a5798264fa7909e41153cdf9ef7ad571b704a63dd9 \
|
||||
--hash=sha256:3ff07ec89bae51176c0549bc4c63aa6202991da2d9a6129d7aef7f1407d3f295 \
|
||||
--hash=sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea \
|
||||
--hash=sha256:418cf3f2111bc80e0933b2cd8cd04f286338bb88bdc7bc8e6dd775ebde60b5e0 \
|
||||
--hash=sha256:44edc647873928551a01e7a563d7452ccdebee747728c1080d881d68af7b997e \
|
||||
--hash=sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac \
|
||||
--hash=sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9 \
|
||||
--hash=sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7 \
|
||||
--hash=sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35 \
|
||||
--hash=sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb \
|
||||
--hash=sha256:5cf4e27da7e3fbed4d6c3d8e797387aaad68102272f8f9752883bc32d61cb87b \
|
||||
--hash=sha256:5e0b74767e5f8c593e8c9b5912019159ed0533c70051e9cce3e8b6aa699fcd69 \
|
||||
--hash=sha256:5ed875a24292240029e4483f9d4a4b8a1ae08843b9c54f43fcc11e404532a8a5 \
|
||||
--hash=sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b \
|
||||
--hash=sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c \
|
||||
--hash=sha256:6344df0d5755a2c9a276d4473ae6b90647e216ab4757f8426893b5dd2ac3f369 \
|
||||
--hash=sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd \
|
||||
--hash=sha256:652cb6edd41e718550aad172851962662ff2681490a8a711af6a4d288dd96824 \
|
||||
--hash=sha256:66291b10affd76d76f54fad28e22e51719ef9ba22b29e1d7d03d6777a9174198 \
|
||||
--hash=sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065 \
|
||||
--hash=sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c \
|
||||
--hash=sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c \
|
||||
--hash=sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764 \
|
||||
--hash=sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196 \
|
||||
--hash=sha256:8098f252adfa6c80ab48096053f512f2321f0b998f98150cea9bd23d83e1467b \
|
||||
--hash=sha256:850774a7879607d3a6f50d36d04f00ee69e7fc816450e5f7e58d7f17f1ae5c00 \
|
||||
--hash=sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac \
|
||||
--hash=sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8 \
|
||||
--hash=sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e \
|
||||
--hash=sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28 \
|
||||
--hash=sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3 \
|
||||
--hash=sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5 \
|
||||
--hash=sha256:9c57bb8c96f6d1808c030b1687b9b5fb476abaa47f0db9c0101f5e9f394e97f4 \
|
||||
--hash=sha256:9c7708761fccb9397fe64bbc0395abcae8c4bf7b0eac081e12b809bf47700d0b \
|
||||
--hash=sha256:9f3bfb4965eb874431221a3ff3fdcddc7e74e3b07799e0e84ca4a0f867d449bf \
|
||||
--hash=sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5 \
|
||||
--hash=sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702 \
|
||||
--hash=sha256:b30236e45cf30d2b8e7b3e85881719e98507abed1011bf463a8fa23e9c3e98a8 \
|
||||
--hash=sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788 \
|
||||
--hash=sha256:b865addae83924361678b652338317d1bd7e79b1f4596f96b96c77a5a34b34da \
|
||||
--hash=sha256:b8bb0864c5a28024fac8a632c443c87c5aa6f215c0b126c449ae1a150412f31d \
|
||||
--hash=sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc \
|
||||
--hash=sha256:bdb2c67c6c1390b63c6ff89f210c8fd09d9a1217a465701eac7316313c915e4c \
|
||||
--hash=sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba \
|
||||
--hash=sha256:c2514fceb77bc5e7a2f7adfaa1feb2fb311607c9cb518dbc378688ec73d8292f \
|
||||
--hash=sha256:c3355370a2c156cffb25e876646f149d5d68f5e0a3ce86a5084dd0b64a994917 \
|
||||
--hash=sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5 \
|
||||
--hash=sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26 \
|
||||
--hash=sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f \
|
||||
--hash=sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b \
|
||||
--hash=sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be \
|
||||
--hash=sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c \
|
||||
--hash=sha256:efd7b85f94a6f21e4932043973a7ba2613b059c4a000551892ac9f1d11f5baf3 \
|
||||
--hash=sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6 \
|
||||
--hash=sha256:fa160448684b4e94d80416c0fa4aac48967a969efe22931448d853ada8baf926 \
|
||||
--hash=sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0
|
||||
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-builder
|
||||
# ansible-compat
|
||||
@@ -2124,9 +2151,9 @@ truststore==0.10.5 \
|
||||
# apm-cli
|
||||
# httpcore2
|
||||
# httpx2
|
||||
typer==0.29.1 \
|
||||
--hash=sha256:00dbc549c13428bec1be55fe1f4d0fb8c6637a310e4f178ef14abe9534ee7b58 \
|
||||
--hash=sha256:ab6eb3880bf67ce96147734717f9ec333c06f66e361f3ea947d0be43da39f242
|
||||
typer==0.29.2 \
|
||||
--hash=sha256:b1998dc5f2c3dedafa1517a9521fa944cc4dc1fadcea085d81a3b10ebcaeb075 \
|
||||
--hash=sha256:f30731f8ca758368b836b3714872e58e395cef8fcaff918c853b1969ed5274e7
|
||||
# via rstcheck
|
||||
typing-extensions==4.16.0 \
|
||||
--hash=sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8 \
|
||||
@@ -2152,9 +2179,9 @@ urllib3==2.8.0 \
|
||||
--hash=sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3 \
|
||||
--hash=sha256:63bf2ead4c879426ebf22ef2a781eeb4aa3b4ae798a0435506f8687fd5bb9b63
|
||||
# via requests
|
||||
virtualenv==21.15.6 \
|
||||
--hash=sha256:4b99ab9b95ff11043939bb4cad2fa0449175fa5a478372864f62160cb6c1a7ed \
|
||||
--hash=sha256:c8b65c7d206ca6ef18de9352c160b3f04f66fff9f6b0ec8fd31f14688eba52c4
|
||||
virtualenv==21.15.12 \
|
||||
--hash=sha256:a3976f886eb6019fcb1d137b223d160adaeff524ab0ad785c729a43c31cc158c \
|
||||
--hash=sha256:bbbf764388a18dee8c3532c77af7a29680cd8121911d6dcb3484335d76547323
|
||||
# via pre-commit
|
||||
watchdog==7.1.1 \
|
||||
--hash=sha256:05e85c22dcd53f7152d1e03e785e241341d586b06a5115be7c0ea86436ccc1f6 \
|
||||
@@ -2202,9 +2229,9 @@ watchdog==7.1.1 \
|
||||
--hash=sha256:f221e03057394041166cf0562d4a7bdc19330a68e3b852f4df208e4889b0e175 \
|
||||
--hash=sha256:f6e0da274cc1610b37ff7afe0c2a2b454308a0684efea0bfb7bedaa530b08106
|
||||
# via apm-cli
|
||||
wcmatch==12.0.3 \
|
||||
--hash=sha256:7255aeae27423a2dfe5bbce9bab7e97369ecad16f0d0a5244f85239123daeaa5 \
|
||||
--hash=sha256:ccf83affafadc4286ffb335bc827ca2bffb0547fa5d5587600b585151bce4359
|
||||
wcmatch==12.0.4 \
|
||||
--hash=sha256:23fe77fbfa3fff9e46f0f4a3d1891065270596774bd6131bd2f973fb822242a1 \
|
||||
--hash=sha256:3e61e404a90a8b6c8bca197fb9ad5f1accbb34ee206b63e0c588a2ab9aa05862
|
||||
# via ansible-lint
|
||||
websockets==16.1.1 \
|
||||
--hash=sha256:01fbdcbac298efe19360b94bc0039c8f746f0220ba570f327577bfee81059175 \
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ names a check that does not exist yet and its backlog issue.
|
||||
*Why:* a consumer finds the same thing in the same place. *Held:* review.
|
||||
- **Complexity.** A task file stays within ansible-lint's `complexity` limit, `max_tasks` 100
|
||||
(40 once ansible-lint accepts the key). *Why:* a long task file is hard to review. *Held:*
|
||||
review until the Lint job enables and gates `complexity` (#138).
|
||||
review until the Lint job enables `complexity` and fails on it (#138).
|
||||
- **Roadmap.** The pull request that adds a role removes it from the README "Roadmap" list, and
|
||||
the section goes when the list is empty. *Why:* the list is useful only if true. *Held:* review.
|
||||
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
# cloudflared
|
||||
|
||||
Installs cloudflared as a systemd service for a locally managed Cloudflare Tunnel. The role checks that the tunnel exists, manages its proxied DNS CNAMEs through the Cloudflare API, renders `config.yml` from a hostname-to-service list, and optionally updates or removes everything. A separate `mint` entry point creates the tunnel. 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), the image the molecule scenario runs on. The role downloads the `cloudflared-linux-amd64` binary only, so other architectures are unsupported, and it needs `systemd`. The tasks that call the Cloudflare API run on the controller (`delegate_to: localhost`) and need the `community.general` collection (`cloudflare_dns`) there; the `mint` entry point also needs the `openssl` command on the controller. The target needs outbound access to github.com and to Cloudflare's edge; the role defines no firewall rules because the daemon only connects outbound.
|
||||
|
||||
## Requirements and run order
|
||||
|
||||
- Use it by its fully qualified name, `mortis.kamino.cloudflared`.
|
||||
- Before the first run: set `cloudflared_account_id` and `cloudflared_tunnel_api_token` (vaulted), and, while `cloudflared_manage_dns` is true, `cloudflared_zone_name`; list the routed hostnames in `cloudflared_ingress`. The token needs Cloudflare Tunnel Edit, DNS Edit and Zone Read; do not reuse a token that serves another purpose (for example an ACME DNS-challenge token).
|
||||
- First run versus later runs: `cloudflared_tunnel_id` and `cloudflared_credentials_json` have no role default and the main entry point never creates them. Validation asserts both are defined and non-empty before anything changes and fails with the mint instructions otherwise. On a new host run the `mint` entry point first, persist its output facts into inventory under these two names, then run the role (see Entry points).
|
||||
- The secrets are not `required` in the argument spec, on purpose, as an exception to the rule that a secret is a required input: argument validation would stop a first run with a generic "missing required arguments" message, where the role's own assert names the mint entry point that creates the tunnel, and the `mint` entry point must run while `cloudflared_tunnel_id` is still undefined. All four (`cloudflared_tunnel_id`, `cloudflared_credentials_json`, `cloudflared_account_id`, `cloudflared_tunnel_api_token`) have no default and are asserted non-empty before any change.
|
||||
- An origin behind the tunnel on the same host (for example a reverse proxy on `https://127.0.0.1:443`) must be serving before cloudflared can reach it; the role does not check it.
|
||||
- Updates: the update path stages the verified binary and hands the swap to `mortis.kamino._binary_update`, an internal role of this Collection.
|
||||
- `cloudflared_version` is asserted at role start to be a `YYYY.M.P` release tag, with no leading `v`, and `cloudflared_sha256_amd64` to be 64 hex digits. Pin both in inventory to move the daemon independently of Collection releases; the role defaults change only with a release.
|
||||
|
||||
## Role variables
|
||||
|
||||
| Variable | Default | Description |
|
||||
|---|---|---|
|
||||
| `cloudflared_ingress` | `[]` | List of `hostname`, `service` and optional `originRequest`. A catch-all `http_status:404` rule is appended. |
|
||||
| `cloudflared_tunnel_id` | none (asserted) | Vaulted tunnel id, from the `mint` entry point. |
|
||||
| `cloudflared_credentials_json` | none (asserted) | Vaulted tunnel credentials JSON, written to `<config_dir>/<tunnel id>.json`, mode 0600. |
|
||||
| `cloudflared_account_id` | none (asserted) | Account id for the tunnel API. |
|
||||
| `cloudflared_tunnel_api_token` | none (asserted) | API token, `no_log`. |
|
||||
| `cloudflared_manage_dns` | `true` | Manage the proxied CNAMEs of the ingress hostnames; false makes no DNS call. |
|
||||
| `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_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. |
|
||||
| `cloudflared_download_url` | github.com release URL built from the version | Binary download URL. |
|
||||
| `cloudflared_update` | `true` | Run the update tasks when the installed version differs: download and verify to a staging path, then `mortis.kamino._binary_update` swaps it in with rollback. |
|
||||
| `cloudflared_remove` | `false` | Stop and disable the service, remove the unit and the binary. The role ends there. |
|
||||
| `cloudflared_remove_data` | `false` | With `cloudflared_remove`, also remove the config directory and the user, and delete the tunnel (and, with `cloudflared_manage_dns`, its DNS records) on Cloudflare. |
|
||||
| `cloudflared_user`, `cloudflared_group` | `cloudflared` | Service account. |
|
||||
| `cloudflared_install_dir` | `/usr/local/bin` | Binary location. |
|
||||
| `cloudflared_config_dir` | `/etc/cloudflared` | Configuration and credentials directory. |
|
||||
| `cloudflared_service_unit` | `/etc/systemd/system/cloudflared.service` | Unit file path. |
|
||||
| `cloudflared_mint_confirm` | `false` | Opt-in for the `mint` entry point. |
|
||||
|
||||
## Entry points
|
||||
|
||||
- `main`: install, configure, update or remove cloudflared, as above.
|
||||
- `mint` (`tasks_from: mint`): creates the tunnel. Run it by hand from an operator play, never from CI:
|
||||
|
||||
```yaml
|
||||
- name: Mint the Cloudflare Tunnel
|
||||
hosts: tunnel_hosts
|
||||
tasks:
|
||||
- name: Mint
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.cloudflared
|
||||
tasks_from: mint
|
||||
# Then vault-encrypt cloudflared_minted_tunnel_id and cloudflared_minted_credentials_json
|
||||
# (when defined) into inventory as cloudflared_tunnel_id and cloudflared_credentials_json.
|
||||
```
|
||||
|
||||
Run it with `-e cloudflared_mint_confirm=true`.
|
||||
|
||||
- Guards: `cloudflared_mint_confirm` must be true, and the entry point fails when `GITHUB_ACTIONS`, `GITEA_ACTIONS` or `CI` is set in the controller environment. This guards against accidents; it is not a security boundary.
|
||||
- When `cloudflared_tunnel_id` is already defined and non-empty (undefined, null and `""` count as missing) it only reports that and creates nothing, so a re-run is safe. It creates nothing in check mode.
|
||||
- Otherwise it asserts `cloudflared_account_id`, `cloudflared_tunnel_api_token` and `cloudflared_tunnel_name`, generates the tunnel secret in memory with `openssl rand -base64 32` on the controller, creates the tunnel through the API with `config_src: local` and registers `cloudflared_minted_tunnel_id` and `cloudflared_minted_credentials_json` as `no_log` facts. The secret and the API response are cleared from the host's variables afterwards.
|
||||
- Persisting the facts is the calling play's job. The credentials are shown nowhere else, so a mint whose result is not persisted must be repeated, and leaves an orphan tunnel on Cloudflare to delete by hand.
|
||||
|
||||
## Variables set by the role
|
||||
|
||||
Only by the `mint` entry point, and only when a tunnel was created; `no_log`, not cacheable:
|
||||
|
||||
- `cloudflared_minted_tunnel_id` (string): the new tunnel's id.
|
||||
- `cloudflared_minted_credentials_json` (string, JSON text): the tunnel credentials file content, including the tunnel secret.
|
||||
|
||||
## Tags
|
||||
|
||||
`cloudflared` (everything), `prereqs`, `install`, `configure`, `health`, `update`, `remove`, `mint` (carried by the mint entry point's tasks, but not selectable on its own: its guards are tagged `cloudflared, always`, so select a mint play with `--tags cloudflared`). The input asserts and the `prereqs` tasks are also tagged `always`. The download (`tasks/download.yml`, shared by install and update) is tagged `install` and `update`, so `--tags update` alone reaches it.
|
||||
|
||||
## Example play
|
||||
|
||||
```yaml
|
||||
- name: Run a Cloudflare Tunnel
|
||||
hosts: tunnel_hosts
|
||||
roles:
|
||||
- role: mortis.kamino.cloudflared
|
||||
vars:
|
||||
cloudflared_zone_name: example.com
|
||||
cloudflared_ingress:
|
||||
- hostname: git.example.com
|
||||
service: https://127.0.0.1:443
|
||||
originRequest:
|
||||
originServerName: git.example.com
|
||||
```
|
||||
|
||||
`cloudflared_account_id`, `cloudflared_tunnel_api_token`, `cloudflared_tunnel_id` and `cloudflared_credentials_json` come from vaulted inventory variables.
|
||||
|
||||
Remove with `-e "cloudflared_remove=true cloudflared_remove_data=true"`; only `cloudflared_remove_data` touches Cloudflare.
|
||||
|
||||
## Tests
|
||||
|
||||
The `default` molecule scenario runs without Cloudflare: a stub cloudflared binary stands in for the daemon, the downloads come from local `file://` URLs, and a stub of the Cloudflare API on the controller's loopback (`molecule/default/files/cloudflare_api_stub.py`, reached through `cloudflared_api_base_url`) answers the tunnel, zone and DNS record calls. It covers the converge with `cloudflared_manage_dns` false and an update through `_binary_update` (and its idempotence), the rendered `config.yml`, credentials file and unit, a stale credentials file, a failed checksum that leaves the daemon running, the input asserts, the deleted-tunnel and DNS guards, the `mint` entry point (confirm guard, CI refusal, no-op, check mode and a mint against the stub, run as child processes) and the remove path. The `community.general.cloudflare_dns` calls, which cannot be pointed at the stub, are not covered: creating, pruning and deleting records.
|
||||
|
||||
## Notes
|
||||
|
||||
- Idempotent: yes.
|
||||
- The role is not a state selector. `main.yml` always runs validation, prerequisites and configure unless `cloudflared_remove` is true; the binary install only when it is absent; the update only when the installed version differs; remove only when `cloudflared_remove` is true, and then every later task is skipped.
|
||||
- Secrets: the tasks that create the secrets, the `uri` calls that put the token in the Authorization header, the `cloudflare_dns` calls and the credentials file write use `no_log` (the credentials write also sets `diff: false`). A failure of those tasks therefore shows only as "censored": to debug a failed DNS change, check the Cloudflare audit log or set `no_log: false` on a throwaway run against a non-secret zone. The tunnel id itself is not masked: it shows in `config.yml` diffs, DNS record values and failure messages.
|
||||
- Safety guards: the role fails if the tunnel no longer exists on Cloudflare (retrying a 404 three times first, then failing with the re-mint instructions), if the tunnel lookup fails otherwise (with its HTTP status), if the zone is not found, or if an existing record for an ingress hostname does not point at some `cfargotunnel.com` tunnel and the hostname is not in `cloudflared_allow_dns_overwrite`. A record that already points at a tunnel, including a deleted one, is repointed without an allowlist entry.
|
||||
- Pruning: CNAMEs pointing at this tunnel whose name is not in `cloudflared_ingress` are deleted. The lookup is filtered by the tunnel's `cfargotunnel.com` target, so other records in the zone are not touched.
|
||||
- Re-mint after a tunnel was deleted out of band: remove the stale `cloudflared_tunnel_id` and `cloudflared_credentials_json` from inventory, run the `mint` entry point and persist its output.
|
||||
- Stale credentials: files named `<uuid>.json` in the config directory other than the current tunnel's are removed.
|
||||
- The `Restart cloudflared` handler runs when `config.yml` or the credentials file changes. cloudflared's own ingress check (`ingress validate`) runs after `config.yml` is written.
|
||||
- Update: the version is compared as `YYYY.M.P` against `cloudflared --version`. The new binary is downloaded and checksum-verified into `cloudflared.new` before the service is stopped, so a failed download leaves it running; a configured hash that equals the installed binary's is refused with a message, since it means the hash was not bumped with the version. A binary that reports no version is replaced too.
|
||||
- The play fails when `cloudflared` is not `active` after start.
|
||||
@@ -0,0 +1,48 @@
|
||||
---
|
||||
cloudflared_update: true
|
||||
cloudflared_remove_data: false
|
||||
cloudflared_remove: false
|
||||
|
||||
# cloudflared publishes no checksum file: the hash is the sha256 of the cloudflared-linux-amd64
|
||||
# release asset, and it moves together with the version. Pin both in inventory to move the
|
||||
# daemon independently of Collection releases.
|
||||
cloudflared_version: "2026.11.1"
|
||||
cloudflared_sha256_amd64: "97bb3b02d23a5980fc9c15a1a270e692da1923f103f920d5b16d4931d5ab55e7"
|
||||
cloudflared_download_url: "https://github.com/cloudflare/cloudflared/releases/download/{{ cloudflared_version }}/cloudflared-linux-amd64"
|
||||
|
||||
cloudflared_user: "cloudflared"
|
||||
cloudflared_group: "cloudflared"
|
||||
cloudflared_install_dir: "/usr/local/bin"
|
||||
cloudflared_config_dir: "/etc/cloudflared"
|
||||
cloudflared_service_unit: "/etc/systemd/system/cloudflared.service"
|
||||
|
||||
cloudflared_api_base_url: "https://api.cloudflare.com/client/v4"
|
||||
|
||||
cloudflared_tunnel_name: "{{ inventory_hostname }}-tunnel"
|
||||
|
||||
# Set false when the tunnel's DNS records are managed elsewhere: the role then makes no DNS
|
||||
# call and needs no zone.
|
||||
cloudflared_manage_dns: true
|
||||
|
||||
# Every zone differs, so there is no useful default; asserted non-empty while
|
||||
# cloudflared_manage_dns is true.
|
||||
cloudflared_zone_name: ""
|
||||
|
||||
# Hostnames routed through the tunnel; each gets a proxied CNAME while cloudflared_manage_dns
|
||||
# is true. A catch-all http_status:404 rule is always appended.
|
||||
cloudflared_ingress: []
|
||||
|
||||
# The role owns no firewall rule: the daemon only connects outbound to Cloudflare's edge.
|
||||
|
||||
# No default for cloudflared_tunnel_id, cloudflared_credentials_json, cloudflared_account_id or
|
||||
# cloudflared_tunnel_api_token: they are secrets. The main entry point asserts them and, for the
|
||||
# tunnel, names the mint entry point that creates it; the mint entry point creates a tunnel only
|
||||
# while cloudflared_tunnel_id is undefined, null or empty.
|
||||
|
||||
# Hostnames from cloudflared_ingress whose existing DNS record may be overwritten although it does
|
||||
# not point at a cfargotunnel.com tunnel. Without an entry the play fails instead. Per hostname, so
|
||||
# unblocking one does not authorise overwriting the others.
|
||||
cloudflared_allow_dns_overwrite: []
|
||||
|
||||
# Opt-in for the mint entry point.
|
||||
cloudflared_mint_confirm: false
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
- name: Restart cloudflared
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
name: cloudflared
|
||||
state: restarted
|
||||
@@ -0,0 +1,227 @@
|
||||
---
|
||||
argument_specs:
|
||||
main:
|
||||
short_description: Install and run cloudflared for a locally managed Cloudflare Tunnel, with its DNS records
|
||||
description:
|
||||
- >-
|
||||
Validates the inputs, then either removes cloudflared (C(cloudflared_remove), which ends the role) or creates
|
||||
the C(cloudflared) system user, group and configuration directory, downloads and checksum-verifies the pinned
|
||||
binary when it is missing and runs the configure tasks. Optionally updates the binary
|
||||
(C(cloudflared_update)) with rollback through the internal C(mortis.kamino._binary_update) role.
|
||||
- >-
|
||||
This entry point never creates the tunnel (see the C(mint) entry point). Validation asserts that
|
||||
C(cloudflared_tunnel_id) and C(cloudflared_credentials_json) are defined and non-empty, and fails with the
|
||||
mint instructions otherwise. The configure tasks then check, from the controller, that the tunnel still
|
||||
exists, and, with C(cloudflared_manage_dns), point a proxied CNAME for every C(cloudflared_ingress) hostname
|
||||
at the tunnel and prune CNAMEs that point at this tunnel but are no longer listed. They write C(config.yml)
|
||||
and the credentials file, remove stale credentials files, write the systemd unit and start the service.
|
||||
- >-
|
||||
The four secrets (C(cloudflared_tunnel_id), C(cloudflared_credentials_json), C(cloudflared_account_id),
|
||||
C(cloudflared_tunnel_api_token)) are deliberately not C(required) in this spec: argument validation would
|
||||
stop a first run with a generic message, where the role's own assert names the mint entry point that
|
||||
creates the tunnel, and the mint entry point must run while the tunnel variables are still undefined.
|
||||
They have no role default and are asserted non-empty before any change.
|
||||
options:
|
||||
cloudflared_remove:
|
||||
type: bool
|
||||
default: false
|
||||
description:
|
||||
- >-
|
||||
When true the service is stopped and disabled and the unit file and the binary are removed. The role ends
|
||||
there: nothing is installed or configured in the same run.
|
||||
cloudflared_remove_data:
|
||||
type: bool
|
||||
default: false
|
||||
description:
|
||||
- >-
|
||||
Only read while C(cloudflared_remove) is true. When true C(cloudflared_config_dir) and the
|
||||
C(cloudflared) user are removed and, when C(cloudflared_tunnel_id) is non-empty, the tunnel is deleted on
|
||||
Cloudflare, together with the DNS records of every C(cloudflared_ingress) hostname while
|
||||
C(cloudflared_manage_dns) is true. Destructive on the Cloudflare side.
|
||||
cloudflared_update:
|
||||
type: bool
|
||||
default: true
|
||||
description:
|
||||
- >-
|
||||
When true the update tasks run after configuration. The installed version is compared with
|
||||
C(cloudflared_version) and only a difference triggers a verified download to a staging path next to the
|
||||
live binary. The swap is then handed to C(mortis.kamino._binary_update), which stops the service, backs
|
||||
up the live binary, swaps, restarts, checks the version and rolls back on failure. A failed download
|
||||
leaves the daemon running.
|
||||
cloudflared_version:
|
||||
type: str
|
||||
description:
|
||||
- >-
|
||||
cloudflared release tag, for example C(2026.11.1). The role default is a pinned tag, see
|
||||
C(defaults/main.yml); pin it in inventory, together with C(cloudflared_sha256_amd64), to move the daemon
|
||||
independently of Collection releases.
|
||||
- Asserted at role start to be C(YYYY.M.P) digits only, with no leading C(v).
|
||||
cloudflared_sha256_amd64:
|
||||
type: str
|
||||
description:
|
||||
- >-
|
||||
SHA-256 of the C(cloudflared-linux-amd64) binary of C(cloudflared_version). Upstream publishes no checksum
|
||||
file, so it must be updated together with the version. The role default is the pinned value. Asserted at
|
||||
role start to be 64 hex digits.
|
||||
cloudflared_download_url:
|
||||
type: raw
|
||||
description:
|
||||
- >-
|
||||
Download URL of the binary. The role default is a Jinja expression built from C(cloudflared_version)
|
||||
for C(cloudflared-linux-amd64) on github.com.
|
||||
cloudflared_user:
|
||||
type: str
|
||||
default: cloudflared
|
||||
description:
|
||||
- System user that owns the configuration and runs the service.
|
||||
cloudflared_group:
|
||||
type: str
|
||||
default: cloudflared
|
||||
description:
|
||||
- System group that owns the configuration and runs the service.
|
||||
cloudflared_install_dir:
|
||||
type: str
|
||||
default: /usr/local/bin
|
||||
description:
|
||||
- Directory that receives the C(cloudflared) binary.
|
||||
cloudflared_config_dir:
|
||||
type: str
|
||||
default: /etc/cloudflared
|
||||
description:
|
||||
- Directory for C(config.yml) and the tunnel credentials file C(<tunnel id>.json), mode 0750.
|
||||
cloudflared_service_unit:
|
||||
type: str
|
||||
default: /etc/systemd/system/cloudflared.service
|
||||
description:
|
||||
- Path of the systemd unit file.
|
||||
cloudflared_api_base_url:
|
||||
type: str
|
||||
default: https://api.cloudflare.com/client/v4
|
||||
description:
|
||||
- >-
|
||||
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_name:
|
||||
type: raw
|
||||
description:
|
||||
- >-
|
||||
Name given to the tunnel when it is created. The role default is the Jinja expression
|
||||
C(<inventory_hostname>-tunnel). Only used by the C(mint) entry point.
|
||||
cloudflared_tunnel_id:
|
||||
type: raw
|
||||
no_log: true
|
||||
description:
|
||||
- >-
|
||||
Tunnel id, supplied as a vaulted variable from the output of the C(mint) entry point. No role default and
|
||||
not C(required) in this spec, on purpose: the C(mint) entry point creates the tunnel only while this is
|
||||
undefined, null or empty, and this entry point asserts it non-empty with the mint instructions.
|
||||
cloudflared_credentials_json:
|
||||
type: raw
|
||||
no_log: true
|
||||
description:
|
||||
- >-
|
||||
Tunnel credentials JSON as a vaulted string, written to C(<cloudflared_config_dir>/<tunnel id>.json) with
|
||||
mode 0600. No role default and not C(required), for the same reason as C(cloudflared_tunnel_id);
|
||||
asserted non-empty.
|
||||
cloudflared_manage_dns:
|
||||
type: bool
|
||||
default: true
|
||||
description:
|
||||
- >-
|
||||
When true the role looks up C(cloudflared_zone_name), points a proxied CNAME for every
|
||||
C(cloudflared_ingress) hostname at the tunnel, prunes CNAMEs that point at this tunnel and are no longer
|
||||
listed, and deletes the records on a removal with C(cloudflared_remove_data). When false it makes no DNS
|
||||
call and C(cloudflared_zone_name) is not read: the records are managed elsewhere.
|
||||
cloudflared_zone_name:
|
||||
type: str
|
||||
default: ""
|
||||
description:
|
||||
- >-
|
||||
DNS zone of the C(cloudflared_ingress) hostnames. Asserted non-empty while C(cloudflared_manage_dns) is
|
||||
true. The play fails when no zone of this name exists.
|
||||
cloudflared_ingress:
|
||||
type: list
|
||||
elements: dict
|
||||
default: []
|
||||
description:
|
||||
- >-
|
||||
Routed hostnames. Each item is a mapping with C(hostname), C(service) and optionally C(originRequest)
|
||||
(rendered as YAML). A catch-all C(http_status:404) rule is appended. With C(cloudflared_manage_dns) a
|
||||
CNAME is created for every C(hostname), and CNAMEs that point at this tunnel and are not listed are
|
||||
deleted.
|
||||
cloudflared_allow_dns_overwrite:
|
||||
type: list
|
||||
elements: str
|
||||
default: []
|
||||
description:
|
||||
- >-
|
||||
Hostnames from C(cloudflared_ingress) whose existing DNS record may be overwritten although it does not
|
||||
point at a C(cfargotunnel.com) tunnel. Without an entry the play fails instead of replacing the record.
|
||||
Add a hostname only after confirming the record should be replaced.
|
||||
cloudflared_account_id:
|
||||
type: raw
|
||||
description:
|
||||
- >-
|
||||
Cloudflare account id used in the tunnel API URLs. Read by the tunnel existence check and the removal.
|
||||
No role default and not C(required) (see the secrets note above); asserted non-empty.
|
||||
cloudflared_tunnel_api_token:
|
||||
type: raw
|
||||
no_log: true
|
||||
description:
|
||||
- >-
|
||||
Cloudflare API token with Cloudflare Tunnel Edit, DNS Edit and Zone Read permissions, sent as a Bearer
|
||||
header and as C(api_token) of C(community.general.cloudflare_dns). A secret: supply it from a vaulted
|
||||
variable. No role default and not C(required) (see the secrets note above); asserted non-empty.
|
||||
mint:
|
||||
short_description: Create the Cloudflare Tunnel and register its secrets as facts (opt-in, operator only)
|
||||
description:
|
||||
- >-
|
||||
Opt-in entry point (C(tasks_from=mint)), run by hand from an operator play, never from CI. Requires
|
||||
C(cloudflared_mint_confirm=true) and refuses to run when C(GITHUB_ACTIONS), C(GITEA_ACTIONS) or C(CI) is set
|
||||
on the controller. Does nothing but report when C(cloudflared_tunnel_id) is already defined and non-empty.
|
||||
- >-
|
||||
Otherwise, and never in check mode, it generates the tunnel secret in memory (C(openssl rand) on the
|
||||
controller), creates the tunnel through the Cloudflare API from the controller and registers
|
||||
C(cloudflared_minted_tunnel_id) and C(cloudflared_minted_credentials_json) (JSON text) as C(no_log) facts.
|
||||
They are not cacheable, never printed and only defined when a tunnel was created. The role writes no file and
|
||||
runs no vault command: persisting the facts, for example vault-encrypted into inventory as
|
||||
C(cloudflared_tunnel_id) and C(cloudflared_credentials_json), is the calling play's job. Cloudflare shows the
|
||||
credentials once.
|
||||
- >-
|
||||
C(cloudflared_account_id) and C(cloudflared_tunnel_api_token) are not C(required) in this spec, as in the
|
||||
C(main) entry point; they are asserted non-empty before a tunnel is created.
|
||||
options:
|
||||
cloudflared_mint_confirm:
|
||||
type: bool
|
||||
default: false
|
||||
description:
|
||||
- Must be true, otherwise the entry point fails. Pass it as C(-e cloudflared_mint_confirm=true).
|
||||
cloudflared_api_base_url:
|
||||
type: str
|
||||
default: https://api.cloudflare.com/client/v4
|
||||
description:
|
||||
- Base URL of the Cloudflare API, without a trailing slash.
|
||||
cloudflared_tunnel_name:
|
||||
type: raw
|
||||
description:
|
||||
- >-
|
||||
Name given to the tunnel. The role default is the Jinja expression C(<inventory_hostname>-tunnel).
|
||||
cloudflared_account_id:
|
||||
type: raw
|
||||
description:
|
||||
- Cloudflare account id used in the tunnel API URL. No role default; asserted non-empty before a mint.
|
||||
cloudflared_tunnel_api_token:
|
||||
type: raw
|
||||
no_log: true
|
||||
description:
|
||||
- >-
|
||||
Cloudflare API token with Cloudflare Tunnel Edit permission, from a vaulted variable. No role default;
|
||||
asserted non-empty before a mint.
|
||||
cloudflared_tunnel_id:
|
||||
type: raw
|
||||
no_log: true
|
||||
description:
|
||||
- >-
|
||||
Existing tunnel id. When defined and non-empty nothing is minted (undefined, null and the empty string
|
||||
count as missing). No role default.
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
galaxy_info:
|
||||
role_name: cloudflared
|
||||
namespace: mortis
|
||||
author: Defame1297
|
||||
license: GPL-3.0-or-later
|
||||
description: Install, update and remove cloudflared for a locally managed Cloudflare Tunnel, with its DNS records, and mint the tunnel on request.
|
||||
min_ansible_version: "2.19"
|
||||
platforms:
|
||||
- name: Ubuntu
|
||||
versions:
|
||||
- noble
|
||||
galaxy_tags:
|
||||
- cloudflared
|
||||
- cloudflare
|
||||
- tunnel
|
||||
- systemd
|
||||
dependencies: []
|
||||
@@ -0,0 +1,38 @@
|
||||
---
|
||||
# Stops the Cloudflare API stub that prepare.yml started on the controller. Also run before
|
||||
# create, when there is nothing to stop yet. The pid is only signalled while it still belongs
|
||||
# to the stub, so a reused pid is never killed.
|
||||
- name: Cleanup
|
||||
hosts: localhost
|
||||
connection: local
|
||||
gather_facts: false
|
||||
vars:
|
||||
cloudflared_test_stub_dir: "{{ lookup('ansible.builtin.env', 'MOLECULE_EPHEMERAL_DIRECTORY') }}/cloudflare-stub"
|
||||
tasks:
|
||||
- name: Read the pid of the stub
|
||||
ansible.builtin.slurp:
|
||||
src: "{{ cloudflared_test_stub_dir }}/pid"
|
||||
register: cloudflared_test_stub_pid
|
||||
failed_when: false
|
||||
|
||||
- name: Read the command line of that pid
|
||||
ansible.builtin.slurp:
|
||||
src: "/proc/{{ cloudflared_test_stub_pid.content | b64decode | trim }}/cmdline"
|
||||
register: cloudflared_test_stub_cmdline
|
||||
# It may have ended at its lifetime already.
|
||||
failed_when: false
|
||||
when: cloudflared_test_stub_pid.content is defined
|
||||
|
||||
- name: Stop the stub
|
||||
ansible.builtin.command:
|
||||
argv: [kill, "{{ cloudflared_test_stub_pid.content | b64decode | trim }}"]
|
||||
failed_when: false
|
||||
changed_when: true
|
||||
when:
|
||||
- cloudflared_test_stub_cmdline.content is defined
|
||||
- "'cloudflare_api_stub.py' in (cloudflared_test_stub_cmdline.content | b64decode)"
|
||||
|
||||
- name: Remove the pid file
|
||||
ansible.builtin.file:
|
||||
path: "{{ cloudflared_test_stub_dir }}/pid"
|
||||
state: absent
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
# Role variables come from the inventory group_vars in molecule.yml. The first run updates the
|
||||
# stub binary from 2026.1.0 to 2026.2.0 through mortis.kamino._binary_update; the idempotence run
|
||||
# finds 2026.2.0 and changes nothing.
|
||||
- name: Converge
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
roles:
|
||||
- role: mortis.kamino.cloudflared
|
||||
@@ -0,0 +1,184 @@
|
||||
"""Stub of the Cloudflare API calls of the cloudflared role, for its molecule scenario.
|
||||
|
||||
Listens on 127.0.0.1 on a free port, writes the port to <state-dir>/port and its pid to
|
||||
<state-dir>/pid, and appends one JSON line per request (method, path, status; never a secret)
|
||||
to <state-dir>/requests.log. Exits by itself after --lifetime seconds, so a cancelled run
|
||||
leaves nothing running for long.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import base64
|
||||
import binascii
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import threading
|
||||
import uuid
|
||||
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
|
||||
from urllib.parse import parse_qs, urlsplit
|
||||
|
||||
PREFIX = "/client/v4"
|
||||
TOKEN = "molecule-not-a-token"
|
||||
ACCOUNT = "molecule-account"
|
||||
ZONE_NAME = "example.test"
|
||||
ZONE_ID = "molecule-zone"
|
||||
# Tunnel id -> deleted_at (None while the tunnel exists).
|
||||
TUNNELS = {
|
||||
"6f1a6e2c-0000-4000-8000-000000000001": None,
|
||||
"6f1a6e2c-0000-4000-8000-000000000002": "2026-01-01T00:00:00Z",
|
||||
}
|
||||
RECORDS = [
|
||||
{"name": "taken.example.test", "type": "A", "content": "192.0.2.10"},
|
||||
{
|
||||
"name": "moved.example.test",
|
||||
"type": "CNAME",
|
||||
"content": "6f1a6e2c-0000-4000-8000-000000000009.cfargotunnel.com",
|
||||
},
|
||||
]
|
||||
TUNNEL_PATH = re.compile(r"^/accounts/([^/]+)/cfd_tunnel(?:/([^/]+))?$")
|
||||
RECORDS_PATH = re.compile(r"^/zones/([^/]+)/dns_records$")
|
||||
LOCK = threading.Lock()
|
||||
|
||||
|
||||
class Handler(BaseHTTPRequestHandler):
|
||||
state_dir = "."
|
||||
|
||||
# Quiet: the requests go to requests.log instead of stderr.
|
||||
def log_message(self, *args):
|
||||
pass
|
||||
|
||||
def _send(self, status, result=None, result_info=None):
|
||||
reply = {"success": status == 200, "errors": [], "result": result}
|
||||
if result_info is not None:
|
||||
reply["result_info"] = result_info
|
||||
body = json.dumps(reply).encode()
|
||||
self.send_response(status)
|
||||
self.send_header("Content-Type", "application/json")
|
||||
self.send_header("Content-Length", str(len(body)))
|
||||
self.end_headers()
|
||||
self.wfile.write(body)
|
||||
with (
|
||||
LOCK,
|
||||
open(
|
||||
os.path.join(self.state_dir, "requests.log"), "a", encoding="utf-8"
|
||||
) as log,
|
||||
):
|
||||
log.write(
|
||||
json.dumps(
|
||||
{"method": self.command, "path": self.path, "status": status}
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
|
||||
def _route(self):
|
||||
if self.headers.get("Authorization") != f"Bearer {TOKEN}":
|
||||
return self._send(403)
|
||||
url = urlsplit(self.path)
|
||||
if not url.path.startswith(PREFIX):
|
||||
return self._send(404)
|
||||
path = url.path[len(PREFIX) :]
|
||||
query = {key: values[0] for key, values in parse_qs(url.query).items()}
|
||||
|
||||
match = TUNNEL_PATH.match(path)
|
||||
if match and match.group(1) == ACCOUNT:
|
||||
return self._tunnel(match.group(2))
|
||||
match = RECORDS_PATH.match(path)
|
||||
if self.command == "GET" and match and match.group(1) == ZONE_ID:
|
||||
return self._records(query)
|
||||
if self.command == "GET" and path == "/zones":
|
||||
zones = (
|
||||
[{"id": ZONE_ID, "name": ZONE_NAME}]
|
||||
if query.get("name") == ZONE_NAME
|
||||
else []
|
||||
)
|
||||
return self._send(200, zones)
|
||||
return self._send(404)
|
||||
|
||||
# Filters by name (case-insensitive, as DNS names are), type and content, and pages.
|
||||
def _records(self, query):
|
||||
records = [
|
||||
r
|
||||
for r in RECORDS
|
||||
if ("name" not in query or r["name"].lower() == query["name"].lower())
|
||||
and all(r[k] == query[k] for k in ("type", "content") if k in query)
|
||||
]
|
||||
per_page = int(query.get("per_page", "100"))
|
||||
page = int(query.get("page", "1"))
|
||||
total_pages = max(1, -(-len(records) // per_page))
|
||||
chunk = records[(page - 1) * per_page : page * per_page]
|
||||
info = {
|
||||
"page": page,
|
||||
"per_page": per_page,
|
||||
"total_count": len(records),
|
||||
"total_pages": total_pages,
|
||||
}
|
||||
return self._send(200, chunk, info)
|
||||
|
||||
def _tunnel(self, tunnel_id):
|
||||
if tunnel_id is None and self.command == "POST":
|
||||
return self._create()
|
||||
if tunnel_id not in TUNNELS:
|
||||
return self._send(404)
|
||||
if self.command == "GET":
|
||||
return self._send(200, {"id": tunnel_id, "deleted_at": TUNNELS[tunnel_id]})
|
||||
if self.command == "DELETE":
|
||||
TUNNELS[tunnel_id] = "2026-01-01T00:00:00Z"
|
||||
return self._send(200, {"id": tunnel_id})
|
||||
return self._send(405)
|
||||
|
||||
# Accepts only what the real API needs for a locally managed tunnel: a name, config_src
|
||||
# local and a base64 secret of at least 32 bytes.
|
||||
def _create(self):
|
||||
try:
|
||||
body = json.loads(
|
||||
self.rfile.read(int(self.headers.get("Content-Length", "0")))
|
||||
)
|
||||
secret = base64.b64decode(body["tunnel_secret"], validate=True)
|
||||
except (ValueError, KeyError, TypeError, binascii.Error):
|
||||
return self._send(400)
|
||||
if (
|
||||
not body.get("name")
|
||||
or body.get("config_src") != "local"
|
||||
or len(secret) < 32
|
||||
):
|
||||
return self._send(400)
|
||||
tunnel_id = str(uuid.uuid4())
|
||||
TUNNELS[tunnel_id] = None
|
||||
credentials = {
|
||||
"AccountTag": ACCOUNT,
|
||||
"TunnelID": tunnel_id,
|
||||
"TunnelName": body["name"],
|
||||
"TunnelSecret": body["tunnel_secret"],
|
||||
}
|
||||
return self._send(
|
||||
200,
|
||||
{"id": tunnel_id, "name": body["name"], "credentials_file": credentials},
|
||||
)
|
||||
|
||||
do_GET = _route
|
||||
do_POST = _route
|
||||
do_DELETE = _route
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--state-dir", required=True)
|
||||
parser.add_argument("--lifetime", type=int, default=1500)
|
||||
args = parser.parse_args()
|
||||
|
||||
os.makedirs(args.state_dir, exist_ok=True)
|
||||
Handler.state_dir = args.state_dir
|
||||
server = ThreadingHTTPServer(("127.0.0.1", 0), Handler)
|
||||
for name, value in (("pid", os.getpid()), ("port", server.server_address[1])):
|
||||
tmp = os.path.join(args.state_dir, name + ".tmp")
|
||||
with open(tmp, "w", encoding="utf-8") as handle:
|
||||
handle.write(f"{value}\n")
|
||||
os.replace(tmp, os.path.join(args.state_dir, name))
|
||||
timer = threading.Timer(args.lifetime, server.shutdown)
|
||||
timer.daemon = True
|
||||
timer.start()
|
||||
server.serve_forever()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,48 @@
|
||||
---
|
||||
# Run by verify.yml in a child ansible-playbook process, because the mint guard reads the
|
||||
# controller's environment (lookup env), which a play cannot change; the child gets its
|
||||
# environment from the task that starts it, so the result does not depend on what the runner
|
||||
# exports. The child uses `-i localhost,` and so does not see the molecule group_vars: verify.yml
|
||||
# passes the inputs with -e, and cloudflared_test_expect_minted says what to assert afterwards.
|
||||
- name: Mint with a controlled environment
|
||||
hosts: localhost
|
||||
connection: local
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Run the mint entry point
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.cloudflared
|
||||
tasks_from: mint
|
||||
vars:
|
||||
cloudflared_mint_confirm: true
|
||||
|
||||
- name: No tunnel fact was registered
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- cloudflared_minted_tunnel_id is not defined
|
||||
- cloudflared_minted_credentials_json is not defined
|
||||
quiet: true
|
||||
when: not (cloudflared_test_expect_minted | default(false) | bool)
|
||||
|
||||
- name: Parse the minted credentials
|
||||
ansible.builtin.set_fact:
|
||||
cloudflared_test_minted: "{{ cloudflared_minted_credentials_json | from_json }}"
|
||||
no_log: true
|
||||
when: cloudflared_test_expect_minted | default(false) | bool
|
||||
|
||||
# The stub accepted the secret only as base64 of at least 32 bytes; 32 bytes are 44
|
||||
# characters. The secret and the API response must not stay in the host's variables.
|
||||
- name: The tunnel facts were registered and the intermediates cleared
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- cloudflared_minted_tunnel_id is match('^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$')
|
||||
- cloudflared_test_minted.TunnelID == cloudflared_minted_tunnel_id
|
||||
- cloudflared_test_minted.AccountTag == cloudflared_account_id
|
||||
- cloudflared_test_minted.TunnelName == cloudflared_tunnel_name
|
||||
- cloudflared_test_minted.TunnelSecret | length == 44
|
||||
- __cloudflared_tunnel_secret == ""
|
||||
- __cloudflared_tunnel_create == ""
|
||||
fail_msg: The minted tunnel facts are missing or wrong, or an intermediate was kept
|
||||
quiet: true
|
||||
no_log: true
|
||||
when: cloudflared_test_expect_minted | default(false) | bool
|
||||
@@ -0,0 +1,87 @@
|
||||
---
|
||||
# Runs on the repository's own runner (label kamino-molecule), in the molecule-ubuntu2404 image
|
||||
# (MOLECULE_IMAGE, the pin in .gitea/workflows/molecule.yml). No Cloudflare and no real
|
||||
# cloudflared: prepare.yml starts a stub of the Cloudflare API on the controller's loopback
|
||||
# (files/cloudflare_api_stub.py, reached through cloudflared_api_base_url; cleanup.yml stops it)
|
||||
# and seeds a stub cloudflared binary that reports an older version, so the update downloads its
|
||||
# new stub from local file:// URLs. The scenario downloads nothing. cloudflared_manage_dns is
|
||||
# false here because community.general.cloudflare_dns cannot be pointed at the stub; the DNS
|
||||
# guards in front of it are run with it true in verify.yml.
|
||||
# The container runs systemd as PID 1 with a writable cgroup; no privileged mode.
|
||||
driver:
|
||||
name: docker
|
||||
platforms:
|
||||
- name: cloudflared-instance
|
||||
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
|
||||
provisioner:
|
||||
name: ansible
|
||||
# One source for every play, so a verify play that runs the role again renders the same
|
||||
# configuration.
|
||||
inventory:
|
||||
group_vars:
|
||||
all:
|
||||
# The stub binary; @VERSION@ is replaced per release file. Its hash is the configured
|
||||
# sha256, so the release files need no checksum file.
|
||||
cloudflared_test_stub: |
|
||||
#!/bin/sh
|
||||
case "$$1" in
|
||||
--version) echo "cloudflared version @VERSION@ (built 2026-01-01-0000 UTC)" ;;
|
||||
tunnel)
|
||||
[ "$$2" = --config ] || { echo "stub cloudflared: expected --config" >&2; exit 2; }
|
||||
case "$$4" in
|
||||
ingress) grep -q 'service: http_status:404' "$$3" && { echo "Validating rules from $$3"; exit 0; } ;;
|
||||
run) [ -r "$$3" ] && exec sleep infinity ;;
|
||||
esac
|
||||
echo "stub cloudflared: cannot handle: $$*" >&2; exit 1 ;;
|
||||
*) echo "stub cloudflared: unexpected arguments: $$*" >&2; exit 2 ;;
|
||||
esac
|
||||
cloudflared_test_stub_dir: "{{ lookup('ansible.builtin.env', 'MOLECULE_EPHEMERAL_DIRECTORY') }}/cloudflare-stub"
|
||||
cloudflared_test_tunnel_id: 6f1a6e2c-0000-4000-8000-000000000001
|
||||
cloudflared_test_credentials_json: >-
|
||||
{"AccountTag": "molecule-account", "TunnelID": "6f1a6e2c-0000-4000-8000-000000000001", "TunnelSecret": "bW9sZWN1bGU="}
|
||||
cloudflared_version: "2026.2.0"
|
||||
cloudflared_sha256_amd64: "{{ cloudflared_test_stub | replace('@VERSION@', cloudflared_version) | hash('sha256') }}"
|
||||
cloudflared_download_url: "file:///opt/molecule-download/cloudflared-{{ cloudflared_version }}"
|
||||
cloudflared_api_base_url: >-
|
||||
http://127.0.0.1:{{ lookup('ansible.builtin.file', cloudflared_test_stub_dir ~ '/port') }}/client/v4
|
||||
cloudflared_account_id: molecule-account
|
||||
cloudflared_tunnel_api_token: molecule-not-a-token
|
||||
cloudflared_tunnel_id: "{{ cloudflared_test_tunnel_id }}"
|
||||
cloudflared_credentials_json: "{{ cloudflared_test_credentials_json }}"
|
||||
cloudflared_manage_dns: false
|
||||
cloudflared_ingress: "{{ cloudflared_test_ingress }}"
|
||||
cloudflared_test_ingress:
|
||||
- hostname: app.example.test
|
||||
service: https://127.0.0.1:443
|
||||
originRequest:
|
||||
originServerName: app.example.test
|
||||
- hostname: other.example.test
|
||||
service: http://127.0.0.1:8080
|
||||
verifier:
|
||||
name: ansible
|
||||
scenario:
|
||||
# molecule's default sequence minus both destroys: the workflow removes the container before the
|
||||
# run and as soon as this scenario ends; molecule's destroy only adds the driver's poll wait.
|
||||
# After a local run, run `molecule destroy` yourself.
|
||||
test_sequence:
|
||||
- dependency
|
||||
- cleanup
|
||||
- syntax
|
||||
- create
|
||||
- prepare
|
||||
- converge
|
||||
- idempotence
|
||||
- side_effect
|
||||
- verify
|
||||
- cleanup
|
||||
@@ -0,0 +1,75 @@
|
||||
---
|
||||
# Stand-ins for what the scenario cannot have: the Cloudflare API (a stub on the controller's
|
||||
# loopback), an installed cloudflared (a stub binary reporting 2026.1.0, so the converge updates
|
||||
# it), and the release files of two newer versions behind file:// URLs. The configured sha256 is
|
||||
# the hash of the stub of the requested version, so 2026.2.0 verifies and 2026.3.0 does only when
|
||||
# a case passes its hash. A stale tunnel credentials file and an unrelated JSON file are seeded
|
||||
# in the config directory: configure must remove the first and keep the second.
|
||||
- name: Prepare
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Remove the state of an earlier stub run
|
||||
delegate_to: localhost
|
||||
run_once: true
|
||||
ansible.builtin.file:
|
||||
path: "{{ cloudflared_test_stub_dir }}"
|
||||
state: absent
|
||||
|
||||
# Runs in the background until cleanup.yml stops it, or until its lifetime, kept below the
|
||||
# workflow's 30-minute job timeout, runs out.
|
||||
- name: Start the Cloudflare API stub on the controller
|
||||
delegate_to: localhost
|
||||
run_once: true
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- "{{ ansible_playbook_python }}"
|
||||
- -I
|
||||
- "{{ playbook_dir }}/files/cloudflare_api_stub.py"
|
||||
- --state-dir
|
||||
- "{{ cloudflared_test_stub_dir }}"
|
||||
- --lifetime
|
||||
- "1500"
|
||||
async: 1500
|
||||
poll: 0
|
||||
changed_when: true
|
||||
|
||||
- name: Wait for the stub to listen
|
||||
delegate_to: localhost
|
||||
run_once: true
|
||||
ansible.builtin.wait_for:
|
||||
path: "{{ cloudflared_test_stub_dir }}/port"
|
||||
timeout: 30
|
||||
|
||||
- name: Create the download and config directories
|
||||
ansible.builtin.file:
|
||||
path: "{{ cloudflared_test_dir }}"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
loop: [/opt/molecule-download, /etc/cloudflared]
|
||||
loop_control:
|
||||
loop_var: cloudflared_test_dir
|
||||
|
||||
- name: Write the installed stub binary and the release files
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ cloudflared_test_release.dest }}"
|
||||
mode: "0755"
|
||||
content: "{{ cloudflared_test_stub | replace('@VERSION@', cloudflared_test_release.version) }}"
|
||||
loop:
|
||||
- {dest: /usr/local/bin/cloudflared, version: 2026.1.0}
|
||||
- {dest: /opt/molecule-download/cloudflared-2026.2.0, version: 2026.2.0}
|
||||
- {dest: /opt/molecule-download/cloudflared-2026.3.0, version: 2026.3.0}
|
||||
loop_control:
|
||||
loop_var: cloudflared_test_release
|
||||
label: "{{ cloudflared_test_release.dest }}"
|
||||
|
||||
- name: Seed a stale credentials file and an unrelated JSON file
|
||||
ansible.builtin.copy:
|
||||
dest: "/etc/cloudflared/{{ cloudflared_test_seed }}"
|
||||
mode: "0600"
|
||||
content: "{}\n"
|
||||
loop:
|
||||
- 6f1a6e2c-0000-4000-8000-000000000000.json
|
||||
- notes.json
|
||||
loop_control:
|
||||
loop_var: cloudflared_test_seed
|
||||
@@ -0,0 +1,42 @@
|
||||
---
|
||||
# One failing run: runs the main entry point with the inputs of the case and asserts that the
|
||||
# expected message, not something else, stopped it. Input: cloudflared_test_case (name, vars,
|
||||
# expect). Task vars cannot come from a template as a whole, so each input a case may change is
|
||||
# passed with its scenario value as the default.
|
||||
- name: "Run the role, case {{ cloudflared_test_case.name }}"
|
||||
block:
|
||||
- name: "Include the role, case {{ cloudflared_test_case.name }}"
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.cloudflared
|
||||
vars:
|
||||
cloudflared_version: "{{ cloudflared_test_case.vars.cloudflared_version | default('2026.2.0') }}"
|
||||
cloudflared_sha256_amd64: >-
|
||||
{{ cloudflared_test_case.vars.cloudflared_sha256_amd64
|
||||
| default(cloudflared_test_stub | replace('@VERSION@', '2026.2.0') | hash('sha256')) }}
|
||||
cloudflared_tunnel_id: "{{ cloudflared_test_case.vars.cloudflared_tunnel_id | default(cloudflared_test_tunnel_id) }}"
|
||||
cloudflared_credentials_json: "{{ cloudflared_test_case.vars.cloudflared_credentials_json | default(cloudflared_test_credentials_json) }}"
|
||||
cloudflared_account_id: "{{ cloudflared_test_case.vars.cloudflared_account_id | default('molecule-account') }}"
|
||||
cloudflared_tunnel_api_token: "{{ cloudflared_test_case.vars.cloudflared_tunnel_api_token | default('molecule-not-a-token') }}"
|
||||
cloudflared_manage_dns: "{{ cloudflared_test_case.vars.cloudflared_manage_dns | default(false) }}"
|
||||
cloudflared_zone_name: "{{ cloudflared_test_case.vars.cloudflared_zone_name | default('') }}"
|
||||
cloudflared_ingress: "{{ cloudflared_test_case.vars.cloudflared_ingress | default(cloudflared_test_ingress) }}"
|
||||
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') }}"
|
||||
|
||||
# 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 {{ cloudflared_test_case.name }}"
|
||||
ansible.builtin.fail:
|
||||
msg: The role accepted the input
|
||||
rescue:
|
||||
# A failed loop task reports its message per item.
|
||||
- name: "The expected failure stopped the run, case {{ cloudflared_test_case.name }}"
|
||||
vars:
|
||||
cloudflared_test_messages: >-
|
||||
{{ (ansible_failed_result.msg | default('')) ~ ' '
|
||||
~ (ansible_failed_result.results | default([]) | map(attribute='msg', default='') | join(' ')) }}
|
||||
ansible.builtin.assert:
|
||||
that: cloudflared_test_case.expect in cloudflared_test_messages
|
||||
fail_msg: "Expected '{{ cloudflared_test_case.expect }}', got: {{ cloudflared_test_messages }}"
|
||||
quiet: true
|
||||
@@ -0,0 +1,407 @@
|
||||
---
|
||||
- name: Verify the converged daemon
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Read config.yml
|
||||
ansible.builtin.slurp:
|
||||
src: /etc/cloudflared/config.yml
|
||||
register: cloudflared_test_config_raw
|
||||
|
||||
- name: Parse config.yml
|
||||
ansible.builtin.set_fact:
|
||||
cloudflared_test_config: "{{ cloudflared_test_config_raw.content | b64decode | from_yaml }}"
|
||||
|
||||
- name: Config.yml routes the ingress hostnames and ends with the catch-all
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- cloudflared_test_config.tunnel == cloudflared_test_tunnel_id
|
||||
- cloudflared_test_config['credentials-file'] == '/etc/cloudflared/' ~ cloudflared_test_tunnel_id ~ '.json'
|
||||
- cloudflared_test_config.ingress | length == 3
|
||||
- cloudflared_test_config.ingress[0].hostname == 'app.example.test'
|
||||
- cloudflared_test_config.ingress[0].service == 'https://127.0.0.1:443'
|
||||
- "cloudflared_test_config.ingress[0].originRequest == {'originServerName': 'app.example.test'}"
|
||||
- cloudflared_test_config.ingress[1].hostname == 'other.example.test'
|
||||
- cloudflared_test_config.ingress[1].originRequest is not defined
|
||||
- "cloudflared_test_config.ingress[2] == {'service': 'http_status:404'}"
|
||||
quiet: true
|
||||
|
||||
- name: Read the credentials file
|
||||
ansible.builtin.slurp:
|
||||
src: "/etc/cloudflared/{{ cloudflared_test_tunnel_id }}.json"
|
||||
register: cloudflared_test_credentials
|
||||
no_log: true
|
||||
|
||||
- name: Stat the configuration, the seeded files and what an update leaves behind
|
||||
ansible.builtin.stat:
|
||||
path: "{{ cloudflared_test_path }}"
|
||||
loop:
|
||||
- /etc/cloudflared/config.yml
|
||||
- "/etc/cloudflared/{{ cloudflared_test_tunnel_id }}.json"
|
||||
- /etc/cloudflared/6f1a6e2c-0000-4000-8000-000000000000.json
|
||||
- /etc/cloudflared/notes.json
|
||||
- /usr/local/bin/cloudflared.new
|
||||
- /usr/local/bin/cloudflared.bak
|
||||
loop_control:
|
||||
loop_var: cloudflared_test_path
|
||||
register: cloudflared_test_files
|
||||
|
||||
- name: The files are private to the daemon, the stale credentials are gone and the update left nothing behind
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- cloudflared_test_files.results[0].stat.mode == '0640'
|
||||
- cloudflared_test_files.results[0].stat.pw_name == 'cloudflared'
|
||||
- cloudflared_test_files.results[1].stat.mode == '0600'
|
||||
- cloudflared_test_files.results[1].stat.pw_name == 'cloudflared'
|
||||
- (cloudflared_test_credentials.content | b64decode | from_json) == (cloudflared_test_credentials_json | from_json)
|
||||
- not cloudflared_test_files.results[2].stat.exists
|
||||
- cloudflared_test_files.results[3].stat.exists
|
||||
- not cloudflared_test_files.results[4].stat.exists
|
||||
- not cloudflared_test_files.results[5].stat.exists
|
||||
quiet: true
|
||||
|
||||
- name: Ask the installed binary for its version
|
||||
ansible.builtin.command:
|
||||
argv: [/usr/local/bin/cloudflared, --version]
|
||||
register: cloudflared_test_version
|
||||
changed_when: false
|
||||
|
||||
- name: Ask systemd about the daemon
|
||||
ansible.builtin.systemd:
|
||||
name: cloudflared
|
||||
register: cloudflared_test_unit
|
||||
|
||||
# The stub's `run` only keeps running when it can read the config it was given, so an active
|
||||
# unit shows the service user reads config.yml.
|
||||
- name: Stat the daemon's process
|
||||
ansible.builtin.stat:
|
||||
path: "/proc/{{ cloudflared_test_unit.status.MainPID }}"
|
||||
register: cloudflared_test_process
|
||||
|
||||
- name: The updated daemon runs as the service user with the rendered config
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'2026.2.0' in cloudflared_test_version.stdout"
|
||||
- cloudflared_test_unit.status.ActiveState == 'active'
|
||||
- cloudflared_test_unit.status.UnitFileState == 'enabled'
|
||||
- cloudflared_test_unit.status.ExecStart is search('--config /etc/cloudflared/config.yml run')
|
||||
- cloudflared_test_process.stat.exists
|
||||
- cloudflared_test_process.stat.pw_name == 'cloudflared'
|
||||
quiet: true
|
||||
|
||||
# cloudflared_manage_dns is false in the converge: the tunnel was checked, no DNS call made.
|
||||
- name: Read the requests the API stub received
|
||||
delegate_to: localhost
|
||||
ansible.builtin.slurp:
|
||||
src: "{{ cloudflared_test_stub_dir }}/requests.log"
|
||||
register: cloudflared_test_requests
|
||||
|
||||
- name: The converge checked the tunnel and made no DNS call
|
||||
vars:
|
||||
cloudflared_test_log: "{{ cloudflared_test_requests.content | b64decode }}"
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- >-
|
||||
cloudflared_test_log is search('"GET", "path": "/client/v4/accounts/molecule-account/cfd_tunnel/'
|
||||
~ cloudflared_test_tunnel_id ~ '"')
|
||||
- cloudflared_test_log is not search('/zones')
|
||||
quiet: true
|
||||
|
||||
# Every case fails, before any change or at a guard ahead of the first change; the last play
|
||||
# checks that the daemon was left as the converge set it up.
|
||||
- name: Verify the failure paths
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Checksum config.yml and the binary before the failure cases
|
||||
ansible.builtin.stat:
|
||||
path: "{{ cloudflared_test_path }}"
|
||||
checksum_algorithm: sha256
|
||||
loop: [/etc/cloudflared/config.yml, /usr/local/bin/cloudflared]
|
||||
loop_control:
|
||||
loop_var: cloudflared_test_path
|
||||
register: cloudflared_test_before
|
||||
|
||||
- name: Ask systemd about the daemon before the failure cases
|
||||
ansible.builtin.systemd:
|
||||
name: cloudflared
|
||||
register: cloudflared_test_unit_before
|
||||
|
||||
- name: Run each case
|
||||
ansible.builtin.include_tasks: tasks/failed_run.yml
|
||||
loop:
|
||||
- name: version-with-v
|
||||
vars: {cloudflared_version: v2026.2.0}
|
||||
expect: must be a release tag
|
||||
- name: sha256-not-hex
|
||||
vars: {cloudflared_sha256_amd64: not-a-hash}
|
||||
expect: must be the 64-digit hex sha256
|
||||
- name: ingress-without-service
|
||||
vars: {cloudflared_ingress: [{hostname: app.example.test}]}
|
||||
expect: each with hostname and service
|
||||
- name: hostname-uppercase
|
||||
vars: {cloudflared_ingress: [{hostname: App.example.test, service: "http://127.0.0.1:8080"}]}
|
||||
expect: must be lowercase letters
|
||||
- name: hostname-whitespace
|
||||
vars: {cloudflared_ingress: [{hostname: "app.example.test\n - service: x", service: "http://127.0.0.1:8080"}]}
|
||||
expect: must be lowercase letters
|
||||
- name: user-with-percent
|
||||
vars: {cloudflared_user: "cloud%flared"}
|
||||
expect: must not contain a newline or %
|
||||
- name: config-dir-with-newline
|
||||
vars: {cloudflared_config_dir: "/etc/cloudflared\nExecStartPre=/bin/false"}
|
||||
expect: must not contain a newline or %
|
||||
- name: install-dir-relative
|
||||
vars: {cloudflared_install_dir: usr/local/bin}
|
||||
expect: the two directories must be absolute paths
|
||||
- name: tunnel-id-not-uuid
|
||||
vars: {cloudflared_tunnel_id: not-a-uuid}
|
||||
expect: must be a lowercase UUID
|
||||
- name: tunnel-not-minted
|
||||
vars: {cloudflared_tunnel_id: ""}
|
||||
expect: run the mint entry point first
|
||||
- name: credentials-not-minted
|
||||
vars: {cloudflared_credentials_json: ""}
|
||||
expect: run the mint entry point first
|
||||
- name: account-missing
|
||||
vars: {cloudflared_account_id: ""}
|
||||
expect: cloudflared_account_id and cloudflared_tunnel_api_token (vaulted) have no role default
|
||||
- name: zone-missing
|
||||
vars: {cloudflared_manage_dns: true}
|
||||
expect: cloudflared_manage_dns is true, so cloudflared_zone_name
|
||||
- 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.
|
||||
- name: tunnel-unknown
|
||||
vars: {cloudflared_tunnel_id: 6f1a6e2c-0000-4000-8000-00000000000f}
|
||||
expect: (HTTP 404)
|
||||
# The stub answers 403 to any other token.
|
||||
- name: token-refused
|
||||
vars: {cloudflared_tunnel_api_token: molecule-wrong-token}
|
||||
expect: The Cloudflare tunnel lookup failed (HTTP 403)
|
||||
- name: zone-unknown
|
||||
vars: {cloudflared_manage_dns: true, cloudflared_zone_name: missing.example.test}
|
||||
expect: No Cloudflare zone found named missing.example.test
|
||||
- name: record-owned-by-something-else
|
||||
vars:
|
||||
cloudflared_manage_dns: true
|
||||
cloudflared_zone_name: example.test
|
||||
cloudflared_ingress: [{hostname: taken.example.test, service: "http://127.0.0.1:8080"}]
|
||||
expect: do not point at a Cloudflare Tunnel
|
||||
# The configured hash is the installed binary's, so the version was bumped without it.
|
||||
- name: stale-sha256
|
||||
vars:
|
||||
cloudflared_version: 2026.3.0
|
||||
cloudflared_sha256_amd64: "{{ cloudflared_test_stub | replace('@VERSION@', '2026.2.0') | hash('sha256') }}"
|
||||
expect: The hash is stale
|
||||
- name: checksum-mismatch
|
||||
vars: {cloudflared_version: 2026.3.0, cloudflared_sha256_amd64: "{{ 'f' * 64 }}"}
|
||||
expect: cloudflared was not stopped and still runs 2026.2.0
|
||||
loop_control:
|
||||
loop_var: cloudflared_test_case
|
||||
label: "{{ cloudflared_test_case.name }}"
|
||||
|
||||
- name: Checksum config.yml and the binary after the failure cases
|
||||
ansible.builtin.stat:
|
||||
path: "{{ cloudflared_test_path }}"
|
||||
checksum_algorithm: sha256
|
||||
loop: [/etc/cloudflared/config.yml, /usr/local/bin/cloudflared]
|
||||
loop_control:
|
||||
loop_var: cloudflared_test_path
|
||||
register: cloudflared_test_after
|
||||
|
||||
- name: Stat the staged binary
|
||||
ansible.builtin.stat:
|
||||
path: /usr/local/bin/cloudflared.new
|
||||
register: cloudflared_test_staged
|
||||
|
||||
- name: Ask systemd about the daemon after the failure cases
|
||||
ansible.builtin.systemd:
|
||||
name: cloudflared
|
||||
register: cloudflared_test_unit_after
|
||||
|
||||
- name: The failures changed nothing and the daemon still runs
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- cloudflared_test_after.results | map(attribute='stat.checksum') | list == cloudflared_test_before.results | map(attribute='stat.checksum') | list
|
||||
- not cloudflared_test_staged.stat.exists
|
||||
- cloudflared_test_unit_after.status.ActiveState == 'active'
|
||||
# not restarted, not even by the failed update
|
||||
- cloudflared_test_unit_after.status.MainPID == cloudflared_test_unit_before.status.MainPID
|
||||
quiet: true
|
||||
|
||||
# The mint entry point. The molecule job runs with CI variables set, so every mint that should
|
||||
# get past the CI guard runs as a child process with them blanked (mint.yml).
|
||||
- name: Verify the mint entry point
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
vars:
|
||||
cloudflared_test_mint_inputs:
|
||||
cloudflared_api_base_url: "{{ cloudflared_api_base_url }}"
|
||||
cloudflared_account_id: molecule-account
|
||||
cloudflared_tunnel_api_token: molecule-not-a-token
|
||||
cloudflared_tunnel_name: molecule-tunnel
|
||||
cloudflared_test_no_ci: {GITHUB_ACTIONS: "", GITEA_ACTIONS: "", CI: "", ANSIBLE_NOCOLOR: "1"}
|
||||
tasks:
|
||||
- name: Mint without confirmation
|
||||
block:
|
||||
- name: Include the mint entry point with cloudflared_mint_confirm unset
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.cloudflared
|
||||
tasks_from: mint
|
||||
|
||||
# Only reached when the include returned, so the guard did not fire. The message
|
||||
# must not contain the guard's text, so the rescue below cannot mistake it for it.
|
||||
- name: Fail because the include returned
|
||||
ansible.builtin.fail:
|
||||
msg: The include returned without the confirm guard firing
|
||||
rescue:
|
||||
- name: The confirm guard fired, and nothing else failed first
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "'mint is opt-in' in ansible_failed_result.msg"
|
||||
- "'cloudflared_mint_confirm=true' in ansible_failed_result.msg"
|
||||
quiet: true
|
||||
|
||||
- name: Mint under each CI variable, run as a child process with only that one set
|
||||
delegate_to: localhost
|
||||
run_once: true
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- ansible-playbook
|
||||
- -i
|
||||
- localhost,
|
||||
- "{{ playbook_dir }}/mint.yml"
|
||||
- -e
|
||||
- "{{ cloudflared_test_mint_inputs | to_json }}"
|
||||
environment: "{{ cloudflared_test_no_ci | combine({item: 'true'}) }}"
|
||||
loop: [GITHUB_ACTIONS, GITEA_ACTIONS, CI]
|
||||
register: cloudflared_test_mint_ci
|
||||
# The child is expected to fail (the CI guard fires). Its rc and output are asserted next.
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
|
||||
# Ansible 2.19 prints task failures to stderr, so both streams are checked.
|
||||
- name: The CI guard fired for every variable
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- item.rc != 0
|
||||
- "'refuses to run under CI' in (item.stdout ~ item.stderr)"
|
||||
- "'mint is opt-in' not in (item.stdout ~ item.stderr)"
|
||||
quiet: true
|
||||
loop: "{{ cloudflared_test_mint_ci.results }}"
|
||||
loop_control:
|
||||
label: "{{ item.item }}"
|
||||
|
||||
- name: Run the mint cases outside CI, each as a child process
|
||||
delegate_to: localhost
|
||||
run_once: true
|
||||
ansible.builtin.command:
|
||||
argv: >-
|
||||
{{ ['ansible-playbook', '-i', 'localhost,', playbook_dir ~ '/mint.yml',
|
||||
'-e', cloudflared_test_mint_inputs | combine(item.vars) | to_json]
|
||||
+ item.args | default([]) }}
|
||||
environment: "{{ cloudflared_test_no_ci }}"
|
||||
loop:
|
||||
# A tunnel that is already set is never replaced.
|
||||
- {name: already-set, vars: {cloudflared_tunnel_id: "{{ cloudflared_test_tunnel_id }}"}}
|
||||
- {name: account-missing, vars: {cloudflared_account_id: ""}}
|
||||
# An empty id counts as missing; in check mode the inputs are asserted and nothing is created.
|
||||
- {name: check-mode, vars: {cloudflared_tunnel_id: ""}, args: [--check]}
|
||||
- {name: minted, vars: {cloudflared_test_expect_minted: true}}
|
||||
loop_control:
|
||||
label: "{{ item.name }}"
|
||||
register: cloudflared_test_mint_cases
|
||||
# Some children are expected to fail. Their rc and output are asserted next.
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
|
||||
- name: Read the requests the API stub received
|
||||
delegate_to: localhost
|
||||
ansible.builtin.slurp:
|
||||
src: "{{ cloudflared_test_stub_dir }}/requests.log"
|
||||
register: cloudflared_test_requests
|
||||
|
||||
- name: Each mint case ended as expected, and only the last one created a tunnel
|
||||
vars:
|
||||
cloudflared_test_out: >-
|
||||
{{ cloudflared_test_mint_cases.results | map(attribute='stdout')
|
||||
| zip(cloudflared_test_mint_cases.results | map(attribute='stderr')) | map('join', ' ') | list }}
|
||||
cloudflared_test_rc: "{{ cloudflared_test_mint_cases.results | map(attribute='rc') | list }}"
|
||||
cloudflared_test_posts: >-
|
||||
{{ cloudflared_test_requests.content | b64decode | split('\n')
|
||||
| select('search', '"POST", "path": "/client/v4/accounts/molecule-account/cfd_tunnel"') | list }}
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- cloudflared_test_rc[0] == 0
|
||||
- "'nothing to mint' in cloudflared_test_out[0]"
|
||||
- cloudflared_test_rc[1] != 0
|
||||
- "'must be set and non-empty to mint' in cloudflared_test_out[1]"
|
||||
- cloudflared_test_rc[2] == 0
|
||||
- "'nothing to mint' not in cloudflared_test_out[2]"
|
||||
- cloudflared_test_rc[3] == 0
|
||||
- cloudflared_test_posts | length == 1
|
||||
# Block scalar: the ': ' in the pattern would make a plain scalar a YAML mapping.
|
||||
- >-
|
||||
cloudflared_test_posts[0] is search('"status": 200')
|
||||
fail_msg: "Return codes {{ cloudflared_test_rc }}, outputs: {{ cloudflared_test_out }}"
|
||||
quiet: true
|
||||
|
||||
# The remove path. Last on purpose: it runs once, outside the idempotence step, and nothing runs
|
||||
# after verify except molecule's cleanup. cloudflared_manage_dns stays false, so the removal
|
||||
# deletes the tunnel through the API stub and makes no DNS call.
|
||||
- name: Verify the remove path
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Run the role with the remove flags
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.cloudflared
|
||||
vars:
|
||||
cloudflared_remove: true
|
||||
cloudflared_remove_data: true
|
||||
|
||||
- name: Stat what the removal deletes
|
||||
ansible.builtin.stat:
|
||||
path: "{{ cloudflared_test_path }}"
|
||||
loop:
|
||||
- /etc/systemd/system/cloudflared.service
|
||||
- /usr/local/bin/cloudflared
|
||||
- /etc/cloudflared
|
||||
- /etc/systemd/system/multi-user.target.wants/cloudflared.service
|
||||
loop_control:
|
||||
loop_var: cloudflared_test_path
|
||||
register: cloudflared_test_removed
|
||||
|
||||
- name: Look up the cloudflared user
|
||||
ansible.builtin.getent:
|
||||
database: passwd
|
||||
key: cloudflared
|
||||
fail_key: false
|
||||
register: cloudflared_test_user
|
||||
|
||||
- name: Ask systemd whether the service is still active
|
||||
ansible.builtin.systemd:
|
||||
name: cloudflared
|
||||
register: cloudflared_test_active
|
||||
failed_when: false
|
||||
|
||||
- name: Read the requests the API stub received
|
||||
delegate_to: localhost
|
||||
ansible.builtin.slurp:
|
||||
src: "{{ cloudflared_test_stub_dir }}/requests.log"
|
||||
register: cloudflared_test_requests
|
||||
|
||||
- name: Everything is gone, nothing was recreated, and the tunnel was deleted on Cloudflare
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- cloudflared_test_removed.results | map(attribute='stat') | map(attribute='exists') | select | list | length == 0
|
||||
# prereqs, which create the account, do not run after a removal
|
||||
- cloudflared_test_user.ansible_facts.getent_passwd.cloudflared is none
|
||||
# the module errors for a unit that no longer exists, which is also a pass
|
||||
- (cloudflared_test_active.status | default({})).ActiveState | default('inactive') != 'active'
|
||||
- >-
|
||||
cloudflared_test_requests.content | b64decode is search('"DELETE", "path": "/client/v4/accounts/molecule-account/cfd_tunnel/'
|
||||
~ cloudflared_test_tunnel_id ~ '", "status": 200')
|
||||
quiet: true
|
||||
@@ -0,0 +1,305 @@
|
||||
---
|
||||
# validate.yml has asserted the minted tunnel secrets and the API credentials. The tunnel can
|
||||
# still be gone on Cloudflare's side: cloudflared then loops on "Tunnel not found" while systemd
|
||||
# reports the unit active, so check it first.
|
||||
- name: Install and start cloudflared
|
||||
become: true
|
||||
tags: [cloudflared, configure]
|
||||
block:
|
||||
- name: Verify the tunnel still exists on Cloudflare
|
||||
delegate_to: localhost
|
||||
become: false
|
||||
ansible.builtin.uri:
|
||||
url: "{{ cloudflared_api_base_url }}/accounts/{{ cloudflared_account_id }}/cfd_tunnel/{{ cloudflared_tunnel_id }}"
|
||||
method: GET
|
||||
headers:
|
||||
Authorization: "Bearer {{ cloudflared_tunnel_api_token }}"
|
||||
status_code: [200, 404]
|
||||
register: __cloudflared_tunnel_lookup
|
||||
# Right after a mint a 404 can be read-after-write lag rather than a deletion: retry
|
||||
# briefly before trusting it.
|
||||
until: __cloudflared_tunnel_lookup.status | default(0) == 200
|
||||
retries: 3
|
||||
delay: 5
|
||||
# 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
|
||||
# Read-only GET: runs in --check too, so a deleted tunnel is caught in the preview.
|
||||
check_mode: false
|
||||
# The Authorization header carries the API token.
|
||||
no_log: true
|
||||
tags: [cloudflared, configure, health]
|
||||
|
||||
- name: Fail if the tunnel was deleted on Cloudflare's side
|
||||
ansible.builtin.fail:
|
||||
msg: >-
|
||||
Tunnel {{ cloudflared_tunnel_id }} no longer exists on Cloudflare
|
||||
(HTTP {{ __cloudflared_tunnel_lookup.status }}). Re-mint it: remove the stale
|
||||
cloudflared_tunnel_id and cloudflared_credentials_json from your inventory, run the mint
|
||||
entry point with -e cloudflared_mint_confirm=true, persist the minted values and run the
|
||||
role again. A hostname whose record still points at a cfargotunnel.com tunnel is repointed
|
||||
without a cloudflared_allow_dns_overwrite entry.
|
||||
when: >-
|
||||
__cloudflared_tunnel_lookup.status | default(0) == 404 or
|
||||
((__cloudflared_tunnel_lookup.json | default({})).result | default({})).deleted_at | default(None) is not none
|
||||
tags: [cloudflared, configure, health]
|
||||
|
||||
- name: Fail if the tunnel lookup failed
|
||||
ansible.builtin.fail:
|
||||
msg: >-
|
||||
The Cloudflare tunnel lookup failed (HTTP {{ __cloudflared_tunnel_lookup.status | default('none') }}).
|
||||
Check cloudflared_api_base_url, cloudflared_account_id and that cloudflared_tunnel_api_token has the
|
||||
Cloudflare Tunnel permission.
|
||||
when: __cloudflared_tunnel_lookup is failed
|
||||
tags: [cloudflared, configure, health]
|
||||
|
||||
- name: Manage the tunnel's DNS records
|
||||
when: cloudflared_manage_dns | bool
|
||||
vars:
|
||||
__cloudflared_prune_url: >-
|
||||
{{ cloudflared_api_base_url }}/zones/{{ __cloudflared_zone_lookup.json.result[0].id }}/dns_records?type=CNAME&content={{
|
||||
(cloudflared_tunnel_id ~ '.cfargotunnel.com') | urlencode }}&per_page=100
|
||||
block:
|
||||
- name: Look up Cloudflare zone ID for DNS pruning
|
||||
delegate_to: localhost
|
||||
become: false
|
||||
ansible.builtin.uri:
|
||||
url: "{{ cloudflared_api_base_url }}/zones?name={{ cloudflared_zone_name | urlencode }}"
|
||||
method: GET
|
||||
headers:
|
||||
Authorization: "Bearer {{ cloudflared_tunnel_api_token }}"
|
||||
status_code: [200]
|
||||
register: __cloudflared_zone_lookup
|
||||
# Read-only GET: runs in --check too, so the guards below can report.
|
||||
check_mode: false
|
||||
# The Authorization header carries the API token.
|
||||
no_log: true
|
||||
|
||||
- name: Fail if Cloudflare zone lookup returned no results
|
||||
ansible.builtin.fail:
|
||||
msg: "No Cloudflare zone found named {{ cloudflared_zone_name }}"
|
||||
when: __cloudflared_zone_lookup.json.result | length == 0
|
||||
|
||||
# One query per hostname, filtered by name and not by type, so an existing A or AAAA
|
||||
# record at a hostname is caught too, however many records the zone holds.
|
||||
- name: Look up the existing DNS records of each ingress hostname
|
||||
delegate_to: localhost
|
||||
become: false
|
||||
loop: "{{ cloudflared_ingress }}"
|
||||
loop_control:
|
||||
loop_var: __cloudflared_ingress_item
|
||||
label: "{{ __cloudflared_ingress_item.hostname }}"
|
||||
ansible.builtin.uri:
|
||||
url: >-
|
||||
{{ cloudflared_api_base_url }}/zones/{{ __cloudflared_zone_lookup.json.result[0].id }}/dns_records?name={{
|
||||
__cloudflared_ingress_item.hostname | lower | urlencode }}&per_page=100
|
||||
method: GET
|
||||
headers:
|
||||
Authorization: "Bearer {{ cloudflared_tunnel_api_token }}"
|
||||
status_code: [200]
|
||||
register: __cloudflared_hostname_records
|
||||
# Read-only GET: runs in --check too, so the guard below fails before anything is written.
|
||||
check_mode: false
|
||||
# The Authorization header carries the API token.
|
||||
no_log: true
|
||||
|
||||
# Fail closed: a record that does not point at a Cloudflare Tunnel belongs to something
|
||||
# else and is replaced only with an explicit cloudflared_allow_dns_overwrite entry. A record
|
||||
# that points at some cfargotunnel.com tunnel (this one, or one replaced by a re-mint) is
|
||||
# this role's own and is repointed. Names compare case-insensitively.
|
||||
- name: Fail if an existing record doesn't already point at a tunnel
|
||||
ansible.builtin.fail:
|
||||
msg: >-
|
||||
Existing DNS record(s) for {{ __cloudflared_hostname }}
|
||||
({{ __cloudflared_existing_targets }}) do not point at a Cloudflare
|
||||
Tunnel. Verify manually and add
|
||||
{{ __cloudflared_hostname }} to
|
||||
cloudflared_allow_dns_overwrite to proceed if this is expected.
|
||||
loop: "{{ cloudflared_ingress }}"
|
||||
loop_control:
|
||||
loop_var: __cloudflared_ingress_item
|
||||
index_var: __cloudflared_ingress_index
|
||||
label: "{{ __cloudflared_ingress_item.hostname }}"
|
||||
vars:
|
||||
__cloudflared_hostname: "{{ __cloudflared_ingress_item.hostname | lower }}"
|
||||
__cloudflared_existing_targets: >-
|
||||
{{ __cloudflared_hostname_records.results[__cloudflared_ingress_index].json.result
|
||||
| selectattr('name', 'match', '(?i)^' ~ (__cloudflared_hostname | regex_escape) ~ '$')
|
||||
| map(attribute='content') | map('lower') | map('trim', '.') | list }}
|
||||
when: >-
|
||||
__cloudflared_hostname not in (cloudflared_allow_dns_overwrite | map('lower') | list) and
|
||||
__cloudflared_existing_targets | length > 0 and
|
||||
__cloudflared_existing_targets | select('match', '^.*\.cfargotunnel\.com$') | list | length == 0
|
||||
|
||||
- name: Point public DNS at the tunnel
|
||||
delegate_to: localhost
|
||||
become: false
|
||||
loop: "{{ cloudflared_ingress }}"
|
||||
loop_control:
|
||||
loop_var: __cloudflared_ingress_item
|
||||
label: "{{ __cloudflared_ingress_item.hostname }}"
|
||||
community.general.cloudflare_dns:
|
||||
zone: "{{ cloudflared_zone_name }}"
|
||||
record: "{{ __cloudflared_ingress_item.hostname }}"
|
||||
type: CNAME
|
||||
value: "{{ cloudflared_tunnel_id }}.cfargotunnel.com"
|
||||
proxied: true
|
||||
api_token: "{{ cloudflared_tunnel_api_token }}"
|
||||
state: present
|
||||
# api_token is a module parameter and would show in the task's output.
|
||||
no_log: true
|
||||
|
||||
# Filtered by content=<tunnel id>.cfargotunnel.com, so the prune below only ever sees
|
||||
# CNAMEs of this tunnel, never records of other services or tunnels in the zone. Paged:
|
||||
# the first page says how many there are, the rest are fetched below.
|
||||
- name: List existing DNS records pointing at this tunnel
|
||||
delegate_to: localhost
|
||||
become: false
|
||||
ansible.builtin.uri:
|
||||
url: "{{ __cloudflared_prune_url }}&page=1"
|
||||
method: GET
|
||||
headers:
|
||||
Authorization: "Bearer {{ cloudflared_tunnel_api_token }}"
|
||||
status_code: [200]
|
||||
register: __cloudflared_tunnel_records_first
|
||||
# Read-only GET: runs in --check too, so the prune can report.
|
||||
check_mode: false
|
||||
# The Authorization header carries the API token.
|
||||
no_log: true
|
||||
|
||||
- name: List the further pages of DNS records pointing at this tunnel
|
||||
delegate_to: localhost
|
||||
become: false
|
||||
loop: "{{ range(2, (__cloudflared_tunnel_records_first.json.result_info.total_pages | default(1) | int) + 1) | list }}"
|
||||
loop_control:
|
||||
loop_var: __cloudflared_page
|
||||
ansible.builtin.uri:
|
||||
url: "{{ __cloudflared_prune_url }}&page={{ __cloudflared_page }}"
|
||||
method: GET
|
||||
headers:
|
||||
Authorization: "Bearer {{ cloudflared_tunnel_api_token }}"
|
||||
status_code: [200]
|
||||
register: __cloudflared_tunnel_records_more
|
||||
check_mode: false
|
||||
no_log: true
|
||||
|
||||
- name: Prune DNS records for hostnames no longer in cloudflared_ingress
|
||||
delegate_to: localhost
|
||||
become: false
|
||||
loop: >-
|
||||
{{ __cloudflared_tunnel_records_first.json.result
|
||||
+ (__cloudflared_tunnel_records_more.results | default([]) | map(attribute='json.result') | flatten(levels=1)) }}
|
||||
loop_control:
|
||||
loop_var: __cloudflared_dns_record_item
|
||||
label: "{{ __cloudflared_dns_record_item.name }}"
|
||||
community.general.cloudflare_dns:
|
||||
zone: "{{ cloudflared_zone_name }}"
|
||||
record: "{{ __cloudflared_dns_record_item.name }}"
|
||||
type: CNAME
|
||||
api_token: "{{ cloudflared_tunnel_api_token }}"
|
||||
state: absent
|
||||
when: __cloudflared_dns_record_item.name | lower not in (cloudflared_ingress | map(attribute='hostname') | map('lower') | list)
|
||||
# api_token is a module parameter and would show in the task's output.
|
||||
no_log: true
|
||||
|
||||
- name: Create cloudflared config file
|
||||
ansible.builtin.template:
|
||||
src: config.yml.j2
|
||||
dest: "{{ cloudflared_config_dir }}/config.yml"
|
||||
owner: "{{ cloudflared_user }}"
|
||||
group: "{{ cloudflared_group }}"
|
||||
mode: "0640"
|
||||
# A config cloudflared rejects is never written.
|
||||
validate: "{{ cloudflared_install_dir }}/cloudflared tunnel --config %s ingress validate"
|
||||
notify: Restart cloudflared
|
||||
|
||||
# Also the only check of the existing config under --tags health, where the template above
|
||||
# does not run.
|
||||
- name: Validate cloudflared ingress config
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- "{{ cloudflared_install_dir }}/cloudflared"
|
||||
- tunnel
|
||||
- --config
|
||||
- "{{ cloudflared_config_dir }}/config.yml"
|
||||
- ingress
|
||||
- validate
|
||||
register: __cloudflared_ingress_validate
|
||||
changed_when: false
|
||||
failed_when: __cloudflared_ingress_validate.rc != 0
|
||||
tags: [cloudflared, configure, health]
|
||||
|
||||
- name: Write tunnel credentials file
|
||||
ansible.builtin.copy:
|
||||
content: "{{ cloudflared_credentials_json }}"
|
||||
dest: "{{ cloudflared_config_dir }}/{{ cloudflared_tunnel_id }}.json"
|
||||
owner: "{{ cloudflared_user }}"
|
||||
group: "{{ cloudflared_group }}"
|
||||
mode: "0600"
|
||||
notify: Restart cloudflared
|
||||
# The content is the tunnel credentials JSON.
|
||||
no_log: true
|
||||
diff: false
|
||||
|
||||
# A prior tunnel's credentials file would otherwise stay on disk after a re-mint.
|
||||
- name: Find stale tunnel credentials files
|
||||
ansible.builtin.find:
|
||||
paths: "{{ cloudflared_config_dir }}"
|
||||
# Tunnel ids are UUIDs, so credentials files are <uuid>.json; an unrelated JSON file in
|
||||
# the directory is left alone.
|
||||
patterns: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\.json$"
|
||||
use_regex: true
|
||||
excludes: "{{ cloudflared_tunnel_id }}.json"
|
||||
register: __cloudflared_stale_credentials
|
||||
|
||||
- name: Remove stale tunnel credentials left by a prior tunnel
|
||||
ansible.builtin.file:
|
||||
path: "{{ __cloudflared_stale_credential_item.path }}"
|
||||
state: absent
|
||||
loop: "{{ __cloudflared_stale_credentials.files }}"
|
||||
loop_control:
|
||||
loop_var: __cloudflared_stale_credential_item
|
||||
label: "{{ __cloudflared_stale_credential_item.path }}"
|
||||
|
||||
- name: Create systemd service file for cloudflared
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ cloudflared_service_unit }}"
|
||||
content: |
|
||||
[Unit]
|
||||
Description=Cloudflare Tunnel
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User={{ cloudflared_user }}
|
||||
Group={{ cloudflared_group }}
|
||||
ExecStart={{ cloudflared_install_dir }}/cloudflared tunnel \
|
||||
--config {{ cloudflared_config_dir }}/config.yml run
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
|
||||
- name: Reload systemd daemon
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
|
||||
- name: Enable and start cloudflared
|
||||
ansible.builtin.systemd:
|
||||
name: cloudflared
|
||||
enabled: true
|
||||
state: started
|
||||
|
||||
- name: Check cloudflared service status
|
||||
ansible.builtin.systemd:
|
||||
name: cloudflared
|
||||
register: __cloudflared_service_status
|
||||
tags: [cloudflared, configure, health]
|
||||
|
||||
- name: Fail if cloudflared service is not running
|
||||
ansible.builtin.fail:
|
||||
msg: "cloudflared service is not running"
|
||||
when: __cloudflared_service_status.status.ActiveState != "active"
|
||||
tags: [cloudflared, configure, health]
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
# The one download of the cloudflared binary, shared by install.yml (straight onto the live
|
||||
# path, since nothing runs yet) and update.yml (into a staging path next to it, before
|
||||
# mortis.kamino._binary_update stops the daemon and swaps it in). get_url checks
|
||||
# cloudflared_sha256_amd64 before it moves the file to __cloudflared_download_dest, so a failed or
|
||||
# mismatching download leaves that path as it was.
|
||||
# Tagged install and update: an include does not pass its tags on to the tasks it includes,
|
||||
# so under --tags update a task tagged install only would be skipped.
|
||||
- name: Download and verify the cloudflared binary
|
||||
become: true
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ cloudflared_download_url }}"
|
||||
dest: "{{ __cloudflared_download_dest }}"
|
||||
checksum: "sha256:{{ cloudflared_sha256_amd64 }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
tags: [cloudflared, install, update]
|
||||
@@ -0,0 +1,21 @@
|
||||
---
|
||||
- name: Download and install cloudflared binary
|
||||
ansible.builtin.include_tasks: download.yml
|
||||
vars:
|
||||
__cloudflared_download_dest: "{{ cloudflared_install_dir }}/cloudflared"
|
||||
tags: [cloudflared, install]
|
||||
|
||||
- name: Ensure cloudflared binary exists
|
||||
ansible.builtin.stat:
|
||||
path: "{{ cloudflared_install_dir }}/cloudflared"
|
||||
register: __cloudflared_binary
|
||||
tags: [cloudflared, install, health]
|
||||
|
||||
- name: Fail if cloudflared binary missing
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- __cloudflared_binary.stat.exists
|
||||
fail_msg: "cloudflared binary not found after download"
|
||||
# Nothing is downloaded under --check.
|
||||
when: not ansible_check_mode
|
||||
tags: [cloudflared, install, health]
|
||||
@@ -0,0 +1,32 @@
|
||||
---
|
||||
- name: Validate the role inputs
|
||||
ansible.builtin.import_tasks: validate.yml
|
||||
tags: [cloudflared, always]
|
||||
|
||||
# The removal ends the role: none of the tasks below runs, so a removed daemon is not
|
||||
# installed and configured again in the same run.
|
||||
- name: Remove cloudflared (explicit only)
|
||||
ansible.builtin.include_tasks: remove.yml
|
||||
when: cloudflared_remove | bool
|
||||
tags: [cloudflared, remove]
|
||||
|
||||
- name: Install, configure and update cloudflared
|
||||
when: not (cloudflared_remove | bool)
|
||||
block:
|
||||
- name: Include prerequisites
|
||||
ansible.builtin.include_tasks: prereqs.yml
|
||||
tags: [cloudflared, prereqs, always]
|
||||
|
||||
- name: Install cloudflared if missing
|
||||
ansible.builtin.include_tasks: install.yml
|
||||
when: not __cloudflared_installed
|
||||
tags: [cloudflared, install]
|
||||
|
||||
- name: Configure cloudflared
|
||||
ansible.builtin.include_tasks: configure.yml
|
||||
tags: [cloudflared, configure, health]
|
||||
|
||||
- name: Ensure cloudflared is up-to-date
|
||||
ansible.builtin.include_tasks: update.yml
|
||||
when: cloudflared_update | bool
|
||||
tags: [cloudflared, update]
|
||||
@@ -0,0 +1,95 @@
|
||||
---
|
||||
# Opt-in entry point (tasks_from: mint): creates the Cloudflare Tunnel through the Cloudflare
|
||||
# API from the controller (no `cloudflared tunnel login`, no browser) and registers its id and
|
||||
# credentials as the no_log facts cloudflared_minted_tunnel_id and
|
||||
# cloudflared_minted_credentials_json. The tunnel secret exists only in memory. Persisting the
|
||||
# facts (for example vault-encrypted into inventory as cloudflared_tunnel_id and
|
||||
# cloudflared_credentials_json) is the calling play's job; this role writes no file.
|
||||
- name: Require explicit opt-in for the cloudflared mint
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- cloudflared_mint_confirm | bool
|
||||
fail_msg: "cloudflared mint is opt-in: pass -e cloudflared_mint_confirm=true"
|
||||
quiet: true
|
||||
tags: [cloudflared, always]
|
||||
|
||||
- name: Refuse to mint under CI
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- lookup('ansible.builtin.env', 'GITHUB_ACTIONS') | length == 0
|
||||
- lookup('ansible.builtin.env', 'GITEA_ACTIONS') | length == 0
|
||||
- lookup('ansible.builtin.env', 'CI') | length == 0
|
||||
fail_msg: "cloudflared mint refuses to run under CI: run the mint play by hand"
|
||||
quiet: true
|
||||
tags: [cloudflared, always]
|
||||
|
||||
# Defined and empty (or null) counts as missing: the main entry point asserts a non-empty id, so
|
||||
# skipping the mint on an empty one would deadlock. A tunnel that is already set is never
|
||||
# replaced, so a re-run is safe.
|
||||
- name: Skip the cloudflared mint when the tunnel is already set
|
||||
ansible.builtin.debug:
|
||||
msg: "cloudflared_tunnel_id is already set for {{ inventory_hostname }}; nothing to mint."
|
||||
when: (cloudflared_tunnel_id | default('', true) | string | length) > 0
|
||||
tags: [cloudflared, mint]
|
||||
|
||||
# Before anything is created, and in --check too.
|
||||
- name: Require the mint inputs
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- cloudflared_account_id | default('', true) | string | length > 0
|
||||
- cloudflared_tunnel_api_token | default('', true) | string | length > 0
|
||||
- cloudflared_tunnel_name | default('', true) | string | length > 0
|
||||
fail_msg: >-
|
||||
cloudflared_account_id, cloudflared_tunnel_api_token (vaulted) and cloudflared_tunnel_name must be set
|
||||
and non-empty to mint a tunnel.
|
||||
quiet: true
|
||||
when: (cloudflared_tunnel_id | default('', true) | string | length) == 0
|
||||
tags: [cloudflared, always]
|
||||
|
||||
# uri makes its request even under --check, so the block is skipped there: a preview must never
|
||||
# create a tunnel.
|
||||
- name: Mint Cloudflare Tunnel via API
|
||||
when: (cloudflared_tunnel_id | default('', true) | string | length) == 0 and not ansible_check_mode
|
||||
delegate_to: localhost
|
||||
become: false
|
||||
tags: [cloudflared, mint]
|
||||
block:
|
||||
- name: Generate tunnel secret
|
||||
ansible.builtin.command:
|
||||
argv: [openssl, rand, -base64, "32"]
|
||||
register: __cloudflared_tunnel_secret
|
||||
changed_when: false
|
||||
no_log: true
|
||||
|
||||
- name: Create Cloudflare Tunnel via API
|
||||
ansible.builtin.uri:
|
||||
url: "{{ cloudflared_api_base_url }}/accounts/{{ cloudflared_account_id }}/cfd_tunnel"
|
||||
method: POST
|
||||
headers:
|
||||
Authorization: "Bearer {{ cloudflared_tunnel_api_token }}"
|
||||
Content-Type: "application/json"
|
||||
body_format: json
|
||||
body:
|
||||
name: "{{ cloudflared_tunnel_name }}"
|
||||
tunnel_secret: "{{ __cloudflared_tunnel_secret.stdout | trim }}"
|
||||
config_src: "local"
|
||||
status_code: [200]
|
||||
register: __cloudflared_tunnel_create
|
||||
changed_when: true
|
||||
no_log: true
|
||||
|
||||
# Not cloudflared_tunnel_id itself: the block's `when` is re-evaluated per task and reads it,
|
||||
# so setting it here would skip every task after this one. Not cacheable and never printed.
|
||||
- name: Register the minted tunnel facts
|
||||
ansible.builtin.set_fact:
|
||||
cloudflared_minted_tunnel_id: "{{ __cloudflared_tunnel_create.json.result.id }}"
|
||||
cloudflared_minted_credentials_json: "{{ __cloudflared_tunnel_create.json.result.credentials_file | to_json }}"
|
||||
no_log: true
|
||||
|
||||
# The raw secret and the API response (its credentials_file holds the TunnelSecret) would
|
||||
# otherwise stay in the host's vars for the rest of the play; only the minted facts are kept.
|
||||
- name: Clear the tunnel secret intermediates
|
||||
ansible.builtin.set_fact:
|
||||
__cloudflared_tunnel_secret: ""
|
||||
__cloudflared_tunnel_create: ""
|
||||
no_log: true
|
||||
@@ -0,0 +1,39 @@
|
||||
---
|
||||
- name: Create cloudflared group
|
||||
become: true
|
||||
ansible.builtin.group:
|
||||
name: "{{ cloudflared_group }}"
|
||||
system: true
|
||||
tags: [cloudflared, prereqs, always]
|
||||
|
||||
- name: Create cloudflared user
|
||||
become: true
|
||||
ansible.builtin.user:
|
||||
name: "{{ cloudflared_user }}"
|
||||
group: "{{ cloudflared_group }}"
|
||||
shell: /usr/sbin/nologin
|
||||
comment: "Cloudflare Tunnel daemon"
|
||||
system: true
|
||||
create_home: false
|
||||
tags: [cloudflared, prereqs, always]
|
||||
|
||||
- name: Create cloudflared config directory
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: "{{ cloudflared_config_dir }}"
|
||||
state: directory
|
||||
owner: "{{ cloudflared_user }}"
|
||||
group: "{{ cloudflared_group }}"
|
||||
mode: "0750"
|
||||
tags: [cloudflared, prereqs, always]
|
||||
|
||||
- name: Check if cloudflared binary exists
|
||||
ansible.builtin.stat:
|
||||
path: "{{ cloudflared_install_dir }}/cloudflared"
|
||||
register: __cloudflared_binary
|
||||
tags: [cloudflared, prereqs, always]
|
||||
|
||||
- name: Set cloudflared facts
|
||||
ansible.builtin.set_fact:
|
||||
__cloudflared_installed: "{{ __cloudflared_binary.stat.exists }}"
|
||||
tags: [cloudflared, prereqs, always]
|
||||
@@ -0,0 +1,88 @@
|
||||
---
|
||||
# Run with -e cloudflared_remove=true (and cloudflared_remove_data=true to delete the
|
||||
# configuration, the user, and the tunnel and its DNS records on Cloudflare too). The role ends
|
||||
# after these tasks.
|
||||
- name: Stop cloudflared service
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
name: cloudflared
|
||||
state: stopped
|
||||
enabled: false
|
||||
register: __cloudflared_stop
|
||||
# The unit may already be gone (systemd: "Could not find the requested service <unit>").
|
||||
# Any other stop failure must halt here, before the unit file and data are deleted.
|
||||
failed_when:
|
||||
- __cloudflared_stop.failed | default(false)
|
||||
- "'Could not find the requested service' not in (__cloudflared_stop.msg | default(''))"
|
||||
tags: [cloudflared, remove]
|
||||
|
||||
- name: Remove systemd service
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: "{{ cloudflared_service_unit }}"
|
||||
state: absent
|
||||
tags: [cloudflared, remove]
|
||||
|
||||
- name: Reload systemd
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
tags: [cloudflared, remove]
|
||||
|
||||
- name: Remove cloudflared binary
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: "{{ cloudflared_install_dir }}/cloudflared"
|
||||
state: absent
|
||||
tags: [cloudflared, remove]
|
||||
|
||||
- name: Remove cloudflared configuration
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: "{{ cloudflared_config_dir }}"
|
||||
state: absent
|
||||
when: cloudflared_remove_data | bool
|
||||
tags: [cloudflared, remove]
|
||||
|
||||
- name: Remove cloudflared user
|
||||
become: true
|
||||
ansible.builtin.user:
|
||||
name: "{{ cloudflared_user }}"
|
||||
state: absent
|
||||
remove: true
|
||||
when: cloudflared_remove_data | bool
|
||||
tags: [cloudflared, remove]
|
||||
|
||||
# Permanently deletes the tunnel and its DNS records on Cloudflare, so it needs
|
||||
# cloudflared_remove_data: a plain cloudflared_remove only touches the host.
|
||||
- name: Remove Cloudflare-side tunnel resources
|
||||
when:
|
||||
- cloudflared_remove_data | bool
|
||||
- (cloudflared_tunnel_id | default('', true) | string | length) > 0
|
||||
delegate_to: localhost
|
||||
become: false
|
||||
no_log: true
|
||||
block:
|
||||
- name: Remove public DNS record(s) for the tunnel
|
||||
loop: "{{ cloudflared_ingress }}"
|
||||
loop_control:
|
||||
loop_var: __cloudflared_ingress_item
|
||||
label: "{{ __cloudflared_ingress_item.hostname }}"
|
||||
community.general.cloudflare_dns:
|
||||
zone: "{{ cloudflared_zone_name }}"
|
||||
record: "{{ __cloudflared_ingress_item.hostname }}"
|
||||
type: CNAME
|
||||
value: "{{ cloudflared_tunnel_id }}.cfargotunnel.com"
|
||||
api_token: "{{ cloudflared_tunnel_api_token }}"
|
||||
state: absent
|
||||
when: cloudflared_manage_dns | bool
|
||||
tags: [cloudflared, remove]
|
||||
|
||||
- name: Delete the Cloudflare Tunnel via API
|
||||
ansible.builtin.uri:
|
||||
url: "{{ cloudflared_api_base_url }}/accounts/{{ cloudflared_account_id }}/cfd_tunnel/{{ cloudflared_tunnel_id }}"
|
||||
method: DELETE
|
||||
headers:
|
||||
Authorization: "Bearer {{ cloudflared_tunnel_api_token }}"
|
||||
status_code: [200]
|
||||
tags: [cloudflared, remove]
|
||||
@@ -0,0 +1,106 @@
|
||||
---
|
||||
- name: Check installed cloudflared version
|
||||
ansible.builtin.command:
|
||||
argv: ["{{ cloudflared_install_dir }}/cloudflared", --version]
|
||||
register: __cloudflared_version_cmd
|
||||
changed_when: false
|
||||
# Failure is expected when the binary is missing (rc 2): empty stdout falls through to 0.0.0
|
||||
# below, which triggers the install path.
|
||||
failed_when: false
|
||||
# Read-only, so it also runs in the --check preview. Skipped there, stdout would be empty, the
|
||||
# version would fall back to 0.0.0 and the sha256 guard below would fail against an up-to-date
|
||||
# binary.
|
||||
check_mode: false
|
||||
tags: [cloudflared, update]
|
||||
|
||||
- name: Extract installed cloudflared version
|
||||
ansible.builtin.set_fact:
|
||||
__cloudflared_installed_version: >-
|
||||
{{
|
||||
(__cloudflared_version_cmd.stdout
|
||||
| regex_findall('([0-9]{4}\.[0-9]+\.[0-9]+)')
|
||||
| first)
|
||||
| default('0.0.0')
|
||||
}}
|
||||
tags: [cloudflared, update]
|
||||
|
||||
- name: Determine if cloudflared update required
|
||||
ansible.builtin.set_fact:
|
||||
__cloudflared_update_required: "{{ __cloudflared_installed_version != cloudflared_version }}"
|
||||
# Next to the live binary, so the swap is a rename on one filesystem.
|
||||
__cloudflared_staged_binary: "{{ cloudflared_install_dir }}/cloudflared.new"
|
||||
tags: [cloudflared, update]
|
||||
|
||||
# A hash left over from an older release (a version bumped without its hash) would fail the
|
||||
# staged download below with a bare checksum mismatch. Say what is wrong instead. Read-only, so
|
||||
# it also runs in the --check preview.
|
||||
- name: Check the installed binary against the configured sha256
|
||||
ansible.builtin.stat:
|
||||
path: "{{ cloudflared_install_dir }}/cloudflared"
|
||||
checksum_algorithm: sha256
|
||||
get_checksum: true
|
||||
register: __cloudflared_installed_stat
|
||||
when: __cloudflared_update_required
|
||||
tags: [cloudflared, update]
|
||||
|
||||
- name: Fail when cloudflared_sha256_amd64 is the hash of the installed binary
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- (__cloudflared_installed_stat.stat.checksum | default('')) | lower != cloudflared_sha256_amd64 | lower
|
||||
fail_msg: >-
|
||||
cloudflared_sha256_amd64 equals the sha256 of the binary installed on {{ inventory_hostname }}
|
||||
(version {{ __cloudflared_installed_version }}), but cloudflared_version is {{ cloudflared_version }}.
|
||||
The hash is stale: set it to the sha256 of the cloudflared-linux-amd64 asset of release
|
||||
{{ cloudflared_version }}.
|
||||
quiet: true
|
||||
when: __cloudflared_update_required
|
||||
tags: [cloudflared, update]
|
||||
|
||||
# Download and verify before anything is stopped: a failed download or checksum leaves the
|
||||
# running daemon untouched. mortis.kamino._binary_update then stops, backs up, swaps, restarts,
|
||||
# checks the version and rolls back on failure, and removes the staged binary. A binary that
|
||||
# reports no version (0.0.0 above) is replaced too; _binary_update backs it up when it exists.
|
||||
- name: Stage and swap in the new cloudflared binary
|
||||
when: __cloudflared_update_required
|
||||
block:
|
||||
# Its own rescue, so that only a staging failure gets this message: a failure in the swap
|
||||
# below keeps the rollback message of mortis.kamino._binary_update.
|
||||
- name: Stage the new cloudflared binary
|
||||
block:
|
||||
- name: Download and verify into the staging path
|
||||
ansible.builtin.include_tasks: download.yml
|
||||
vars:
|
||||
__cloudflared_download_dest: "{{ __cloudflared_staged_binary }}"
|
||||
tags: [cloudflared, update]
|
||||
rescue:
|
||||
- name: Fail the staging
|
||||
ansible.builtin.fail:
|
||||
msg: >-
|
||||
Staging cloudflared {{ cloudflared_version }} failed ({{ ansible_failed_result.msg | default('see the task above') }}).
|
||||
cloudflared was not stopped and still runs {{ __cloudflared_installed_version }}.
|
||||
tags: [cloudflared, update]
|
||||
|
||||
# An include does not pass its tags on to the included tasks, hence apply.
|
||||
- name: Swap in the staged cloudflared binary
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino._binary_update
|
||||
apply:
|
||||
tags: [cloudflared, update]
|
||||
vars:
|
||||
_binary_update_service: cloudflared
|
||||
_binary_update_binary_path: "{{ cloudflared_install_dir }}/cloudflared"
|
||||
_binary_update_staged_path: "{{ __cloudflared_staged_binary }}"
|
||||
_binary_update_version_command: ["{{ cloudflared_install_dir }}/cloudflared", --version]
|
||||
_binary_update_expected_version: "{{ cloudflared_version }}"
|
||||
_binary_update_version_regex: '([0-9]{4}\.[0-9]+\.[0-9]+)'
|
||||
tags: [cloudflared, update]
|
||||
|
||||
always:
|
||||
# Left behind only when the run failed before the swap; get_url would reuse a matching
|
||||
# file anyway, but a stale binary next to the live one is clutter.
|
||||
- name: Remove the staged cloudflared binary
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: "{{ __cloudflared_staged_binary }}"
|
||||
state: absent
|
||||
tags: [cloudflared, update]
|
||||
@@ -0,0 +1,119 @@
|
||||
---
|
||||
# Input checks. Imported first in main.yml with tags: always, so a bad input fails before any
|
||||
# change, whatever tags the run selects.
|
||||
- name: Require a plain cloudflared_version
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- cloudflared_version is string
|
||||
- cloudflared_version is match('^[0-9]{4}\\.[0-9]+\\.[0-9]+$')
|
||||
fail_msg: >-
|
||||
cloudflared_version must be a release tag such as 2026.11.1 (YYYY.M.P), with no leading v: it is
|
||||
used in the download URL and compared with what the binary reports.
|
||||
quiet: true
|
||||
|
||||
- name: Require a sha256 for the binary
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- cloudflared_sha256_amd64 is string
|
||||
- cloudflared_sha256_amd64 is match('^[0-9a-fA-F]{64}$')
|
||||
fail_msg: >-
|
||||
cloudflared_sha256_amd64 must be the 64-digit hex sha256 of the cloudflared-linux-amd64 asset of
|
||||
release {{ cloudflared_version }}.
|
||||
quiet: true
|
||||
|
||||
# The items land in config.yml and, with cloudflared_manage_dns, become DNS records.
|
||||
- name: Require a hostname and a service for every ingress rule
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- cloudflared_ingress is sequence
|
||||
- cloudflared_ingress is not string
|
||||
- cloudflared_ingress is not mapping
|
||||
- cloudflared_ingress | reject('mapping') | list | length == 0
|
||||
- cloudflared_ingress | selectattr('hostname', 'defined') | selectattr('service', 'defined') | list | length == cloudflared_ingress | length
|
||||
fail_msg: >-
|
||||
cloudflared_ingress must be a list of mappings, each with hostname and service (and optionally
|
||||
originRequest).
|
||||
quiet: true
|
||||
|
||||
# A hostname lands unquoted in config.yml and is compared with DNS record names.
|
||||
- name: Require plain lowercase ingress hostnames
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- cloudflared_ingress | map(attribute='hostname') | reject('string') | list | length == 0
|
||||
- cloudflared_ingress | map(attribute='hostname') | reject('match', '^(\\*\\.)?[a-z0-9_.-]+\\Z') | list | length == 0
|
||||
fail_msg: >-
|
||||
Every cloudflared_ingress hostname must be lowercase letters, digits, dots, hyphens or underscores,
|
||||
with an optional leading *. and no whitespace or newline.
|
||||
quiet: true
|
||||
|
||||
# The values land in the systemd unit and in file paths: a newline or % would inject or expand
|
||||
# unit directives.
|
||||
- name: Require plain service account names and absolute directories
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- cloudflared_user is string
|
||||
- cloudflared_group is string
|
||||
- cloudflared_install_dir is string
|
||||
- cloudflared_config_dir is string
|
||||
- (cloudflared_user ~ cloudflared_group ~ cloudflared_install_dir ~ cloudflared_config_dir) is not search('[\\r\\n%]')
|
||||
- cloudflared_install_dir is match('/')
|
||||
- cloudflared_config_dir is match('/')
|
||||
fail_msg: >-
|
||||
cloudflared_user, cloudflared_group, cloudflared_install_dir and cloudflared_config_dir must not contain a
|
||||
newline or %, and the two directories must be absolute paths.
|
||||
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
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- cloudflared_tunnel_id | default('', true) | string | length > 0
|
||||
- cloudflared_credentials_json | default('', true) | string | length > 0
|
||||
fail_msg: >-
|
||||
cloudflared_tunnel_id and cloudflared_credentials_json are not defined or empty: run the mint entry
|
||||
point first (include_role with tasks_from: mint and -e cloudflared_mint_confirm=true), persist
|
||||
cloudflared_minted_tunnel_id and cloudflared_minted_credentials_json into your inventory as these two
|
||||
variables, and run the role again.
|
||||
quiet: true
|
||||
when: not (cloudflared_remove | bool)
|
||||
|
||||
# The id names the credentials file, and stale credentials are found by the UUID shape.
|
||||
- name: Require a UUID tunnel id
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- >-
|
||||
cloudflared_tunnel_id | default('', true) | string | length == 0 or
|
||||
cloudflared_tunnel_id | string is match('^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\Z')
|
||||
fail_msg: cloudflared_tunnel_id must be a lowercase UUID, as the mint entry point returns it.
|
||||
quiet: true
|
||||
|
||||
# Every Cloudflare call below needs them: the tunnel check on every run, the tunnel deletion
|
||||
# of a removal with cloudflared_remove_data.
|
||||
- name: Require the Cloudflare API credentials
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- cloudflared_account_id | default('', true) | string | length > 0
|
||||
- cloudflared_tunnel_api_token | default('', true) | string | length > 0
|
||||
fail_msg: >-
|
||||
cloudflared_account_id and cloudflared_tunnel_api_token (vaulted) have no role default and must be set
|
||||
and non-empty.
|
||||
quiet: true
|
||||
when: >-
|
||||
not (cloudflared_remove | bool) or
|
||||
((cloudflared_remove_data | bool) and (cloudflared_tunnel_id | default('', true) | string | length) > 0)
|
||||
|
||||
- name: Require the zone while the role manages DNS
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- cloudflared_zone_name is string
|
||||
- cloudflared_zone_name | length > 0
|
||||
fail_msg: >-
|
||||
cloudflared_manage_dns is true, so cloudflared_zone_name must name the DNS zone of the
|
||||
cloudflared_ingress hostnames.
|
||||
quiet: true
|
||||
when:
|
||||
- cloudflared_manage_dns | bool
|
||||
- >-
|
||||
not (cloudflared_remove | bool) or
|
||||
((cloudflared_remove_data | bool) and (cloudflared_tunnel_id | default('', true) | string | length) > 0)
|
||||
@@ -0,0 +1,13 @@
|
||||
tunnel: {{ cloudflared_tunnel_id }}
|
||||
credentials-file: {{ cloudflared_config_dir }}/{{ cloudflared_tunnel_id }}.json
|
||||
|
||||
ingress:
|
||||
{% for rule in cloudflared_ingress %}
|
||||
- hostname: {{ rule.hostname }}
|
||||
service: {{ rule.service }}
|
||||
{% if rule.originRequest is defined %}
|
||||
originRequest:
|
||||
{{ rule.originRequest | to_nice_yaml | indent(6, first=true) }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
- service: http_status:404
|
||||
@@ -4,7 +4,7 @@ Installs Docker Engine from the upstream Docker APT repository, optionally updat
|
||||
|
||||
## Supported platforms
|
||||
|
||||
Ubuntu. The key and repository URLs point at `download.docker.com/linux/ubuntu`, and the source line uses `ansible_distribution_release`. The default architecture is `amd64`. A limited molecule scenario covers the role's own logic (see [Tests](#tests)); the real Docker Engine is not tested.
|
||||
Ubuntu. 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.
|
||||
|
||||
## Requirements and run order
|
||||
|
||||
@@ -25,7 +25,7 @@ Ubuntu. The key and repository URLs point at `download.docker.com/linux/ubuntu`,
|
||||
| `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_repo_base_url` | `https://download.docker.com/linux/ubuntu` | no | Repository base URL. |
|
||||
| `docker_apt_arch` | `amd64` | no | Architecture in the APT source. |
|
||||
| `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_service` | `docker` | no | systemd unit name. |
|
||||
| `docker_group` | `docker` | no | Group for `docker_users`. |
|
||||
| `docker_users` | `[]` | no | Users added to the group. |
|
||||
|
||||
@@ -13,8 +13,9 @@ docker_apt_list_path: /etc/apt/sources.list.d/docker.list
|
||||
docker_gpg_url: https://download.docker.com/linux/ubuntu/gpg
|
||||
docker_repo_base_url: https://download.docker.com/linux/ubuntu
|
||||
|
||||
# Override per host if a host is not amd64.
|
||||
docker_apt_arch: amd64
|
||||
# Architecture written into the APT source. Empty (the default) derives it from the host: x86_64 gives amd64, aarch64 gives arm64, any
|
||||
# other architecture fails the play, so set it here (for example armhf) when Docker publishes one for it.
|
||||
docker_apt_arch: ""
|
||||
|
||||
docker_service: docker
|
||||
docker_group: docker
|
||||
|
||||
@@ -56,9 +56,12 @@ argument_specs:
|
||||
- Base URL of the repository. The source line uses C(ansible_distribution_release) and the C(stable) component.
|
||||
docker_apt_arch:
|
||||
type: str
|
||||
default: amd64
|
||||
default: ""
|
||||
description:
|
||||
- Architecture written into the APT source. Override per host if a host is not amd64.
|
||||
- >-
|
||||
Architecture written into the APT source. Empty (the default) derives it from the host: C(x86_64) gives C(amd64), C(aarch64)
|
||||
gives C(arm64). Any other host architecture fails the play, so set this to the name Docker publishes for it. Lowercase letters
|
||||
and digits only. A value set here is always used.
|
||||
docker_service:
|
||||
type: str
|
||||
default: docker
|
||||
|
||||
@@ -59,3 +59,27 @@
|
||||
- "'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
|
||||
@@ -17,6 +17,7 @@
|
||||
- /srv/docker-stub-repo/docker.asc
|
||||
register: docker_verify_files
|
||||
|
||||
# amd64 because the Molecule container is x86_64: the role derives the architecture from the host now.
|
||||
- name: The source line carries the arch, the keyring and the release
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
|
||||
@@ -30,7 +30,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_distribution_release }} stable
|
||||
mode: "0644"
|
||||
tags: [docker, install]
|
||||
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
---
|
||||
- name: Validate inputs
|
||||
ansible.builtin.import_tasks: validate.yml
|
||||
when: not (docker_remove | default(false) | bool)
|
||||
tags: always
|
||||
|
||||
- name: Remove Docker (explicit only)
|
||||
ansible.builtin.include_tasks: remove.yml
|
||||
when: docker_remove | default(false) | bool
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
---
|
||||
# Fact-computing and assertion only, before any task changes the host. A removal does not write the apt source, so it does not need the architecture.
|
||||
- name: Work out the apt architecture
|
||||
ansible.builtin.set_fact:
|
||||
__docker_apt_arch: >-
|
||||
{{ docker_apt_arch | default('', true) or __docker_arch_by_fact[ansible_facts['architecture'] | default('')] | default('', true) }}
|
||||
tags: always
|
||||
|
||||
# The value is written into the one-line apt source (deb [arch=... signed-by=...]): a space or a bracket would corrupt it.
|
||||
- name: Check the apt architecture
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- __docker_apt_arch is match('^[a-z0-9]+\Z')
|
||||
fail_msg: >-
|
||||
{% if docker_apt_arch | default('', true) | length > 0 %}
|
||||
docker_apt_arch '{{ docker_apt_arch }}' is not a valid apt architecture name: use the name Docker publishes (for example amd64 or arm64),
|
||||
lowercase letters and digits only.
|
||||
{% else %}
|
||||
The host architecture '{{ ansible_facts['architecture'] | default('unknown') }}' has no known Docker apt architecture (x86_64 and aarch64 do).
|
||||
Set docker_apt_arch to the name Docker publishes for it, for example armhf.
|
||||
{% endif %}
|
||||
quiet: true
|
||||
tags: always
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
# Constants, not inputs: the Docker apt architecture for each ansible_facts['architecture'] the role derives it for. docker_apt_arch
|
||||
# overrides it for any other architecture.
|
||||
__docker_arch_by_fact:
|
||||
x86_64: amd64
|
||||
aarch64: arm64
|
||||
@@ -68,10 +68,12 @@ Main entry point: `fail2ban` (everything), `fail2ban_install`, `fail2ban_validat
|
||||
## Notes
|
||||
|
||||
- Each service owns `jail.d/<name>.local`, so one play cannot overwrite another service's jail. `jail.local` only holds `fail2ban_jails`.
|
||||
- `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. The first run after upgrading to a release with it adds the `[DEFAULT]` section and restarts Fail2Ban once.
|
||||
- `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` restarts Fail2Ban, which drops the in-memory ban list. Service jails only trigger a reload.
|
||||
- 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_service_jail` and `fail2ban_service_filter` must be passed as a single templated expression so they stay mappings, not strings or lists.
|
||||
- `no_log` is not used: the role handles no secrets.
|
||||
@@ -1,15 +1,11 @@
|
||||
---
|
||||
- name: Restart Fail2Ban
|
||||
become: true
|
||||
ansible.builtin.service:
|
||||
name: fail2ban
|
||||
state: restarted
|
||||
|
||||
# Service jails only add a jail.d file, so reload instead of restarting the
|
||||
# daemon (a restart drops the in-memory ban list). state=reloaded starts the
|
||||
# service if it is not running. The config test runs as a task in
|
||||
# service_jail.yml, so a broken file fails every run instead of only the one
|
||||
# that wrote it.
|
||||
# The main entry point and service_jail both reload instead of restarting the daemon. A restart stops every jail, which flushes
|
||||
# its bans out of the firewall (they stay in Fail2Ban's database and are restored when the jail starts again), so for a moment
|
||||
# banned addresses are not blocked, and failures counted toward maxretry are forgotten. A reload applies the new settings to the
|
||||
# running jails and does neither. state=reloaded starts the service if it is not running. The configuration test
|
||||
# (`fail2ban-client -t`) runs as a task in service.yml and service_jail.yml, so a broken file fails every run of the full role
|
||||
# instead of only the one that wrote it, and when the whole role runs it comes before this handler (with only the configure tag it
|
||||
# does not, and the reload itself rejects a bad configuration).
|
||||
- name: Reload Fail2Ban
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
|
||||
@@ -41,7 +41,7 @@ argument_specs:
|
||||
An empty list exempts nothing, loopback included. It must be a list of non-empty strings without whitespace,
|
||||
semicolons or percent signs (entries are joined with spaces, a semicolon starts a comment and a percent sign is
|
||||
interpolation syntax in Fail2Ban's config files); a plain string, a number or null is refused.
|
||||
- Changing it rewrites jail.local, which restarts Fail2Ban.
|
||||
- Changing it rewrites jail.local, which reloads Fail2Ban.
|
||||
fail2ban_service:
|
||||
type: dict
|
||||
description:
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
---
|
||||
# Runs after the idempotence check and before verify. Record the daemon's PID, ban an address, change a jail setting so jail.local
|
||||
# is rewritten and the handler fires, and let verify prove the daemon was reloaded, not restarted. The PID is the discriminator:
|
||||
# a restart starts a new process, a reload does not. The ban alone would not tell them apart, because Fail2Ban restores unexpired
|
||||
# bans from its database when a jail starts. The PID goes to a file because verify is a separate play.
|
||||
- name: Change a jail setting while an address is banned
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Read the unit state of the Fail2Ban daemon
|
||||
ansible.builtin.systemd:
|
||||
name: fail2ban
|
||||
register: fail2ban_side_effect_unit
|
||||
|
||||
- name: Keep the main PID for the verify step
|
||||
ansible.builtin.copy:
|
||||
content: "{{ fail2ban_side_effect_unit.status.MainPID }}\n"
|
||||
dest: /run/fail2ban-molecule-mainpid
|
||||
mode: "0644"
|
||||
|
||||
# 198.51.100.0/24 is TEST-NET-2 (RFC 5737), outside the 192.0.2.0/24 the converge step ignores.
|
||||
- name: Ban a documentation address on the sshd jail
|
||||
ansible.builtin.command: fail2ban-client set sshd banip 198.51.100.77
|
||||
changed_when: true
|
||||
|
||||
- name: Rewrite jail.local with a different maxretry
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.fail2ban
|
||||
vars:
|
||||
fail2ban_ignoreip:
|
||||
- 127.0.0.1/8
|
||||
- "::1"
|
||||
- 192.0.2.0/24
|
||||
fail2ban_jails:
|
||||
- name: sshd
|
||||
enabled: true
|
||||
port: ssh
|
||||
filter: sshd
|
||||
backend: systemd
|
||||
maxretry: 4
|
||||
bantime: "1h"
|
||||
findtime: "10m"
|
||||
@@ -83,3 +83,33 @@
|
||||
loop: "{{ fail2ban_verify_ignoreip.results }}"
|
||||
loop_control:
|
||||
label: "{{ item.item }}"
|
||||
|
||||
# side_effect.yml recorded the daemon's PID, banned an address and rewrote jail.local with maxretry 4. The new maxretry must be
|
||||
# active and the ban still in force. The PID must be unchanged: that is what tells a reload from a restart (a restart would
|
||||
# have restored the ban from the database too, so the ban alone proves nothing about it).
|
||||
- name: Ask the daemon for the sshd maxretry and its banned addresses
|
||||
ansible.builtin.command: "fail2ban-client get sshd {{ item }}"
|
||||
loop:
|
||||
- maxretry
|
||||
- banip
|
||||
register: fail2ban_verify_reload
|
||||
changed_when: false
|
||||
|
||||
- name: Read the PID recorded before the rewrite
|
||||
ansible.builtin.slurp:
|
||||
src: /run/fail2ban-molecule-mainpid
|
||||
register: fail2ban_verify_pid_before
|
||||
|
||||
- name: Read the unit state of the Fail2Ban daemon now
|
||||
ansible.builtin.systemd:
|
||||
name: fail2ban
|
||||
register: fail2ban_verify_unit
|
||||
|
||||
- name: The new maxretry is active, the ban is in force and the daemon was not restarted
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "fail2ban_verify_reload.results[0].stdout | trim == '4'"
|
||||
- "'198.51.100.77' in fail2ban_verify_reload.results[1].stdout"
|
||||
- "(fail2ban_verify_pid_before.content | b64decode | trim) != '0'"
|
||||
- "(fail2ban_verify_pid_before.content | b64decode | trim) == (fail2ban_verify_unit.status.MainPID | string)"
|
||||
quiet: true
|
||||
@@ -7,4 +7,4 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0600"
|
||||
notify: Restart Fail2Ban
|
||||
notify: Reload Fail2Ban
|
||||
@@ -16,8 +16,8 @@
|
||||
enabled: "{{ fail2ban_service.enabled | default(true) }}"
|
||||
state: "{{ fail2ban_service.state | default('started') }}"
|
||||
|
||||
# Handlers run at the end of the play; flush so the restart happens before the
|
||||
# jail check below.
|
||||
# Handlers run at the end of the play; flush so the reload happens after the
|
||||
# configuration test above and before the jail check below.
|
||||
- name: Apply pending Fail2Ban handlers
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
|
||||
@@ -53,6 +53,10 @@ Ubuntu 24.04 (noble), the image the molecule scenario runs on. The role uses `an
|
||||
| `gitea_runner_docker_prune_schedule` | `Sun *-*-* 04:30:00` | `OnCalendar` of the prune timer. |
|
||||
| `gitea_runner_docker_prune_container_age`, `_image_age` | `24h`, `168h` | `until` filters (creation time) for containers, and for images and build cache. |
|
||||
| `gitea_runner_docker_prune_job_max_age` | `21600` | Seconds; the prune skips while a younger container runs and ignores older ones as leaked job containers. |
|
||||
| `gitea_runner_docker_prune_keep_per_repository` | `0` (off) | Newest image IDs kept per repository by the weekly and pressure prunes; every other image no container uses is removed. A multi-tag image counts once. |
|
||||
| `gitea_runner_docker_prune_disk_threshold_percent` | `0` (off) | Use % of the Docker root's filesystem above which the pressure prune runs the count prune and a capped builder prune, behind the job gate. 1 to 99; needs the count above 0. |
|
||||
| `gitea_runner_docker_prune_disk_check_schedule` | `hourly` | `OnCalendar` of the pressure prune timer. |
|
||||
| `gitea_runner_docker_prune_builder_keep_storage` | `10GB` | `--keep-storage` of the builder prune under pressure. |
|
||||
| `gitea_runner_molecule_enabled` | `false` | Install molecule tooling and add the host label. |
|
||||
| `gitea_runner_molecule_label` | `molecule` | Host-executor label name, registered as `<label>:host`. |
|
||||
| `gitea_runner_molecule_venv` | `/opt/molecule-venv` | Tooling virtualenv. |
|
||||
@@ -86,7 +90,7 @@ Change the registration scope of a registered runner: set `gitea_runner_registra
|
||||
|
||||
## Tests
|
||||
|
||||
The `default` molecule scenario runs without a Gitea server and without Docker: a stub `docker.service`, a stub runner binary and a seeded `.runner` stand in for them, and the downloads come from local `file://` URLs. It covers the converge with the prune timer and an update through `_binary_update` (and its idempotence), the rendered `config.yaml` and unit, the prune gate script, a failed checksum that leaves the runner running, the input asserts, the CI refusal of a forced re-registration and the mint-before-drop order, and the remove path. Registration, the Docker install and the molecule tooling install are not covered.
|
||||
The `default` molecule scenario runs without a Gitea server and without Docker: a stub `docker.service`, a stub runner binary and a seeded `.runner` stand in for them, and the downloads come from local `file://` URLs. It covers the converge with the prune timer and an update through `_binary_update` (and its idempotence), the rendered `config.yaml` and unit, the prune gate script, the count prune and the disk check against a stub `docker` CLI, turning the pressure prune off, a failed checksum that leaves the runner running, the input asserts, the CI refusal of a forced re-registration and the mint-before-drop order, and the remove path. Registration, the Docker install and the molecule tooling install are not covered.
|
||||
|
||||
## Notes
|
||||
|
||||
@@ -95,6 +99,7 @@ The `default` molecule scenario runs without a Gitea server and without Docker:
|
||||
- Trust: with `gitea_runner_molecule_enabled`, jobs on the host-executor label run as the runner user, who is in the `docker` group, so they are root-equivalent on the runner host, which holds the registration and the secrets of every job it runs. Anyone who can run a workflow on that label can use it. Enable it only on a host whose registration scope (`gitea_runner_registration_scope`) is limited to repositories whose pushers you trust, and keep the job secrets of other repositories off that runner.
|
||||
- The runner binary is verified against `gitea_runner_checksum_url` on install and update; a mismatch fails the download task, and on an update leaves the running binary in place.
|
||||
- Handlers: `Restart Gitea Runner` runs when the config template changes or a registration happens.
|
||||
- The Docker prune units (`gitea-runner-docker-prune.{service,timer}`) are written only while `gitea_runner_docker_prune_enabled` is true. Setting it back to false leaves them in place: run `systemctl disable --now gitea-runner-docker-prune.timer` by hand. `gitea_runner_remove` deletes them and the gate script. A run skipped because a job was running is not retried until the next timer elapse: shorten `gitea_runner_docker_prune_schedule` (e.g. `*-*-* 04:30:00`) if that happens.
|
||||
- The Docker prune units (`gitea-runner-docker-prune.{service,timer}`) are written only while `gitea_runner_docker_prune_enabled` is true. Setting it back to false leaves them in place: run `systemctl disable --now gitea-runner-docker-prune.timer` by hand. `gitea_runner_remove` deletes them, the pressure units and the prune scripts. A run skipped because a job was running is not retried until the next timer elapse: shorten `gitea_runner_docker_prune_schedule` (e.g. `*-*-* 04:30:00`) if that happens.
|
||||
- The pressure prune (`gitea-runner-docker-prune-pressure.{service,timer}`) runs once per check while usage is above the threshold; it has no low watermark, so usage that stays high needs a smaller count or a larger disk. A threshold set back to `0` stops its timer and removes its units and the disk check script. The age prunes and the count prune both apply: an image either one removes is gone.
|
||||
- The play fails when `gitea-runner` is not `active` after start.
|
||||
- `no_log` covers the token mint, the token fact and the registration command.
|
||||
@@ -35,6 +35,12 @@ gitea_runner_docker_prune_image_age: 168h
|
||||
# Seconds. The prune skips while a container younger than this runs and ignores older ones as
|
||||
# leaked. Keep it above the longest job timeout.
|
||||
gitea_runner_docker_prune_job_max_age: 21600
|
||||
# Newest image IDs kept per repository by the weekly and pressure prunes; 0 = off.
|
||||
gitea_runner_docker_prune_keep_per_repository: 0
|
||||
# Use % of the Docker root's filesystem above which the pressure prune runs; 0 = off. Needs the count.
|
||||
gitea_runner_docker_prune_disk_threshold_percent: 0
|
||||
gitea_runner_docker_prune_disk_check_schedule: hourly
|
||||
gitea_runner_docker_prune_builder_keep_storage: 10GB
|
||||
|
||||
# Optional extra mounts
|
||||
# gitea_runner_container_volumes:
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
# Exit 0 when the filesystem holding the Docker root is more than $1 percent full (the pressure
|
||||
# prune may run), 1 to skip. Every failure skips: the prune must not run when the state is unknown.
|
||||
threshold="$1"
|
||||
case "$threshold" in
|
||||
'' | *[!0-9]*) echo "invalid threshold '$threshold'"; exit 1 ;;
|
||||
esac
|
||||
root=$(/usr/bin/docker info --format '{{.DockerRootDir}}') || { echo "docker info failed"; exit 1; }
|
||||
use=$(df -P "$root" | awk 'NR == 2 { sub(/%$/, "", $5); print $5 }')
|
||||
case "$use" in
|
||||
'' | *[!0-9]*) echo "cannot read the use of '$root'"; exit 1 ;;
|
||||
esac
|
||||
if [ "$use" -gt "$threshold" ]; then
|
||||
echo "$root is $use% full, above $threshold%: pruning"
|
||||
exit 0
|
||||
fi
|
||||
echo "$root is $use% full, not above $threshold%: skipping the prune"
|
||||
exit 1
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/sh
|
||||
# Keep the newest $1 image IDs of each repository, by creation time, and remove every other image
|
||||
# no container uses, dangling ones included. An image ID counts once however many tags it has, and
|
||||
# one kept by any of its repositories stays. A failed listing exits non-zero and removes nothing.
|
||||
keep="$1"
|
||||
case "$keep" in
|
||||
'' | *[!0-9]* | 0*) echo "invalid count '$keep'"; exit 2 ;;
|
||||
esac
|
||||
|
||||
images=$(/usr/bin/docker image ls --no-trunc --format '{{.ID}} {{.Repository}} {{.CreatedAt}}') ||
|
||||
{ echo "docker image ls failed"; exit 1; }
|
||||
containers=$(/usr/bin/docker ps --all --quiet --no-trunc) || { echo "docker ps failed"; exit 1; }
|
||||
used=""
|
||||
if [ -n "$containers" ]; then
|
||||
# shellcheck disable=SC2086 # one argument per container ID
|
||||
used=$(/usr/bin/docker container inspect --format '{{.Image}}' $containers) ||
|
||||
{ echo "cannot read the images of the containers"; exit 1; }
|
||||
fi
|
||||
|
||||
# CreatedAt is local time with an offset ("2026-01-05 10:00:00 +0100 CET"): compare it as epoch
|
||||
# seconds, or a change of offset would misorder the images.
|
||||
table=$(printf '%s\n' "$images" | while read -r id repo day time offset _; do
|
||||
[ -n "$id" ] || continue
|
||||
created=$(date -d "$day $time $offset" +%s) || exit 1
|
||||
echo "$created $id $repo"
|
||||
done) || { echo "cannot parse the creation time of an image"; exit 1; }
|
||||
|
||||
# Lines in: "used <id>", then "image <created> <id> <repo>", newest first within a repository.
|
||||
# Lines out: "<number of references> <id>" for each image to remove.
|
||||
remove=$({
|
||||
printf '%s\n' "$used" | sed -n 's/^./used &/p'
|
||||
printf '%s\n' "$table" | LC_ALL=C sort -k3,3 -k1,1nr -k2,2 | sed -n 's/^./image &/p'
|
||||
} | awk -v keep="$keep" '
|
||||
$1 == "used" { used[$2] = 1; next }
|
||||
{
|
||||
id = $3; repo = $4; refs[id]++
|
||||
if (!(id in seen)) { seen[id] = 1; order[++n] = id }
|
||||
if (repo != "<none>" && !((repo, id) in counted)) {
|
||||
counted[repo, id] = 1
|
||||
if (++slots[repo] <= keep) kept[id] = 1
|
||||
}
|
||||
}
|
||||
END { for (i = 1; i <= n; i++) if (!(order[i] in kept) && !(order[i] in used)) print refs[order[i]], order[i] }
|
||||
')
|
||||
|
||||
# An image with several references is refused by a plain rmi of its ID, so it needs --force.
|
||||
printf '%s\n' "$remove" | {
|
||||
rc=0
|
||||
while read -r refs id; do
|
||||
[ -n "$id" ] || continue
|
||||
force=""
|
||||
[ "$refs" -gt 1 ] && force="--force"
|
||||
echo "removing image $id"
|
||||
# shellcheck disable=SC2086 # $force is empty or one word
|
||||
/usr/bin/docker rmi $force "$id" || rc=1
|
||||
done
|
||||
exit "$rc"
|
||||
}
|
||||
@@ -231,6 +231,38 @@ argument_specs:
|
||||
- >-
|
||||
Seconds. The prune is skipped while a container younger than this runs (a job may use it). An older
|
||||
container is treated as a leaked job container: it is logged and ignored. Keep it above the longest job timeout.
|
||||
gitea_runner_docker_prune_keep_per_repository:
|
||||
type: int
|
||||
default: 0
|
||||
description:
|
||||
- >-
|
||||
Newest image IDs kept per repository, by creation time; C(0) turns the count prune off. Above C(0) the weekly
|
||||
prune and the pressure prune remove every other image no container uses, dangling images included. An image
|
||||
with several tags counts once, and one kept by any of its repositories stays. Only read when
|
||||
C(gitea_runner_docker_prune_enabled) is true.
|
||||
gitea_runner_docker_prune_disk_threshold_percent:
|
||||
type: int
|
||||
default: 0
|
||||
description:
|
||||
- >-
|
||||
Use, in percent, of the filesystem holding the Docker root above which
|
||||
C(gitea-runner-docker-prune-pressure.service) runs the count prune and a builder prune capped at
|
||||
C(gitea_runner_docker_prune_builder_keep_storage), behind the same job gate as the weekly prune. C(0) turns it
|
||||
off, and setting it back to C(0) stops the timer and removes its units. C(1) to C(99), and above C(0) only with
|
||||
C(gitea_runner_docker_prune_keep_per_repository) above C(0), asserted at role start when the prune is enabled.
|
||||
gitea_runner_docker_prune_disk_check_schedule:
|
||||
type: str
|
||||
default: hourly
|
||||
description:
|
||||
- >-
|
||||
C(OnCalendar) value of the pressure prune timer. Same check as C(gitea_runner_docker_prune_schedule).
|
||||
gitea_runner_docker_prune_builder_keep_storage:
|
||||
type: str
|
||||
default: 10GB
|
||||
description:
|
||||
- >-
|
||||
C(--keep-storage) of the builder prune under disk pressure: the build cache kept. A number with an optional
|
||||
C(B), C(KB), C(MB), C(GB) or C(TB), asserted at role start when the prune is enabled.
|
||||
gitea_runner_container_volumes:
|
||||
type: list
|
||||
elements: str
|
||||
|
||||
@@ -41,6 +41,8 @@ provisioner:
|
||||
- /cache:/cache
|
||||
gitea_runner_docker_prune_enabled: true
|
||||
gitea_runner_docker_prune_job_max_age: 3600
|
||||
gitea_runner_docker_prune_keep_per_repository: 2
|
||||
gitea_runner_docker_prune_disk_threshold_percent: 90
|
||||
verifier:
|
||||
name: ansible
|
||||
scenario:
|
||||
|
||||
@@ -13,6 +13,10 @@
|
||||
gitea_runner_registration_scope: "{{ gitea_runner_test_refused.vars.gitea_runner_registration_scope | default('') }}"
|
||||
gitea_runner_docker_prune_schedule: "{{ gitea_runner_test_refused.vars.gitea_runner_docker_prune_schedule | default('Sun *-*-* 04:30:00') }}"
|
||||
gitea_runner_docker_prune_image_age: "{{ gitea_runner_test_refused.vars.gitea_runner_docker_prune_image_age | default('168h') }}"
|
||||
gitea_runner_docker_prune_keep_per_repository: "{{ gitea_runner_test_refused.vars.gitea_runner_docker_prune_keep_per_repository | default(2) }}"
|
||||
gitea_runner_docker_prune_disk_threshold_percent: "{{ gitea_runner_test_refused.vars.gitea_runner_docker_prune_disk_threshold_percent | default(90) }}"
|
||||
gitea_runner_docker_prune_disk_check_schedule: "{{ gitea_runner_test_refused.vars.gitea_runner_docker_prune_disk_check_schedule | default('hourly') }}"
|
||||
gitea_runner_docker_prune_builder_keep_storage: "{{ gitea_runner_test_refused.vars.gitea_runner_docker_prune_builder_keep_storage | default('10GB') }}"
|
||||
gitea_runner_molecule_enabled: "{{ gitea_runner_test_refused.vars.gitea_runner_molecule_enabled | default(false) }}"
|
||||
|
||||
# Only reached when the include returned. The message must not contain the expected
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
src: /etc/systemd/system/gitea-runner-docker-prune.service
|
||||
register: gitea_runner_test_prune_service
|
||||
|
||||
- name: The prune timer is armed and the service carries the gate and the ages
|
||||
- name: The prune timer is armed and the service carries the gate, the ages and the count
|
||||
vars:
|
||||
gitea_runner_test_prune_text: "{{ gitea_runner_test_prune_service.content | b64decode }}"
|
||||
ansible.builtin.assert:
|
||||
@@ -95,6 +95,30 @@
|
||||
- "'ExecCondition=/usr/local/sbin/gitea-runner-docker-prune-gate 3600' in gitea_runner_test_prune_text"
|
||||
- "'container prune --force --filter until=24h' in gitea_runner_test_prune_text"
|
||||
- "'image prune --all --force --filter until=168h' in gitea_runner_test_prune_text"
|
||||
- "'ExecStart=-/usr/local/sbin/gitea-runner-docker-prune-keep 2' in gitea_runner_test_prune_text"
|
||||
quiet: true
|
||||
|
||||
- name: Ask systemd about the pressure prune timer
|
||||
ansible.builtin.systemd:
|
||||
name: gitea-runner-docker-prune-pressure.timer
|
||||
register: gitea_runner_test_pressure_timer
|
||||
|
||||
- name: Read the pressure prune service
|
||||
ansible.builtin.slurp:
|
||||
src: /etc/systemd/system/gitea-runner-docker-prune-pressure.service
|
||||
register: gitea_runner_test_pressure_service
|
||||
|
||||
- name: The pressure timer is armed and its service runs behind the gate and the disk check
|
||||
vars:
|
||||
gitea_runner_test_pressure_text: "{{ gitea_runner_test_pressure_service.content | b64decode }}"
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- gitea_runner_test_pressure_timer.status.ActiveState == 'active'
|
||||
- gitea_runner_test_pressure_timer.status.UnitFileState == 'enabled'
|
||||
- "'ExecCondition=/usr/local/sbin/gitea-runner-docker-prune-gate 3600' in gitea_runner_test_pressure_text"
|
||||
- "'ExecCondition=/usr/local/sbin/gitea-runner-docker-prune-disk-check 90' in gitea_runner_test_pressure_text"
|
||||
- "'ExecStart=-/usr/local/sbin/gitea-runner-docker-prune-keep 2' in gitea_runner_test_pressure_text"
|
||||
- "'ExecStart=-/usr/bin/docker builder prune --force --keep-storage 10GB' in gitea_runner_test_pressure_text"
|
||||
quiet: true
|
||||
|
||||
# The prune gate script against a stub docker CLI: no container, a young one (a job may be
|
||||
@@ -171,6 +195,169 @@
|
||||
loop_control:
|
||||
loop_var: gitea_runner_test_path
|
||||
|
||||
# The count prune and the disk check against a stub docker CLI: it answers from the files below,
|
||||
# records `rmi` calls, and a fail-<command> file makes that command fail. With N = 2, app keeps
|
||||
# a1 (two tags: counted twice it would push a2 out), a2 and a4 (used by c1); lib keeps m1 though
|
||||
# it is third in old; s3 (two tags) goes with --force; d1 goes, d2 (used by c2) stays.
|
||||
- name: Verify the count prune and the disk check
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
vars:
|
||||
gitea_runner_test_dir: /tmp/molecule-docker
|
||||
tasks:
|
||||
- name: Stat the docker CLI
|
||||
ansible.builtin.stat:
|
||||
path: /usr/bin/docker
|
||||
register: gitea_runner_test_docker_cli
|
||||
|
||||
- name: The image has no docker CLI the stub would replace
|
||||
ansible.builtin.assert:
|
||||
that: not gitea_runner_test_docker_cli.stat.exists
|
||||
fail_msg: /usr/bin/docker exists in the test image; this play would overwrite it.
|
||||
quiet: true
|
||||
|
||||
- name: Create the stub's directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ gitea_runner_test_dir }}"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- name: Write the stub docker CLI
|
||||
ansible.builtin.copy:
|
||||
dest: /usr/bin/docker
|
||||
mode: "0755"
|
||||
content: |
|
||||
#!/bin/sh
|
||||
d={{ gitea_runner_test_dir }}
|
||||
[ -e "$d/fail-$1" ] && exit 1
|
||||
case "$1" in
|
||||
image) cat "$d/images" ;;
|
||||
ps) cat "$d/containers" ;;
|
||||
container)
|
||||
shift 4
|
||||
for c in "$@"; do grep "^$c " "$d/container-images" | cut -d' ' -f2; done ;;
|
||||
info) cat "$d/root" ;;
|
||||
rmi) echo "$*" >> "$d/rmi" ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
|
||||
- name: Write the stub's images and containers
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ gitea_runner_test_dir }}/{{ gitea_runner_test_fixture.name }}"
|
||||
mode: "0644"
|
||||
content: "{{ gitea_runner_test_fixture.content }}"
|
||||
loop:
|
||||
- name: images
|
||||
content: |
|
||||
sha256:a1 app 2026-01-05 10:00:00 +0000 UTC
|
||||
sha256:a1 app 2026-01-05 10:00:00 +0000 UTC
|
||||
sha256:a2 app 2026-01-04 10:00:00 +0000 UTC
|
||||
sha256:a3 app 2026-01-03 10:00:00 +0000 UTC
|
||||
sha256:a4 app 2026-01-02 10:00:00 +0000 UTC
|
||||
sha256:a5 app 2026-01-01 10:00:00 +0000 UTC
|
||||
sha256:m1 lib 2026-01-01 10:00:00 +0000 UTC
|
||||
sha256:o1 old 2026-01-03 10:00:00 +0000 UTC
|
||||
sha256:o2 old 2026-01-02 10:00:00 +0000 UTC
|
||||
sha256:m1 old 2026-01-01 10:00:00 +0000 UTC
|
||||
sha256:s1 stale 2026-01-03 10:00:00 +0000 UTC
|
||||
sha256:s2 stale 2026-01-02 10:00:00 +0000 UTC
|
||||
sha256:s3 stale 2026-01-01 10:00:00 +0000 UTC
|
||||
sha256:s3 stale 2026-01-01 10:00:00 +0000 UTC
|
||||
sha256:d1 <none> 2026-01-01 10:00:00 +0000 UTC
|
||||
sha256:d2 <none> 2026-01-01 10:00:00 +0000 UTC
|
||||
- name: containers
|
||||
content: |
|
||||
c1
|
||||
c2
|
||||
- name: container-images
|
||||
content: |
|
||||
c1 sha256:a4
|
||||
c2 sha256:d2
|
||||
loop_control:
|
||||
loop_var: gitea_runner_test_fixture
|
||||
label: "{{ gitea_runner_test_fixture.name }}"
|
||||
|
||||
- name: Run each count prune case
|
||||
ansible.builtin.shell:
|
||||
cmd: |
|
||||
cd {{ gitea_runner_test_dir }} && rm -f rmi fail-*
|
||||
{{ ('touch fail-' ~ gitea_runner_test_case.fail) if gitea_runner_test_case.fail else ':' }}
|
||||
/usr/local/sbin/gitea-runner-docker-prune-keep {{ gitea_runner_test_case.keep }} >&2
|
||||
rc=$?
|
||||
[ -e rmi ] && LC_ALL=C sort rmi
|
||||
exit "$rc"
|
||||
loop:
|
||||
- {name: keep-two, keep: 2, fail: "", rc: 0, rmi: [rmi --force sha256:s3, rmi sha256:a3, rmi sha256:a5, rmi sha256:d1]}
|
||||
- {name: image-ls-fails, keep: 2, fail: image, rc: 1, rmi: []}
|
||||
- {name: ps-fails, keep: 2, fail: ps, rc: 1, rmi: []}
|
||||
- {name: inspect-fails, keep: 2, fail: container, rc: 1, rmi: []}
|
||||
- {name: zero-count, keep: 0, fail: "", rc: 2, rmi: []}
|
||||
loop_control:
|
||||
loop_var: gitea_runner_test_case
|
||||
label: "{{ gitea_runner_test_case.name }}"
|
||||
register: gitea_runner_test_keep
|
||||
# The rc and the rmi calls are the result under test; the next task asserts them.
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
|
||||
- name: The count prune removed exactly the expected images, and nothing when a listing failed
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- item.rc == item.gitea_runner_test_case.rc
|
||||
- item.stdout_lines == item.gitea_runner_test_case.rmi
|
||||
fail_msg: "case {{ item.gitea_runner_test_case.name }}: rc {{ item.rc }}, rmi {{ item.stdout_lines }}, output {{ item.stderr }}"
|
||||
quiet: true
|
||||
loop: "{{ gitea_runner_test_keep.results }}"
|
||||
loop_control:
|
||||
label: "{{ item.gitea_runner_test_case.name }}"
|
||||
|
||||
# The above and at-use cases set the threshold one below and equal to the root's use, read
|
||||
# just before (df rounds up, so a used root is at least 1%); /run/lock is never above 50%.
|
||||
- name: Run each disk check case
|
||||
ansible.builtin.shell:
|
||||
cmd: |
|
||||
cd {{ gitea_runner_test_dir }} && rm -f fail-*
|
||||
{{ ('touch fail-' ~ gitea_runner_test_case.fail) if gitea_runner_test_case.fail else ':' }}
|
||||
echo '{{ gitea_runner_test_case.root }}' > root
|
||||
threshold={{ gitea_runner_test_case.threshold }}
|
||||
{% if gitea_runner_test_case.threshold in ['below-use', 'use'] %}
|
||||
df -P / > df-root && use=$(awk 'NR == 2 { sub(/%$/, "", $5); print $5 }' df-root)
|
||||
threshold=$((use - {{ 1 if gitea_runner_test_case.threshold == 'below-use' else 0 }}))
|
||||
{% endif %}
|
||||
/usr/local/sbin/gitea-runner-docker-prune-disk-check "$threshold"
|
||||
loop:
|
||||
- {name: above, root: /, threshold: below-use, fail: "", rc: 0}
|
||||
- {name: below, root: /run/lock, threshold: 50, fail: "", rc: 1, out: "% full, not above 50%: skipping the prune"}
|
||||
- {name: at-use, root: /, threshold: use, fail: "", rc: 1, out: "not above"}
|
||||
- {name: info-fails, root: /, threshold: below-use, fail: info, rc: 1}
|
||||
- {name: root-missing, root: /nonexistent, threshold: 1, fail: "", rc: 1}
|
||||
loop_control:
|
||||
loop_var: gitea_runner_test_case
|
||||
label: "{{ gitea_runner_test_case.name }}"
|
||||
register: gitea_runner_test_pressure
|
||||
# The rc is the result under test; the next task asserts it.
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
|
||||
- name: The disk check let the pressure prune run only above the threshold
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- item.rc == item.gitea_runner_test_case.rc
|
||||
- item.gitea_runner_test_case.out | default('') in item.stdout
|
||||
fail_msg: "case {{ item.gitea_runner_test_case.name }}: rc {{ item.rc }}, output {{ item.stdout }} {{ item.stderr }}"
|
||||
quiet: true
|
||||
loop: "{{ gitea_runner_test_pressure.results }}"
|
||||
loop_control:
|
||||
label: "{{ item.gitea_runner_test_case.name }}"
|
||||
|
||||
- name: Remove the stub docker CLI and its files
|
||||
ansible.builtin.file:
|
||||
path: "{{ gitea_runner_test_path }}"
|
||||
state: absent
|
||||
loop: [/usr/bin/docker, "{{ gitea_runner_test_dir }}"]
|
||||
loop_control:
|
||||
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
|
||||
@@ -237,10 +424,25 @@
|
||||
expect: gitea_runner_registration_scope must be empty
|
||||
- name: prune schedule with a newline
|
||||
vars: {gitea_runner_docker_prune_schedule: "daily\nExecStartPre=/bin/false"}
|
||||
expect: plain OnCalendar value
|
||||
expect: gitea_runner_docker_prune_schedule must be a plain OnCalendar value
|
||||
- name: prune age without a unit
|
||||
vars: {gitea_runner_docker_prune_image_age: "168"}
|
||||
expect: plain OnCalendar value
|
||||
expect: the two ages a number with s, m or h
|
||||
- name: negative prune count
|
||||
vars: {gitea_runner_docker_prune_keep_per_repository: -1}
|
||||
expect: gitea_runner_docker_prune_keep_per_repository must be 0 (off) or more
|
||||
- name: disk threshold of 100
|
||||
vars: {gitea_runner_docker_prune_disk_threshold_percent: 100}
|
||||
expect: gitea_runner_docker_prune_disk_threshold_percent must be 0 (off) or 1 to 99
|
||||
- name: disk check schedule with a newline
|
||||
vars: {gitea_runner_docker_prune_disk_check_schedule: "hourly\nExecStartPre=/bin/false"}
|
||||
expect: gitea_runner_docker_prune_disk_check_schedule must be a plain OnCalendar value
|
||||
- name: builder keep-storage with an extra argument
|
||||
vars: {gitea_runner_docker_prune_builder_keep_storage: "10GB --all"}
|
||||
expect: gitea_runner_docker_prune_builder_keep_storage must be a number
|
||||
- name: disk threshold without a count
|
||||
vars: {gitea_runner_docker_prune_keep_per_repository: 0}
|
||||
expect: needs gitea_runner_docker_prune_keep_per_repository above 0
|
||||
- name: molecule tooling without a requirements file
|
||||
vars: {gitea_runner_molecule_enabled: true}
|
||||
expect: gitea_runner_collections_requirements_file must name
|
||||
@@ -351,6 +553,57 @@
|
||||
- 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,
|
||||
# puts them back, so the remove path below still has them to remove.
|
||||
- name: Verify turning the pressure prune off
|
||||
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
|
||||
|
||||
- name: Ask systemd about the pressure timer after turning it on again
|
||||
ansible.builtin.systemd:
|
||||
name: gitea-runner-docker-prune-pressure.timer
|
||||
register: gitea_runner_test_pressure_timer_on
|
||||
|
||||
- name: The pressure timer is armed again
|
||||
ansible.builtin.assert:
|
||||
that: gitea_runner_test_pressure_timer_on.status.ActiveState == 'active'
|
||||
quiet: true
|
||||
|
||||
# The remove path. Last on purpose: it runs once, outside the idempotence step, and nothing runs
|
||||
# after verify except molecule's own cleanup and destroy of the container. The download URL still
|
||||
# points at a valid 6.0.1 release, so a role that went on to install after the removal would put
|
||||
@@ -376,6 +629,10 @@
|
||||
- /etc/systemd/system/gitea-runner-docker-prune.service
|
||||
- /etc/systemd/system/gitea-runner-docker-prune.timer
|
||||
- /usr/local/sbin/gitea-runner-docker-prune-gate
|
||||
- /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-keep
|
||||
- /usr/local/sbin/gitea-runner-docker-prune-disk-check
|
||||
- /etc/systemd/system/multi-user.target.wants/gitea-runner.service
|
||||
loop_control:
|
||||
loop_var: gitea_runner_test_path
|
||||
@@ -384,7 +641,7 @@
|
||||
- name: Ask systemd whether the runner and the timer are still active
|
||||
ansible.builtin.systemd:
|
||||
name: "{{ gitea_runner_test_unit_name }}"
|
||||
loop: [gitea-runner, gitea-runner-docker-prune.timer]
|
||||
loop: [gitea-runner, gitea-runner-docker-prune.timer, gitea-runner-docker-prune-pressure.timer]
|
||||
loop_control:
|
||||
loop_var: gitea_runner_test_unit_name
|
||||
register: gitea_runner_test_after
|
||||
|
||||
@@ -45,6 +45,18 @@
|
||||
when: gitea_runner_docker_prune_enabled | bool
|
||||
tags: [gitea_runner, prune]
|
||||
|
||||
# Used by the weekly and pressure services when gitea_runner_docker_prune_keep_per_repository > 0.
|
||||
- name: Install Docker prune count script
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
src: gitea-runner-docker-prune-keep
|
||||
dest: /usr/local/sbin/gitea-runner-docker-prune-keep
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
when: gitea_runner_docker_prune_enabled | bool
|
||||
tags: [gitea_runner, prune]
|
||||
|
||||
- name: Install Docker prune service
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
@@ -65,6 +77,9 @@
|
||||
ExecStart=-/usr/bin/docker image prune --all --force --filter until={{ gitea_runner_docker_prune_image_age }}
|
||||
ExecStart=-/usr/bin/docker builder prune --force --filter until={{ gitea_runner_docker_prune_image_age }}
|
||||
ExecStart=-/usr/bin/docker volume prune --force
|
||||
{% if gitea_runner_docker_prune_keep_per_repository | int > 0 %}
|
||||
ExecStart=-/usr/local/sbin/gitea-runner-docker-prune-keep {{ gitea_runner_docker_prune_keep_per_repository }}
|
||||
{% endif %}
|
||||
register: gitea_runner_prune_service
|
||||
when: gitea_runner_docker_prune_enabled | bool
|
||||
tags: [gitea_runner, prune]
|
||||
@@ -91,13 +106,108 @@
|
||||
when: gitea_runner_docker_prune_enabled | bool
|
||||
tags: [gitea_runner, prune]
|
||||
|
||||
# Pressure path: above the disk threshold, the count prune and a capped builder prune run behind
|
||||
# the same gate. There is no low watermark: if usage stays high, the count or the disk needs a human.
|
||||
# The builder cache is capped because job containers share the host's docker.sock by default.
|
||||
- name: Install the pressure prune when a disk threshold is set
|
||||
when:
|
||||
- gitea_runner_docker_prune_enabled | bool
|
||||
- gitea_runner_docker_prune_disk_threshold_percent | int > 0
|
||||
tags: [gitea_runner, prune]
|
||||
block:
|
||||
- name: Install Docker disk check script
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
src: gitea-runner-docker-prune-disk-check
|
||||
dest: /usr/local/sbin/gitea-runner-docker-prune-disk-check
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
|
||||
- name: Install Docker pressure prune service
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/systemd/system/gitea-runner-docker-prune-pressure.service
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
content: |
|
||||
[Unit]
|
||||
Description=Prune Docker images when the disk of the Gitea runner host is filling up
|
||||
After=docker.service
|
||||
Requires=docker.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecCondition=/usr/local/sbin/gitea-runner-docker-prune-gate {{ gitea_runner_docker_prune_job_max_age }}
|
||||
ExecCondition=/usr/local/sbin/gitea-runner-docker-prune-disk-check {{ gitea_runner_docker_prune_disk_threshold_percent }}
|
||||
ExecStart=-/usr/local/sbin/gitea-runner-docker-prune-keep {{ gitea_runner_docker_prune_keep_per_repository }}
|
||||
ExecStart=-/usr/bin/docker builder prune --force --keep-storage {{ gitea_runner_docker_prune_builder_keep_storage }}
|
||||
register: __gitea_runner_prune_pressure_service
|
||||
|
||||
- name: Install Docker pressure prune timer
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/systemd/system/gitea-runner-docker-prune-pressure.timer
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
content: |
|
||||
[Unit]
|
||||
Description=Disk check for the Docker pressure prune on the Gitea runner host
|
||||
|
||||
[Timer]
|
||||
OnCalendar={{ gitea_runner_docker_prune_disk_check_schedule }}
|
||||
Persistent=true
|
||||
RandomizedDelaySec=2m
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
register: __gitea_runner_prune_pressure_timer
|
||||
|
||||
# A threshold set back to 0 turns the pressure path off: the units go, so nothing is left armed.
|
||||
- name: Stop the Docker pressure prune timer when the disk threshold is 0
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
name: gitea-runner-docker-prune-pressure.timer
|
||||
state: stopped
|
||||
enabled: false
|
||||
register: __gitea_runner_prune_pressure_stop
|
||||
failed_when:
|
||||
- __gitea_runner_prune_pressure_stop.failed | default(false)
|
||||
- "'Could not find the requested service' not in (__gitea_runner_prune_pressure_stop.msg | default(''))"
|
||||
when:
|
||||
- gitea_runner_docker_prune_enabled | bool
|
||||
- gitea_runner_docker_prune_disk_threshold_percent | int == 0
|
||||
tags: [gitea_runner, prune]
|
||||
|
||||
- name: Remove the Docker pressure prune units when the disk threshold is 0
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: "{{ gitea_runner_prune_pressure_file }}"
|
||||
state: absent
|
||||
loop:
|
||||
- /etc/systemd/system/gitea-runner-docker-prune-pressure.timer
|
||||
- /etc/systemd/system/gitea-runner-docker-prune-pressure.service
|
||||
- /usr/local/sbin/gitea-runner-docker-prune-disk-check
|
||||
loop_control:
|
||||
loop_var: gitea_runner_prune_pressure_file
|
||||
register: __gitea_runner_prune_pressure_removed
|
||||
when:
|
||||
- gitea_runner_docker_prune_enabled | bool
|
||||
- gitea_runner_docker_prune_disk_threshold_percent | int == 0
|
||||
tags: [gitea_runner, prune]
|
||||
|
||||
- name: Reload systemd for the prune units
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
when:
|
||||
- gitea_runner_docker_prune_enabled | bool
|
||||
- gitea_runner_prune_service is changed or gitea_runner_prune_timer is changed
|
||||
- >-
|
||||
gitea_runner_prune_service is changed or gitea_runner_prune_timer is changed
|
||||
or __gitea_runner_prune_pressure_service is changed or __gitea_runner_prune_pressure_timer is changed
|
||||
or __gitea_runner_prune_pressure_removed is changed
|
||||
tags: [gitea_runner, prune]
|
||||
|
||||
# Not in check mode: on the first run the unit files above are only simulated, so systemd
|
||||
@@ -112,3 +222,15 @@
|
||||
- gitea_runner_docker_prune_enabled | bool
|
||||
- not ansible_check_mode
|
||||
tags: [gitea_runner, prune]
|
||||
|
||||
- name: Enable the Docker pressure prune timer
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
name: gitea-runner-docker-prune-pressure.timer
|
||||
enabled: true
|
||||
state: "{{ 'restarted' if __gitea_runner_prune_pressure_timer is changed else 'started' }}"
|
||||
when:
|
||||
- gitea_runner_docker_prune_enabled | bool
|
||||
- gitea_runner_docker_prune_disk_threshold_percent | int > 0
|
||||
- not ansible_check_mode
|
||||
tags: [gitea_runner, prune]
|
||||
@@ -15,12 +15,17 @@
|
||||
- "'Could not find the requested service' not in (gitea_runner_stop.msg | default(''))"
|
||||
tags: [gitea_runner, remove]
|
||||
|
||||
- name: Stop the Docker prune timer
|
||||
- name: Stop the Docker prune timers
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
name: gitea-runner-docker-prune.timer
|
||||
name: "{{ gitea_runner_prune_timer_name }}"
|
||||
state: stopped
|
||||
enabled: false
|
||||
loop:
|
||||
- gitea-runner-docker-prune.timer
|
||||
- gitea-runner-docker-prune-pressure.timer
|
||||
loop_control:
|
||||
loop_var: gitea_runner_prune_timer_name
|
||||
register: gitea_runner_prune_stop
|
||||
failed_when:
|
||||
- gitea_runner_prune_stop.failed | default(false)
|
||||
@@ -35,15 +40,23 @@
|
||||
loop:
|
||||
- gitea-runner-docker-prune.timer
|
||||
- gitea-runner-docker-prune.service
|
||||
- gitea-runner-docker-prune-pressure.timer
|
||||
- gitea-runner-docker-prune-pressure.service
|
||||
loop_control:
|
||||
loop_var: gitea_runner_prune_unit
|
||||
tags: [gitea_runner, remove]
|
||||
|
||||
- name: Remove the Docker prune gate script
|
||||
- name: Remove the Docker prune scripts
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: /usr/local/sbin/gitea-runner-docker-prune-gate
|
||||
path: "/usr/local/sbin/{{ gitea_runner_prune_script }}"
|
||||
state: absent
|
||||
loop:
|
||||
- gitea-runner-docker-prune-gate
|
||||
- gitea-runner-docker-prune-keep
|
||||
- gitea-runner-docker-prune-disk-check
|
||||
loop_control:
|
||||
loop_var: gitea_runner_prune_script
|
||||
tags: [gitea_runner, remove]
|
||||
|
||||
- name: Remove systemd unit
|
||||
|
||||
@@ -36,6 +36,50 @@
|
||||
quiet: true
|
||||
when: gitea_runner_docker_prune_enabled | bool
|
||||
|
||||
- name: Validate the Docker prune count
|
||||
ansible.builtin.assert:
|
||||
that: gitea_runner_docker_prune_keep_per_repository | int >= 0
|
||||
fail_msg: gitea_runner_docker_prune_keep_per_repository must be 0 (off) or more.
|
||||
quiet: true
|
||||
when: gitea_runner_docker_prune_enabled | bool
|
||||
|
||||
- name: Validate the Docker prune disk threshold
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- gitea_runner_docker_prune_disk_threshold_percent | int >= 0
|
||||
- gitea_runner_docker_prune_disk_threshold_percent | int <= 99
|
||||
fail_msg: gitea_runner_docker_prune_disk_threshold_percent must be 0 (off) or 1 to 99.
|
||||
quiet: true
|
||||
when: gitea_runner_docker_prune_enabled | bool
|
||||
|
||||
# Same character set as the weekly schedule.
|
||||
- name: Validate the Docker prune disk check schedule
|
||||
ansible.builtin.assert:
|
||||
that: gitea_runner_docker_prune_disk_check_schedule is match('^[A-Za-z0-9 :*,./~-]+$')
|
||||
fail_msg: gitea_runner_docker_prune_disk_check_schedule must be a plain OnCalendar value (no newline or %).
|
||||
quiet: true
|
||||
when: gitea_runner_docker_prune_enabled | bool
|
||||
|
||||
# A subset of the units Docker accepts for --keep-storage.
|
||||
- name: Validate the Docker builder keep-storage size
|
||||
ansible.builtin.assert:
|
||||
that: gitea_runner_docker_prune_builder_keep_storage is match('^[0-9]+(B|KB|MB|GB|TB)?$')
|
||||
fail_msg: >-
|
||||
gitea_runner_docker_prune_builder_keep_storage must be a number with an optional B, KB, MB, GB or TB (e.g. 10GB).
|
||||
quiet: true
|
||||
when: gitea_runner_docker_prune_enabled | bool
|
||||
|
||||
- name: Require a count for the pressure prune
|
||||
ansible.builtin.assert:
|
||||
that: >-
|
||||
gitea_runner_docker_prune_disk_threshold_percent | int == 0
|
||||
or gitea_runner_docker_prune_keep_per_repository | int > 0
|
||||
fail_msg: >-
|
||||
gitea_runner_docker_prune_disk_threshold_percent needs gitea_runner_docker_prune_keep_per_repository above 0:
|
||||
the pressure prune removes images by that count.
|
||||
quiet: true
|
||||
when: gitea_runner_docker_prune_enabled | bool
|
||||
|
||||
- name: Require the collections requirements file for the molecule tooling
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
|
||||
@@ -34,6 +34,7 @@ templating error instead of the role's own message.
|
||||
| `system_baseline_apt_periodic_settings` | from profile | no | Keys for `20auto-upgrades` |
|
||||
| `system_baseline_unattended_upgrade_settings` | from profile | no | Keys for `50unattended-upgrades` |
|
||||
| `system_baseline_unattended_upgrade_origins` | from profile | no | Pinned `Origins-Pattern` entries; `[]` keeps the distribution default (see below) |
|
||||
| `system_baseline_unattended_upgrade_package_blacklist` | `[]` | no | Packages unattended-upgrades must not touch, as regular expressions (see below) |
|
||||
| `system_baseline_sysctl_hardening` | from profile | no | List of `name` and `value` sysctl pairs |
|
||||
| `system_baseline_secure_tmp_mounts` | from profile | no | Paths remounted as tmpfs with `noexec,nosuid,nodev` |
|
||||
| `system_baseline_journal_max_use` | `200M` | no | Upper bound of the persistent journal (journald `SystemMaxUse`). |
|
||||
@@ -58,7 +59,7 @@ system_baseline_profile_overrides:
|
||||
|
||||
Besides `main`, two task files are a supported interface, for a caller that drives its own reboot (for example a Kubernetes node patch flow that cordons and drains first). Their names, the fact name and the behaviour below follow the Collection's semantic versioning: changing them is a breaking change.
|
||||
|
||||
- `tasks_from: update`: apt update, upgrade, autoremove and autoclean, nothing else. It does not read `system_baseline_update`: calling the entry point is the request to update.
|
||||
- `tasks_from: update`: apt update, upgrade, autoremove and autoclean, nothing else. It does not read `system_baseline_update`: calling the entry point is the request to update. In check mode it previews the upgrade; the main flow does not (see "Check mode").
|
||||
- `tasks_from: reboot`: sets the fact `system_baseline_reboot_required` (bool, from `/var/run/reboot-required`) on Debian family hosts, then reboots when `system_baseline_reboot_if_required` is true and the fact is true. With `system_baseline_reboot_if_required: false` it only computes the fact. On other families the fact is not set, so read it with `default(false)`.
|
||||
|
||||
```yaml
|
||||
@@ -119,6 +120,10 @@ system_baseline_tmux_windows:
|
||||
|
||||
`system_baseline_update: false` skips the package update of the main flow, for hosts patched by a separate, operator-run flow (for example a full upgrade with a rolling reboot). Everything else, unattended-upgrades included, still runs. The reboot check still runs as well, so set `system_baseline_reboot_if_required: false` too when that flow owns the reboot. Running the play with `--skip-tags update` skips the same task for one run only, and also the reboot.
|
||||
|
||||
## Check mode
|
||||
|
||||
In a dry run (`--check`) the main flow does not run the apt upgrade: a package that is only waiting for the next patch run, or a package cache older than an hour, is not drift, and the package module reports both as `changed`, so a scheduled dry run would flag every host whenever a package landed in between. The autoremove and autoclean step still runs, and is checked: a leftover package it would remove is reported as `changed`, on purpose. `apt-get autoclean` runs in this step in a real run, in the main flow and in the `update` entry point. The `update` entry point is unchanged: it is an explicit request to update, so in check mode it still previews the upgrade.
|
||||
|
||||
## Unattended-upgrades origins
|
||||
|
||||
A profile's `unattended_upgrade_origins` list pins the origins unattended-upgrades may install from. apt merges every file in `/etc/apt/apt.conf.d` and appends list entries across files, so a later file that only lists origins would widen the distribution's `50unattended-upgrades`, never narrow it. A non-empty list is therefore written to `/etc/apt/apt.conf.d/90unattended-upgrades-origins`, which sorts after `50unattended-upgrades`, clears `Unattended-Upgrade::Allowed-Origins` and `Unattended-Upgrade::Origins-Pattern` (apt's `#clear` directive) and sets only the listed patterns. The origin lists in `50unattended-upgrades` itself are not edited. An empty or missing list removes the drop-in.
|
||||
@@ -129,6 +134,26 @@ A profile's `unattended_upgrade_origins` list pins the origins unattended-upgrad
|
||||
- A file in `/etc/apt/apt.conf.d` that sorts after `90unattended-upgrades-origins` can still add origins, and so can `/etc/apt/apt.conf`, which apt reads after `apt.conf.d`.
|
||||
- Check the merged result on a host with `apt-config dump | grep -E 'Unattended-Upgrade::(Origins-Pattern|Allowed-Origins)'`.
|
||||
|
||||
## Unattended-upgrades package blacklist
|
||||
|
||||
`system_baseline_unattended_upgrade_package_blacklist` keeps individual packages out of unattended-upgrades, for a host whose kernel or drivers must not change (for example one with hardware passthrough). Each entry is a regular expression matched against the package name, so `linux-image-.*` covers every kernel image; anchor an entry (`^name$`) when it must not match longer names too. A non-empty list is written to `/etc/apt/apt.conf.d/90unattended-upgrades-blacklist` as `Unattended-Upgrade::Package-Blacklist`. apt appends list entries across files, so the entries are added to those of `50unattended-upgrades`, which is not edited. An empty list removes the file. An entry may not hold a double quote, a backslash or a line break.
|
||||
|
||||
- Example for Proxmox VE hosts: packages that should only ever change through a deliberate `apt dist-upgrade` (Proxmox's documented way to update, because its packages add and remove dependencies). The `pve` profile already pins unattended-upgrades to Debian's origins, so these never come from the Proxmox repository through unattended-upgrades; the list keeps that true if the pin is ever removed or widened. Adjust it to the repositories you use:
|
||||
|
||||
```yaml
|
||||
system_baseline_unattended_upgrade_package_blacklist:
|
||||
- "^pve-.*" # pve-manager, pve-kernel-*, pve-qemu-kvm, pve-container ...
|
||||
- "^libpve-.*"
|
||||
- "^proxmox-.*" # proxmox-ve, proxmox-kernel-*, proxmox-backup-client ...
|
||||
- "^qemu-server$"
|
||||
- "^ceph.*"
|
||||
- "^corosync$"
|
||||
```
|
||||
|
||||
- Like the other unattended-upgrades settings, it is applied only when `unattended-upgrades` is in the profile's packages.
|
||||
- This is unattended-upgrades only. The role's own apt upgrade (`update` tag, and the `update` entry point) is not limited by it; set `system_baseline_update: false` for a host that is patched by a separate flow.
|
||||
- Check the merged result on a host with `apt-config dump | grep Package-Blacklist`.
|
||||
|
||||
## Notes
|
||||
|
||||
- The `pve` profile has no `ufw`; the `ubuntu_*` profiles install it and `fail2ban`.
|
||||
|
||||
@@ -230,5 +230,8 @@ system_baseline_apt_periodic_settings: "{{ system_baseline_profile.apt_periodic_
|
||||
system_baseline_unattended_upgrade_settings: "{{ system_baseline_profile.unattended_upgrade_settings }}"
|
||||
# default([]): a system_baseline_profiles written before this key existed keeps the distribution default.
|
||||
system_baseline_unattended_upgrade_origins: "{{ system_baseline_profile.unattended_upgrade_origins | default([]) }}"
|
||||
# Packages unattended-upgrades must not touch, on top of the profile: a per-host list, empty by default (see README, "Unattended-upgrades
|
||||
# package blacklist"). Entries are regular expressions matched against the package name.
|
||||
system_baseline_unattended_upgrade_package_blacklist: []
|
||||
system_baseline_sysctl_hardening: "{{ system_baseline_profile.sysctl_hardening }}"
|
||||
system_baseline_secure_tmp_mounts: "{{ system_baseline_profile.secure_tmp_mounts }}"
|
||||
@@ -102,6 +102,19 @@ argument_specs:
|
||||
default: true
|
||||
description:
|
||||
- Reboot when C(/var/run/reboot-required) exists after the run.
|
||||
system_baseline_unattended_upgrade_package_blacklist:
|
||||
type: list
|
||||
elements: str
|
||||
default: []
|
||||
description:
|
||||
- >-
|
||||
Packages unattended-upgrades must leave alone, for a host whose kernel or drivers must not change. Entries are regular
|
||||
expressions matched against the package name, so C(linux-image-.*) covers every kernel image; anchor an entry (C(^name$))
|
||||
when it must not match longer names too.
|
||||
- >-
|
||||
A non-empty list is written to C(/etc/apt/apt.conf.d/90unattended-upgrades-blacklist) as C(Unattended-Upgrade::Package-Blacklist).
|
||||
apt appends list entries across files, so these are added to those of C(50unattended-upgrades). An empty list removes the file.
|
||||
An entry may not hold a double quote, a backslash or a line break.
|
||||
system_baseline_update:
|
||||
type: bool
|
||||
default: true
|
||||
@@ -111,11 +124,14 @@ argument_specs:
|
||||
separate flow; the reboot check still runs, so set C(system_baseline_reboot_if_required) as well when that flow also owns
|
||||
the reboot.
|
||||
- The C(update) entry point does not read it.
|
||||
- In check mode the main flow skips the upgrade itself (a pending update is not drift); autoremove and autoclean are still checked.
|
||||
update:
|
||||
short_description: Update and upgrade apt packages
|
||||
description:
|
||||
- Runs an apt update, upgrade, autoremove and autoclean, and nothing else.
|
||||
- Calling it is a request to update, so it does not read C(system_baseline_update), which only gates the main flow.
|
||||
- >-
|
||||
Calling it is a request to update, so it does not read C(system_baseline_update), which only gates the main flow. In check mode it
|
||||
still previews the upgrade.
|
||||
- >-
|
||||
A supported entry point (C(tasks_from=update)) for a caller that drives its own reboot, for example a
|
||||
Kubernetes node patch flow that drains the node first.
|
||||
|
||||
@@ -19,6 +19,21 @@
|
||||
that: "'is invalid' in ansible_failed_result.msg | default('')"
|
||||
quiet: true
|
||||
|
||||
# A quote, a null item and a bare string (not a list) each stop the run: the bare string would otherwise be split into one-character
|
||||
# patterns, and the null item would become an empty pattern that matches every package.
|
||||
- name: A bad package blacklist is refused
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Refuse each bad value
|
||||
ansible.builtin.include_tasks: tasks/refuse_blacklist.yml
|
||||
vars:
|
||||
system_baseline_refused_blacklist: "{{ item }}"
|
||||
loop:
|
||||
- ['bad"name']
|
||||
- [null]
|
||||
- linux-image-.*
|
||||
|
||||
- name: Converge the LXC profile
|
||||
hosts: all
|
||||
gather_facts: true
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
# One refusal: the role must stop on validation, before it changes anything, with a message that names the variable.
|
||||
- name: Run the role with a bad package blacklist
|
||||
block:
|
||||
- name: Include system_baseline
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.system_baseline
|
||||
vars:
|
||||
system_baseline_system_type: ubuntu_lxc
|
||||
system_baseline_unattended_upgrade_package_blacklist: "{{ system_baseline_refused_blacklist }}"
|
||||
- name: Unreachable when validation works
|
||||
ansible.builtin.fail:
|
||||
msg: system_baseline ran with an invalid package blacklist
|
||||
rescue:
|
||||
- name: The validation stopped the play
|
||||
ansible.builtin.assert:
|
||||
that: "'system_baseline_unattended_upgrade_package_blacklist must be' in ansible_failed_result.msg | default('')"
|
||||
quiet: true
|
||||
@@ -270,3 +270,84 @@
|
||||
- system_baseline_verify_apt_config_restored.stdout_lines | select('match', 'Unattended-Upgrade::Allowed-Origins::\s') | list | length > 0
|
||||
- system_baseline_verify_apt_config_restored.stdout is not search('origin=Debian')
|
||||
quiet: true
|
||||
|
||||
# The package blacklist: written and parsed by apt as a list, left alone by a second run, removed by an empty list. Here and not in
|
||||
# converge, because converge runs the default (empty) list.
|
||||
- name: The unattended-upgrades package blacklist is written, kept and removed
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
vars:
|
||||
system_baseline_verify_blacklist: ["linux-image-.*", "nvidia-.*"]
|
||||
tasks:
|
||||
- name: Run the unattended-upgrades tasks with a blacklist
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.system_baseline
|
||||
tasks_from: unattended_upgrades
|
||||
vars:
|
||||
system_baseline_system_type: ubuntu_lxc
|
||||
system_baseline_unattended_upgrade_package_blacklist: "{{ system_baseline_verify_blacklist }}"
|
||||
|
||||
- name: Stat the blacklist drop-in
|
||||
ansible.builtin.stat:
|
||||
path: /etc/apt/apt.conf.d/90unattended-upgrades-blacklist
|
||||
register: system_baseline_verify_blacklist_first
|
||||
|
||||
- name: Dump the merged apt configuration
|
||||
ansible.builtin.command: apt-config dump
|
||||
register: system_baseline_verify_blacklist_dump
|
||||
changed_when: false
|
||||
|
||||
- name: Apt reads both entries as a list
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- system_baseline_verify_blacklist_first.stat.exists
|
||||
- >-
|
||||
system_baseline_verify_blacklist_dump.stdout_lines | select('match', 'Unattended-Upgrade::Package-Blacklist::\s') | list ==
|
||||
['Unattended-Upgrade::Package-Blacklist:: "linux-image-.*";', 'Unattended-Upgrade::Package-Blacklist:: "nvidia-.*";']
|
||||
quiet: true
|
||||
|
||||
- name: Run the same tasks again
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.system_baseline
|
||||
tasks_from: unattended_upgrades
|
||||
vars:
|
||||
system_baseline_system_type: ubuntu_lxc
|
||||
system_baseline_unattended_upgrade_package_blacklist: "{{ system_baseline_verify_blacklist }}"
|
||||
|
||||
- name: Stat the blacklist drop-in again
|
||||
ansible.builtin.stat:
|
||||
path: /etc/apt/apt.conf.d/90unattended-upgrades-blacklist
|
||||
register: system_baseline_verify_blacklist_second
|
||||
|
||||
- name: A second run does not rewrite the file
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- system_baseline_verify_blacklist_second.stat.checksum == system_baseline_verify_blacklist_first.stat.checksum
|
||||
- system_baseline_verify_blacklist_second.stat.mtime == system_baseline_verify_blacklist_first.stat.mtime
|
||||
quiet: true
|
||||
|
||||
- name: Run the same tasks with an empty blacklist
|
||||
ansible.builtin.include_role:
|
||||
name: mortis.kamino.system_baseline
|
||||
tasks_from: unattended_upgrades
|
||||
vars:
|
||||
system_baseline_system_type: ubuntu_lxc
|
||||
system_baseline_unattended_upgrade_package_blacklist: []
|
||||
|
||||
- name: Stat the blacklist drop-in after the empty list
|
||||
ansible.builtin.stat:
|
||||
path: /etc/apt/apt.conf.d/90unattended-upgrades-blacklist
|
||||
register: system_baseline_verify_blacklist_removed
|
||||
|
||||
- name: Dump the merged apt configuration after the empty list
|
||||
ansible.builtin.command: apt-config dump
|
||||
register: system_baseline_verify_blacklist_dump_removed
|
||||
changed_when: false
|
||||
|
||||
- name: The file is gone and apt lists no blacklisted package
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- not system_baseline_verify_blacklist_removed.stat.exists
|
||||
- system_baseline_verify_blacklist_dump_removed.stdout_lines | select('match', 'Unattended-Upgrade::Package-Blacklist::\s') | list == []
|
||||
quiet: true
|
||||
tags: always
|
||||
@@ -6,6 +6,8 @@
|
||||
# Only the main flow honours system_baseline_update: the tasks_from: update entry point is an explicit request to update.
|
||||
- name: Update & Upgrade Dist
|
||||
ansible.builtin.import_tasks: update.yml
|
||||
vars:
|
||||
__system_baseline_main_flow: true
|
||||
when: system_baseline_update | bool
|
||||
tags: update
|
||||
|
||||
|
||||
@@ -40,6 +40,23 @@
|
||||
state: absent
|
||||
when: system_baseline_unattended_upgrade_origins | length == 0
|
||||
|
||||
- name: Keep packages out of unattended-upgrades
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: unattended-upgrades-blacklist.j2
|
||||
dest: /etc/apt/apt.conf.d/90unattended-upgrades-blacklist
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
when: system_baseline_unattended_upgrade_package_blacklist | length > 0
|
||||
|
||||
- name: Remove the package blacklist when none is set
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: /etc/apt/apt.conf.d/90unattended-upgrades-blacklist
|
||||
state: absent
|
||||
when: system_baseline_unattended_upgrade_package_blacklist | length == 0
|
||||
|
||||
- name: Validate unattended-upgrades config
|
||||
become: true
|
||||
ansible.builtin.command: unattended-upgrades --dry-run --debug
|
||||
|
||||
@@ -1,9 +1,19 @@
|
||||
---
|
||||
# In the main flow a dry run (--check) does not run the upgrade: a package that is only waiting for the next patch run is not drift, and
|
||||
# the package module reports `changed` for it, so a scheduled dry run flagged every host whenever a package landed in between. The
|
||||
# tasks_from: update entry point is an explicit request to update and still previews the upgrade in check mode: only main.yml sets
|
||||
# __system_baseline_main_flow. Leftover packages (autoremove) and the cache (autoclean) stay checked either way.
|
||||
- name: Update & upgrade apt packages
|
||||
ansible.builtin.package:
|
||||
update_cache: true
|
||||
upgrade: true
|
||||
autoremove: true
|
||||
autoclean: true
|
||||
cache_valid_time: 3600
|
||||
become: true
|
||||
when: not (ansible_check_mode and __system_baseline_main_flow | default(false))
|
||||
|
||||
# autoremove must stay in this task: the apt module accepts autoclean alone only together with one of autoremove, name, update_cache or upgrade.
|
||||
- name: Remove unused packages and clean the apt cache
|
||||
ansible.builtin.package:
|
||||
autoremove: true
|
||||
autoclean: true
|
||||
become: true
|
||||
@@ -35,6 +35,21 @@
|
||||
when: system_baseline_tmux_autostart | bool
|
||||
tags: always
|
||||
|
||||
# Each package pattern is written inside a double-quoted apt.conf string, like the origins below: the same characters are refused.
|
||||
- name: Validate the unattended-upgrades package blacklist
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- system_baseline_unattended_upgrade_package_blacklist is sequence
|
||||
- system_baseline_unattended_upgrade_package_blacklist is not string
|
||||
- system_baseline_unattended_upgrade_package_blacklist is not mapping
|
||||
- system_baseline_unattended_upgrade_package_blacklist | select('string') | select('match', '^[^"\\\\\n\r]+\Z') | list | length
|
||||
== system_baseline_unattended_upgrade_package_blacklist | length
|
||||
fail_msg: >-
|
||||
system_baseline_unattended_upgrade_package_blacklist must be a list of non-empty one-line strings without a double quote
|
||||
or a backslash.
|
||||
quiet: true
|
||||
tags: always
|
||||
|
||||
# Each origin is written inside a double-quoted apt.conf string: a quote or a line break would end it, a backslash could escape.
|
||||
- name: Validate the unattended-upgrades origins
|
||||
ansible.builtin.assert:
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
// Managed by Ansible (mortis.kamino.system_baseline, tasks/unattended_upgrades.yml). Do not edit: the next run overwrites it.
|
||||
// apt appends list entries across apt.conf.d files, so these packages are added to Unattended-Upgrade::Package-Blacklist of
|
||||
// 50unattended-upgrades. Entries are regular expressions matched against the package name.
|
||||
Unattended-Upgrade::Package-Blacklist {
|
||||
{% for package in system_baseline_unattended_upgrade_package_blacklist %}
|
||||
"{{ package }}";
|
||||
{% endfor %}
|
||||
};
|
||||
@@ -4,7 +4,7 @@ Disables and masks risky services, writes a systemd manager hardening drop-in an
|
||||
|
||||
## Supported platforms
|
||||
|
||||
Hosts with systemd: Ubuntu 24.04 (noble) LXCs, Ubuntu 22.04 (jammy) VMs and Debian 13 (trixie) Proxmox hosts. The role is applied to the three system types in `systemd_hardening_profiles`: `pve` (Proxmox hosts), `ubuntu_lxc` and `ubuntu_vm`. The molecule scenario (`molecule/default/`, CI only) runs the `ubuntu_lxc` profile on Ubuntu 24.04 against stub unit files, because the test image installs none of the services the role disables or masks. It checks the disable and mask results, the manager and service drop-ins (loaded by systemd after the reload) and the refusals; it cannot show that a real `rpcbind` or similar stops. The `pve` and `ubuntu_vm` profiles and Ubuntu 22.04 and Debian 13 are not verified by a test.
|
||||
Hosts with systemd: Ubuntu 24.04 (noble) LXCs, Ubuntu 22.04 (jammy) VMs and Debian 13 (trixie) Proxmox hosts. The role is applied to the three system types in `systemd_hardening_profiles`: `pve` (Proxmox hosts), `ubuntu_lxc` and `ubuntu_vm`. The molecule scenario (`molecule/default/`, CI only) runs the `ubuntu_lxc` profile on Ubuntu 24.04 against stub unit files (a socket and a service for the ones that ship both, a service only and a socket only for the others), because the test image installs none of the services the role disables or masks. It checks that the stub sockets and services end up stopped and disabled or masked, that a listed unit that does not exist is skipped, the manager and service drop-ins (loaded by systemd after the reload) and the refusals; it cannot show that a real `rpcbind` or similar stops. The `pve` and `ubuntu_vm` profiles and Ubuntu 22.04 and Debian 13 are not verified by a test.
|
||||
|
||||
## Requirements and run order
|
||||
|
||||
@@ -49,7 +49,8 @@ Only `always` (the `systemd_hardening_system_type` assert) works as intended. `d
|
||||
|
||||
## Notes
|
||||
|
||||
- Only units that systemd has a unit file for (`LoadState` is not `not-found`) are disabled or masked, with or without the `.service` suffix. The role asks about the listed units only, with one `systemctl show`, and does not list every unit file. A template name such as `[email protected]` is not supported: that call fails.
|
||||
- Every name in `systemd_hardening_disable_services` and `systemd_hardening_mask_services` is looked up as a socket and as a service, with or without the `.service` or `.socket` suffix. Only units that systemd has a unit file for (`LoadState` is not `not-found`) are disabled or masked, the socket first: a stopped service whose socket still listens is started again by the next connection. A name with only a service, only a socket, or neither is fine. The role asks about the listed units only, with one `systemctl show`, and does not list every unit file. A template name such as `[email protected]` is not supported: that call fails.
|
||||
- `systemctl disable` does nothing for a static unit (one with no `[Install]` section), so the systemd module can report `changed` on every run for it; list only names whose units can be enabled, and note that this now applies to a listed name's socket as well.
|
||||
- The manager drop-in (`DefaultLimitNOFILE`, `DefaultLimitNPROC`, `DefaultLimitCORE`, and task, memory and CPU accounting) is written verbatim by `tasks/harden_manager.yml` and has no variable.
|
||||
- Drop-in and manager changes notify `systemd reload`, which runs `daemon-reload`. Handlers are flushed at the end of the role.
|
||||
- Policy lives in defaults, not `vars/`, so group_vars and host_vars can override it.
|
||||
|
||||
@@ -7,7 +7,9 @@ argument_specs:
|
||||
Validates C(systemd_hardening_system_type) against C(systemd_hardening_profiles), then disables the unwanted services and masks the high-risk
|
||||
services that have an installed unit file, writes C(/etc/systemd/system.conf.d/hardening.conf) and renders a drop-in for every
|
||||
unit in C(systemd_hardening_services).
|
||||
- Units that are not installed are skipped. Handlers are flushed at the end of the role.
|
||||
- >-
|
||||
Every listed name is handled as a socket and as a service, the socket first; units that are not installed are skipped.
|
||||
Handlers are flushed at the end of the role.
|
||||
- >-
|
||||
The role also reads C(systemd_hardening_disable_services_extra) (default is the profile entry for C(systemd_hardening_system_type)) and the
|
||||
derived C(systemd_hardening_disable_services_effective) (the base list plus the extra list, a result, do not set it). They are
|
||||
@@ -35,13 +37,17 @@ argument_specs:
|
||||
elements: str
|
||||
default: [rpcbind, avahi-daemon, cups, bluetooth, nfs-server]
|
||||
description:
|
||||
- Services stopped and disabled on every system type, with or without the C(.service) suffix. Only installed units are touched.
|
||||
- >-
|
||||
Services stopped and disabled on every system type, with or without the C(.service) or C(.socket) suffix, together with the
|
||||
socket of the same name. Only installed units are touched.
|
||||
systemd_hardening_mask_services:
|
||||
type: list
|
||||
elements: str
|
||||
default: [telnet, rsh, rlogin, xinetd]
|
||||
description:
|
||||
- Services masked and stopped. Only installed units are touched.
|
||||
- >-
|
||||
Services masked and stopped, with or without the C(.service) or C(.socket) suffix, together with the socket of the same name.
|
||||
Only installed units are touched.
|
||||
systemd_hardening_services:
|
||||
type: dict
|
||||
default: {}
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
---
|
||||
# The image installs none of the services the role touches, so the units it acts on are
|
||||
# stubs in /usr/lib/systemd/system (not /etc: `systemctl mask` refuses to replace a regular
|
||||
# file there). Nothing is started. rpcbind is enabled so the role has something to
|
||||
# disable; telnet only needs to exist; testsvc receives the drop-in.
|
||||
# file there). rpcbind and telnet are a socket and a service each, as the real packages ship them;
|
||||
# cups has only a service and bluetooth only a socket (its Service= is a stub of another name:
|
||||
# systemd refuses to start a socket whose service is not loaded), so the role meets every shape. The sockets
|
||||
# listen on a unix socket under /run and are started, so the role has something to stop. rpcbind,
|
||||
# cups and bluetooth are enabled so the role has something to disable; telnet only needs to
|
||||
# exist; testsvc receives the drop-in.
|
||||
- name: Prepare
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
@@ -22,10 +26,35 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
loop: [rpcbind, telnet, testsvc]
|
||||
loop: [rpcbind, telnet, cups, testsvc, molecule-bluetooth-target]
|
||||
|
||||
- name: Enable rpcbind and reload systemd
|
||||
- name: Install the stub socket unit files
|
||||
ansible.builtin.copy:
|
||||
dest: "/usr/lib/systemd/system/{{ item }}.socket"
|
||||
content: |
|
||||
[Unit]
|
||||
Description=molecule stub socket for {{ item }}
|
||||
|
||||
[Socket]
|
||||
ListenStream=/run/molecule-{{ item }}.sock
|
||||
{% if item == 'bluetooth' %}
|
||||
Service=molecule-bluetooth-target.service
|
||||
{% endif %}
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
loop: [rpcbind, telnet, bluetooth]
|
||||
|
||||
- name: Reload systemd
|
||||
ansible.builtin.systemd:
|
||||
name: rpcbind
|
||||
enabled: true
|
||||
daemon_reload: true
|
||||
|
||||
- name: Enable and start the stub sockets and services
|
||||
ansible.builtin.systemd:
|
||||
name: "{{ item }}"
|
||||
enabled: true
|
||||
state: started
|
||||
loop: [rpcbind.socket, telnet.socket, bluetooth.socket, rpcbind.service, cups.service, telnet.service]
|
||||
@@ -8,28 +8,45 @@
|
||||
tasks:
|
||||
- name: Ask systemd about the stub units
|
||||
ansible.builtin.systemd:
|
||||
name: "{{ item }}.service"
|
||||
loop: [rpcbind, telnet]
|
||||
name: "{{ item }}"
|
||||
loop: [rpcbind.socket, rpcbind.service, cups.service, bluetooth.socket, telnet.socket, telnet.service]
|
||||
register: systemd_hardening_verify_units
|
||||
check_mode: true
|
||||
|
||||
- name: The disabled unit is disabled and the masked unit is masked
|
||||
- name: The disabled units, sockets and services alike, are disabled and stopped
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- systemd_hardening_verify_units.results[0].status.UnitFileState == "disabled"
|
||||
- systemd_hardening_verify_units.results[1].status.UnitFileState == "masked"
|
||||
- item.status.UnitFileState == "disabled"
|
||||
- item.status.ActiveState == "inactive"
|
||||
quiet: true
|
||||
loop: "{{ systemd_hardening_verify_units.results | rejectattr('item', 'match', '^telnet[.]') | list }}"
|
||||
loop_control:
|
||||
label: "{{ item.item }}"
|
||||
|
||||
- name: Ask systemd about a listed unit that is not installed
|
||||
ansible.builtin.command: systemctl show --property=LoadState rsh.service # noqa: command-instead-of-module
|
||||
register: systemd_hardening_verify_missing
|
||||
- name: The masked units, socket and service, are masked and stopped
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- item.status.UnitFileState == "masked"
|
||||
- item.status.ActiveState == "inactive"
|
||||
quiet: true
|
||||
loop: "{{ systemd_hardening_verify_units.results | selectattr('item', 'match', '^telnet[.]') | list }}"
|
||||
loop_control:
|
||||
label: "{{ item.item }}"
|
||||
|
||||
- name: Ask systemd about the listed units that are not installed
|
||||
ansible.builtin.command: systemctl show --property=LoadState {{ item }} # noqa: command-instead-of-module
|
||||
loop: [cups.socket, bluetooth.service, rsh.service, rsh.socket]
|
||||
register: systemd_hardening_verify_absent
|
||||
changed_when: false
|
||||
|
||||
- name: The missing unit was skipped, not masked
|
||||
- name: The missing units were skipped, not masked or created
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- systemd_hardening_verify_missing.stdout == "LoadState=not-found"
|
||||
- item.stdout == "LoadState=not-found"
|
||||
quiet: true
|
||||
loop: "{{ systemd_hardening_verify_absent.results }}"
|
||||
loop_control:
|
||||
label: "{{ item.item }}"
|
||||
|
||||
- name: Read the manager drop-in
|
||||
ansible.builtin.slurp:
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
---
|
||||
# Every installed socket and service of a listed name is stopped and disabled, the socket first: a
|
||||
# stopped service whose socket is still listening is started again by the next connection.
|
||||
- name: Disable unwanted services if present
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
name: "{{ item }}"
|
||||
enabled: false
|
||||
state: stopped
|
||||
loop: "{{ systemd_hardening_disable_services_effective }}"
|
||||
# Only act on installed units; items may be given with or without the
|
||||
# ".service" suffix.
|
||||
when: (item | regex_replace('\.service$', '') ~ '.service') in systemd_hardening_installed_units
|
||||
loop: >-
|
||||
{{ systemd_hardening_disable_services_effective | map('regex_replace', '[.](service|socket)$', '') | unique
|
||||
| product(['socket', 'service']) | map('join', '.') | select('in', systemd_hardening_installed_units) | list }}
|
||||
@@ -25,14 +25,18 @@
|
||||
# prints one block per argument in the order given, `LoadState=not-found` for a unit with no unit
|
||||
# file, and keeps the order for an alias. Not service_facts: it sets a fact named `services`, which
|
||||
# overrides an inventory variable of that name.
|
||||
- name: Find which of the listed service units are installed
|
||||
# Every listed name is looked up as a socket and as a service, socket first: stopping a service
|
||||
# whose socket is still listening does not close the port, systemd starts the service again on the
|
||||
# next connection. A name may be given with or without .service or .socket.
|
||||
- name: Find which of the listed units are installed
|
||||
tags: [disable, mask]
|
||||
vars:
|
||||
__systemd_hardening_probe_units: >-
|
||||
{{ (systemd_hardening_disable_services_effective + systemd_hardening_mask_services)
|
||||
| map('regex_replace', '[.]service$', '') | unique | map('regex_replace', '$', '.service') | list }}
|
||||
| map('regex_replace', '[.](service|socket)$', '') | unique
|
||||
| product(['socket', 'service']) | map('join', '.') | list }}
|
||||
block:
|
||||
- name: Look up the listed service units # noqa: command-instead-of-module
|
||||
- name: Look up the listed units # noqa: command-instead-of-module
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
argv: "{{ ['systemctl', 'show', '--property=LoadState', '--'] + __systemd_hardening_probe_units }}"
|
||||
@@ -41,7 +45,7 @@
|
||||
check_mode: false
|
||||
when: __systemd_hardening_probe_units | length > 0
|
||||
|
||||
- name: Set installed service units
|
||||
- name: Set installed units
|
||||
ansible.builtin.set_fact:
|
||||
systemd_hardening_installed_units: >-
|
||||
{{ __systemd_hardening_probe_units | zip(__systemd_hardening_probe_states)
|
||||
@@ -50,7 +54,7 @@
|
||||
__systemd_hardening_probe_states: "{{ (__systemd_hardening_probe.stdout | default('')).strip().split('\n\n') }}"
|
||||
when: __systemd_hardening_probe_units | length > 0
|
||||
|
||||
- name: Set no installed service units
|
||||
- name: Set no installed units
|
||||
ansible.builtin.set_fact:
|
||||
systemd_hardening_installed_units: []
|
||||
when: __systemd_hardening_probe_units | length == 0
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
---
|
||||
# Same shape as disable_services.yml: every installed socket and service of a listed name is masked, the socket first.
|
||||
# A unit that is not installed can't be started, so masking it is unnecessary.
|
||||
- name: Mask high-risk services
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
name: "{{ item }}"
|
||||
masked: true
|
||||
state: stopped
|
||||
loop: "{{ systemd_hardening_mask_services }}"
|
||||
# A unit that isn't installed can't be started, so masking it is unnecessary.
|
||||
when: (item | regex_replace('\.service$', '') ~ '.service') in systemd_hardening_installed_units
|
||||
loop: >-
|
||||
{{ systemd_hardening_mask_services | map('regex_replace', '[.](service|socket)$', '') | unique
|
||||
| product(['socket', 'service']) | map('join', '.') | select('in', systemd_hardening_installed_units) | list }}
|
||||
@@ -253,7 +253,7 @@ def matrix_of(text): # noqa: C901, PLR0912, PLR0915 hand-written block-YAML re
|
||||
if (keys["job_image"][0] or "").strip()[:1] in "\"'":
|
||||
raise CheckError(
|
||||
f"{MATRIX_FILE}: image '{name}': job_image must be written unquoted "
|
||||
"(the bot-diff guard and Renovate read the plain form)"
|
||||
"(the bot-diff check and Renovate read the plain form)"
|
||||
)
|
||||
matrix[name]["job_image"] = values["job_image"]
|
||||
return matrix
|
||||
|
||||
Loaded 100 of 104 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user