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:
parent
bcb5584874
commit
1ddcc40476
@ -28,12 +28,12 @@
|
|||||||
"sync-timeout": 60000,
|
"sync-timeout": 60000,
|
||||||
"peers": [
|
"peers": [
|
||||||
{
|
{
|
||||||
"name": "{{ lookup('dig', dhcpd_primary+'/PTR').split('.')[0] }}",
|
"name": "{{ lookup('dig', dhcpd_primary+'/PTR', '@'+dns_primary).split('.')[0] }}",
|
||||||
"url": "http://{{ dhcpd_primary }}:8000/",
|
"url": "http://{{ dhcpd_primary }}:8000/",
|
||||||
"role": "primary"
|
"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/",
|
"url": "http://{{ dhcpd_secondary }}:8000/",
|
||||||
"role": "standby"
|
"role": "standby"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user