feat(traefik): add traefik_release_url for a release mirror
Build / build (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 0s
Molecule / molecule (pull_request) Canceled after 0s

The archive and checksums URLs were hardcoded to the GitHub releases.
traefik_release_url (default: the GitHub release directory of
traefik_version, as before) lets a host download from a mirror.

The Molecule scenario uses it: verify's update path now downloads
stand-in releases that prepare.yml builds under /opt/molecule-download
(a stub binary answering `version`, its archive and a sha256sum
checksums file), so it no longer fetches two more real releases per
host. The converge still downloads the real release from GitHub, which
keeps the default URL proven. traefik_verify_other_version moves to the
scenario's group vars so prepare and verify share it. The update path
leaves the stub installed, which the README and verify now state.

Verify replaces the fixed 15 s pause with a poll (30 x 2 s) for an
"Unable to obtain ACME certificate" log line stamped at or after the
running process's ExecMainStartTimestamp, so a line left by the
process converge restarted does not count. It fails closed on a
missing start time, a missing line or an unparseable stamp. It then
asserts NRestarts
is 0, since Restart=always would hide a crash.

Assisted-by: Claude Code:claude-opus-5-5
This commit is contained in:
Defame1297 committed 2026-11-27 15:36:34 +00:00
1 parent 6e3ea4521b
commit ab0ce421cc
9 files changed
+117 -17

No files matched your search

+6 -2
View File
@@ -2,8 +2,9 @@
# Runs on the repository's own runner (label kamino-molecule), in the molecule-ubuntu2404
# (MOLECULE_IMAGE) and molecule-ubuntu2604 (MOLECULE_IMAGE_2604) images, pinned in
# .gitea/workflows/molecule.yml. Needs outbound network, unlike most scenarios: the role installs
# packages with apt and downloads Traefik releases from GitHub. No privileged mode: systemd needs a
# writable cgroup and the firewall tools need NET_ADMIN.
# packages with apt and the converge downloads the Traefik release from GitHub (verify's update
# path uses file:// stand-ins built by prepare.yml). No privileged mode: systemd needs a writable
# cgroup and the firewall tools need NET_ADMIN.
driver:
name: docker
platforms:
@@ -54,6 +55,9 @@ provisioner:
traefik_cloudflare_email: [email protected]
traefik_cloudflare_api_token: molecule-not-a-token
traefik_domain: example.test
# Any release other than the role default: verify's update path goes there and back,
# from the stand-ins prepare.yml builds.
traefik_verify_other_version: v3.7.18
ufw_rules:
- {rule: allow, port: 22, proto: tcp, comment: ssh}
# TEST-NET-1 address: nothing answers, the value only has to render