Skip to content
Snippets Groups Projects
Verified Commit 870a8ad5 authored by Evangelos Foutras's avatar Evangelos Foutras :smiley_cat:
Browse files

geo_dns: support per-domain ifurlup check paths

parent c99e5203
No related branches found
No related tags found
No related merge requests found
Pipeline #18747 passed
geo_acme_dns_challenge_ns: redirect.archlinux.org
geo_domains:
- geo.mirror.pkgbuild.com
geo_health_check_paths:
geo.mirror.pkgbuild.com: /lastupdate
......@@ -15,13 +15,13 @@ domains:
- lua:
ttl: 300
content: >
A "ifurlup('https://{{ domain }}/',
A "ifurlup('https://{{ domain }}{{ geo_health_check_paths[domain] | default('/') }}',
{'{{ groups['geo_mirrors'] | map('extract', hostvars, ['ipv4_address']) | join("', '") }}'},
{selector='pickclosest', useragent='pdns on {{ inventory_hostname }}'})"
- lua:
ttl: 300
content: >
AAAA "ifurlup('https://{{ domain }}/',
AAAA "ifurlup('https://{{ domain }}{{ geo_health_check_paths[domain] | default('/') }}',
{'{{ groups['geo_mirrors'] | map('extract', hostvars, ['ipv6_address']) | join("', '") }}'},
{selector='pickclosest', useragent='pdns on {{ inventory_hostname }}'})"
_acme-challenge.{{ domain }}:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment