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

bugfixes in HA configuration

parent aae9ce00
...@@ -26,32 +26,31 @@ ...@@ -26,32 +26,31 @@
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}
{%- if (ha_servers | length) > 1 -%} {% if (ha_servers | length) > 1 %}
"hooks-libraries": [ "hooks-libraries": [
{ {
"library": "/usr/lib/hooks/libdhcp_lease_cmds.so", "library": "{{ system_app_root }}/lib/hooks/libdhcp_lease_cmds.so",
"parameters": { } "parameters": { }
}, },
{ {
"library": "/usr/lib/hooks/libdhcp_ha.so", "library": "{{ system_app_root }}/lib/hooks/libdhcp_ha.so",
"parameters": { "parameters": {
"high-availability": [ { "high-availability": [ {
"this-server-name": "{{ inventory_hostname }}", "this-server-name": "{{ inventory_hostname }}",
{%- if kea_ha_mode == "loadbalancing" %} {% if kea_ha_mode == "loadbalancing" %}
"mode": "load-balancing", "mode": "load-balancing",
{%- else -%} {% else %}
"mode": "hot-standby", "mode": "hot-standby",
{%- endif -%} {% endif %}
"heartbeat-delay": 10000, "heartbeat-delay": 10000,
"max-response-delay": 10000, "max-response-delay": 10000,
"max-ack-delay": 5000, "max-ack-delay": 5000,
"max-unacked-clients": 5, "max-unacked-clients": 5,
"peers": [ "peers": {{ ha_servers | to_nice_json(indent=8) }}
{{ ha_servers | to_nice_json(indent=8) }}
]
} }
] ]
} }
] }
],
{%- endif -%} {%- endif -%}
{%- endmacro %} {%- 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