kea: fix HA by using pri/sec in LB mode
This commit is contained in:
parent
da13a7a3d2
commit
21a0f13094
@ -32,7 +32,7 @@
|
|||||||
"parameters": {
|
"parameters": {
|
||||||
"high-availability": [ {
|
"high-availability": [ {
|
||||||
"this-server-name": "{{ inventory_hostname.split('.')[0] }}",
|
"this-server-name": "{{ inventory_hostname.split('.')[0] }}",
|
||||||
"mode": "hot-standby",
|
"mode": "load-balancing",
|
||||||
"heartbeat-delay": 10000,
|
"heartbeat-delay": 10000,
|
||||||
"max-response-delay": 60000,
|
"max-response-delay": 60000,
|
||||||
"max-ack-delay": 5000,
|
"max-ack-delay": 5000,
|
||||||
@ -42,12 +42,15 @@
|
|||||||
{
|
{
|
||||||
"name": "{{ lookup('dig', dhcpd_primary+'/PTR', '@'+dns_primary).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",
|
||||||
|
"auto-failover": true
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "{{ lookup('dig', dhcpd_secondary+'/PTR', '@'+dns_primary).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": "secondary",
|
||||||
|
"auto-failover": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
} ]
|
} ]
|
||||||
|
Loading…
Reference in New Issue
Block a user