Commit 1cdda38b authored by Pietsch, Martin's avatar Pietsch, Martin

change kea_ha_port to kea_control_agent_port

parent f9d93d7d
......@@ -9,7 +9,18 @@ Requirements
Variables
---------
*todo*
* kea_ha_mode
* description:
* This option defines the high availabilty mode.
* If this option is set to *loadbalancing* the *dhcp_primary_server* is the primary server and the *dhcp_secondary_server* is the secondary server. All other servers of this host group are backup server.
* If this option is set to *hotstandby* the *dhcp_primary_server* is the active server and the *dhcp_secondary_server* is the standby server. All other servers of this host group are backup server.
* choices: [none, loadbalancing, hotstandby]
* default: none
* kea_control_agent_port
* description:
* This option defines the communication port for the kea control agents.
* default: 8080
Processes
=========
......
......@@ -6,9 +6,9 @@
{%- for ifname, ifdata in nodenetwork.devices.items() if ifdata.services is defined and ("dhcp-ha" in (ifdata.services | default([]))) %}
{%- set has = {"name": fctnhst}
{%- if ipversion == "ipv4" %}
{%- do has.update({"url": 'http://%s:%s/' | format(ifdata.ipv4 | default("127.0.0.1"), kea_ha_port)} %}
{%- do has.update({"url": 'http://%s:%s/' | format(ifdata.ipv4 | default("127.0.0.1"), kea_control_agent_port)} %}
{%- else %}
{%- do has.update({"url": 'http://[%s]:%s/' | format(ifdata.ipv6 | default("::1"), kea_ha_port)} %}
{%- do has.update({"url": 'http://[%s]:%s/' | format(ifdata.ipv6 | default("::1"), kea_control_agent_port)} %}
{%- endif %}
{%- if fctnhst != dhcp_primary_server or fctnhst != dhcp_secondary_server %}
{%- do has.update({"auto-failover": false, "role": "backup"}) %}
......@@ -26,7 +26,7 @@
{%- endif %}
{%- endfor %}
{%- if (ha_servers | length) > 0 -%}
{%- if (ha_servers | length) > 1 -%}
"hooks-libraries": [
{
"library": "/usr/lib/hooks/libdhcp_lease_cmds.so",
......
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