0a0ca77f3b
Switch the DNS testing names to "99" which helps disambiguate testing from production, and makes you think harder about ensuring references are abstracted properly. The LE zone gets installed on the hidden primary, so it should just use the inventory_hostname rather than hard-coding. Instead of hard-coding the secondaries, we grab them from the secondary DNS group. This should allow us to start up replacement DNS servers which will be inactive until they are enabled for the domain. This requires an update to the LE job, as it currently doesn't have a secondary nameserver as part of the nodes. This means the "adns-secondary" group is blank there. Even though this node isn't doing anything, I think it's worth adding to cover this path (I did consider some sort of dummy host add type thing, but that just makes things hard to follow). We also use the 99 suffix in that job just for consistency. Change-Id: I1a4be41b70180deab51a3cc8a2b3e83ffd0ff1dc
19 lines
760 B
Django/Jinja
19 lines
760 B
Django/Jinja
; -*- mode: zone -*-
|
|
$ORIGIN acme.opendev.org.
|
|
$TTL 1m
|
|
@ IN SOA {{ inventory_hostname }}. hostmaster.opendev.org. (
|
|
{{ lookup('pipe', 'date +%s') }} ; serial number unixtime
|
|
1h ; refresh (secondary checks for updates)
|
|
10m ; retry (secondary retries failed axfr)
|
|
10d ; expire (secondary ends serving old data)
|
|
5m ) ; min ttl (cache time for failed lookups)
|
|
{% for ns in groups['adns-secondary'] %}
|
|
@ IN NS {{ ns }}.
|
|
{% endfor %}
|
|
|
|
; NOTE: DO NOT HAND EDIT. THESE KEYS ARE MANAGED BY ANSIBLE
|
|
|
|
{% for key in acme_txt_keys %}
|
|
@ IN TXT "{{key[1]}}"
|
|
{% endfor %}
|