Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e4eb3bc656 | ||
|
|
15c3731e7f | ||
|
|
699179674f | ||
|
|
3d2fab5388 | ||
|
|
042051b3e5 |
No files matched your search
@@ -28,7 +28,7 @@ jobs:
|
||||
timeout-minutes: 30
|
||||
# The ci image (images/ci, built by image.yml): tag for the release, digest enforced.
|
||||
container:
|
||||
image: git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc
|
||||
image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
|
||||
env:
|
||||
PIP_DISABLE_PIP_VERSION_CHECK: "1"
|
||||
steps:
|
||||
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
# The ci image (images/ci, built by image.yml), at the pin of lint.yml: tag for the
|
||||
# release, digest enforced. Only its /opt/venv Python (with PyYAML) is used here.
|
||||
container:
|
||||
image: git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc
|
||||
image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
|
||||
steps:
|
||||
# The container has no Node, so JavaScript actions such as actions/checkout
|
||||
# cannot run; clone with git and the job token.
|
||||
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
# The tag says which release, the digest is what is enforced (bump both together
|
||||
# when image.yml publishes a new version).
|
||||
container:
|
||||
image: git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc
|
||||
image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
|
||||
env:
|
||||
PIP_DISABLE_PIP_VERSION_CHECK: "1"
|
||||
PRE_COMMIT_HOME: /opt/pre-commit
|
||||
|
||||
@@ -53,7 +53,7 @@ jobs:
|
||||
env:
|
||||
# The tools and collections molecule runs with: the image Lint and Build use.
|
||||
CI_IMAGE: >-
|
||||
git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc
|
||||
git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
|
||||
# Used by the scenarios as `image: ${MOLECULE_IMAGE}`; set it the same way to run
|
||||
# one locally.
|
||||
MOLECULE_IMAGE: >-
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
minor_changes:
|
||||
- >-
|
||||
cloudflared - New input ``cloudflared_tunnel_lookup_delay``, the seconds between the three
|
||||
retries of a 404 from the tunnel lookup while a new tunnel may not be visible yet. The default
|
||||
is 5, as before.
|
||||
@@ -15,10 +15,23 @@ trailers, are in [ai-assistance.md](ai-assistance.md).
|
||||
*Reason:* every change reaches `main` through the Lint and Build checks and a reviewer.
|
||||
*Held by:* control: branch protection on `main`.
|
||||
- **Do not push to someone else's branch or to a bot's branch; put your change in a pull request of
|
||||
your own.** Updating a branch from `main` with Gitea's update button is allowed.
|
||||
your own.** Updating a branch from `main` with Gitea's update button is allowed under the next
|
||||
two rules.
|
||||
*Reason:* a push changes a head its author already reviewed or scheduled to merge, and a hand-made
|
||||
commit on a `renovate/` branch makes Renovate stop rebasing it.
|
||||
*Held by:* aspirational.
|
||||
- **Update a pull request's branch from `main` only when it is next to merge: reviewed, green on its
|
||||
previous head, and the only branch being updated. After updating your own pull request, give it a
|
||||
scheduled merge; merge anyone else's as [reviewing.md](reviewing.md) says.**
|
||||
*Reason:* `main` blocks an outdated branch, so every update re-runs Lint, Build and Molecule, and
|
||||
a new head cancels the run in progress; an update made while another pull request merges first is
|
||||
wasted.
|
||||
*Held by:* aspirational.
|
||||
- **Never press the update button on a `renovate/` branch. When a Renovate pull request is next to
|
||||
merge and behind `main`, tick the rebase/retry checkbox in its description; Renovate rebases it at
|
||||
its next run.**
|
||||
*Reason:* the update button adds a hand-made commit, and Renovate stops rebasing that branch.
|
||||
*Held by:* aspirational.
|
||||
- **File an issue or open a pull request with the headings of the matching template in `.gitea/`,
|
||||
also when you file through the API, `tea` or an MCP server.**
|
||||
*Reason:* those routes skip the templates, and an agent's built-in body leaves out what review needs.
|
||||
|
||||
@@ -32,7 +32,6 @@ The role targets Ubuntu hosts that run the tunnel daemon, not Proxmox nodes, so
|
||||
| `cloudflared_zone_name` | `""` (asserted while `cloudflared_manage_dns`) | Zone of the ingress hostnames. |
|
||||
| `cloudflared_allow_dns_overwrite` | `[]` | Hostnames whose existing non-tunnel DNS record may be overwritten. |
|
||||
| `cloudflared_api_base_url` | `https://api.cloudflare.com/client/v4` | Cloudflare API base URL for the role's `uri` calls, no trailing slash. |
|
||||
| `cloudflared_tunnel_lookup_delay` | `5` | Seconds between the three retries of a 404 from the tunnel lookup, at least 0. |
|
||||
| `cloudflared_tunnel_name` | `{{ inventory_hostname }}-tunnel` | Tunnel name used by the `mint` entry point. |
|
||||
| `cloudflared_version` | pinned in `defaults/main.yml` | Release tag, `YYYY.M.P`. |
|
||||
| `cloudflared_sha256_amd64` | pinned | SHA-256 of the amd64 binary. Update with the version. |
|
||||
|
||||
@@ -17,8 +17,6 @@ cloudflared_config_dir: "/etc/cloudflared"
|
||||
cloudflared_service_unit: "/etc/systemd/system/cloudflared.service"
|
||||
|
||||
cloudflared_api_base_url: "https://api.cloudflare.com/client/v4"
|
||||
# Seconds between the three retries of a 404 from the tunnel lookup.
|
||||
cloudflared_tunnel_lookup_delay: 5
|
||||
|
||||
cloudflared_tunnel_name: "{{ inventory_hostname }}-tunnel"
|
||||
|
||||
|
||||
@@ -102,13 +102,6 @@ argument_specs:
|
||||
Base URL of the Cloudflare API, without a trailing slash. Prefixed to every request the role makes with
|
||||
C(ansible.builtin.uri) (tunnel lookup and delete, zone lookup and DNS record listing). The
|
||||
C(community.general.cloudflare_dns) tasks always use the public endpoint.
|
||||
cloudflared_tunnel_lookup_delay:
|
||||
type: int
|
||||
default: 5
|
||||
description:
|
||||
- >-
|
||||
Seconds between the three retries of the tunnel lookup when Cloudflare answers 404, which right
|
||||
after a mint can be read-after-write lag rather than a deleted tunnel. At least 0.
|
||||
cloudflared_tunnel_name:
|
||||
type: raw
|
||||
description:
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
cloudflared_user: "{{ cloudflared_test_case.vars.cloudflared_user | default('cloudflared') }}"
|
||||
cloudflared_install_dir: "{{ cloudflared_test_case.vars.cloudflared_install_dir | default('/usr/local/bin') }}"
|
||||
cloudflared_config_dir: "{{ cloudflared_test_case.vars.cloudflared_config_dir | default('/etc/cloudflared') }}"
|
||||
# The stub answers at once, so the retries need no wait; they still run.
|
||||
cloudflared_tunnel_lookup_delay: "{{ cloudflared_test_case.vars.cloudflared_tunnel_lookup_delay | default(0) }}"
|
||||
|
||||
# Only reached when the include returned. The message must not contain the expected
|
||||
# text, so the rescue below cannot mistake it for the failure under test.
|
||||
|
||||
@@ -157,9 +157,6 @@
|
||||
- name: tunnel-id-not-uuid
|
||||
vars: {cloudflared_tunnel_id: not-a-uuid}
|
||||
expect: must be a lowercase UUID
|
||||
- name: lookup-delay-negative
|
||||
vars: {cloudflared_tunnel_lookup_delay: -1}
|
||||
expect: cloudflared_tunnel_lookup_delay must be a whole number of seconds, at least 0
|
||||
- name: tunnel-not-minted
|
||||
vars: {cloudflared_tunnel_id: ""}
|
||||
expect: run the mint entry point first
|
||||
@@ -175,7 +172,7 @@
|
||||
- name: tunnel-deleted
|
||||
vars: {cloudflared_tunnel_id: 6f1a6e2c-0000-4000-8000-000000000002}
|
||||
expect: no longer exists on Cloudflare
|
||||
# Retried three times (with no delay here) before the 404 is trusted.
|
||||
# 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)
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# briefly before trusting it.
|
||||
until: __cloudflared_tunnel_lookup.status | default(0) == 200
|
||||
retries: 3
|
||||
delay: "{{ cloudflared_tunnel_lookup_delay }}"
|
||||
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
|
||||
|
||||
@@ -63,12 +63,6 @@
|
||||
newline or %, and the two directories must be absolute paths.
|
||||
quiet: true
|
||||
|
||||
- name: Require a non-negative tunnel lookup delay
|
||||
ansible.builtin.assert:
|
||||
that: cloudflared_tunnel_lookup_delay | int(-1) >= 0
|
||||
fail_msg: cloudflared_tunnel_lookup_delay must be a whole number of seconds, at least 0.
|
||||
quiet: true
|
||||
|
||||
# The role never creates the tunnel on its main entry point. Defined and empty (or null) counts
|
||||
# as missing, as in the mint entry point, so the two cannot disagree.
|
||||
- name: Require the minted tunnel secrets
|
||||
|
||||
Reference in new issue
Block a user