kea: fix HA by using pri/sec in LB mode

This commit is contained in:
Markus 2024-11-25 21:18:47 +01:00
parent da13a7a3d2
commit 21a0f13094

View File

@ -32,7 +32,7 @@
"parameters": {
"high-availability": [ {
"this-server-name": "{{ inventory_hostname.split('.')[0] }}",
"mode": "hot-standby",
"mode": "load-balancing",
"heartbeat-delay": 10000,
"max-response-delay": 60000,
"max-ack-delay": 5000,
@ -42,12 +42,15 @@
{
"name": "{{ lookup('dig', dhcpd_primary+'/PTR', '@'+dns_primary).split('.')[0] }}",
"url": "http://{{ dhcpd_primary }}:8000/",
"role": "primary"
"role": "primary",
"auto-failover": true
},
{
"name": "{{ lookup('dig', dhcpd_secondary+'/PTR', '@'+dns_primary).split('.')[0] }}",
"url": "http://{{ dhcpd_secondary }}:8000/",
"role": "standby"
"role": "secondary",
"auto-failover": true
}
]
} ]