diff --git a/roles/kea/templates/kea/kea-dhcp4.conf.j2 b/roles/kea/templates/kea/kea-dhcp4.conf.j2 index 03a5a90..fb31412 100644 --- a/roles/kea/templates/kea/kea-dhcp4.conf.j2 +++ b/roles/kea/templates/kea/kea-dhcp4.conf.j2 @@ -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 } ] } ]