Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simple Deploy- and Management
package.dhcp.kea
Commits
86037f11
Commit
86037f11
authored
May 07, 2019
by
Pietsch, Martin
Browse files
bugfixes in HA configuration
parent
aae9ce00
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/kea-dhcp-ha.j2
View file @
86037f11
...
...
@@ -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 %}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment