Commit 86037f11 authored by Pietsch, Martin's avatar Pietsch, Martin

bugfixes in HA configuration

parent aae9ce00
......@@ -26,32 +26,31 @@
{%- endif %}
{%- endfor %}
{%- if (ha_servers | length) > 1 -%}
{% if (ha_servers | length) > 1 %}
"hooks-libraries": [
{
"library": "/usr/lib/hooks/libdhcp_lease_cmds.so",
"library": "{{ system_app_root }}/lib/hooks/libdhcp_lease_cmds.so",
"parameters": { }
},
{
"library": "/usr/lib/hooks/libdhcp_ha.so",
"library": "{{ system_app_root }}/lib/hooks/libdhcp_ha.so",
"parameters": {
"high-availability": [ {
"this-server-name": "{{ inventory_hostname }}",
{%- if kea_ha_mode == "loadbalancing" %}
{% if kea_ha_mode == "loadbalancing" %}
"mode": "load-balancing",
{%- else -%}
{% else %}
"mode": "hot-standby",
{%- endif -%}
{% endif %}
"heartbeat-delay": 10000,
"max-response-delay": 10000,
"max-ack-delay": 5000,
"max-unacked-clients": 5,
"peers": [
{{ ha_servers | to_nice_json(indent=8) }}
]
"peers": {{ ha_servers | to_nice_json(indent=8) }}
}
]
}
]
}
],
{%- endif -%}
{%- endmacro %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment