kea: query primary dns server for hostnames

otherwise the role will fail if the host it is deployed from has VPN but
is not using our DNS infra
This commit is contained in:
Markus 2024-05-21 22:34:19 +02:00
parent bcb5584874
commit 1ddcc40476

View File

@ -28,12 +28,12 @@
"sync-timeout": 60000,
"peers": [
{
"name": "{{ lookup('dig', dhcpd_primary+'/PTR').split('.')[0] }}",
"name": "{{ lookup('dig', dhcpd_primary+'/PTR', '@'+dns_primary).split('.')[0] }}",
"url": "http://{{ dhcpd_primary }}:8000/",
"role": "primary"
},
{
"name": "{{ lookup('dig', dhcpd_secondary+'/PTR').split('.')[0] }}",
"name": "{{ lookup('dig', dhcpd_secondary+'/PTR', '@'+dns_primary).split('.')[0] }}",
"url": "http://{{ dhcpd_secondary }}:8000/",
"role": "standby"
}