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

+2 -2
View File
@@ -12,7 +12,7 @@
# would otherwise be kept and then fail the checksum check.
- name: Download Traefik archive
ansible.builtin.get_url:
url: "https://github.com/traefik/traefik/releases/download/{{ traefik_version }}/{{ traefik_archive_name }}"
url: "{{ traefik_release_url }}/{{ traefik_archive_name }}"
dest: "{{ traefik_local_archive }}"
mode: "0644"
force: true
@@ -20,7 +20,7 @@
- name: Download Traefik checksums
ansible.builtin.get_url:
url: "https://github.com/traefik/traefik/releases/download/{{ traefik_version }}/traefik_{{ traefik_version }}_checksums.txt"
url: "{{ traefik_release_url }}/traefik_{{ traefik_version }}_checksums.txt"
dest: /tmp/traefik_checksums.txt
mode: "0644"
force: true