Commit d2f1d3dd authored by Pietsch, Martin's avatar Pietsch, Martin
Browse files

bugfix: missing 'http-host' and 'http-port' in ctrl-agent configuration

parent 1e03e37e
{% from "kea-logger.j2" import logger with context %}
{
"Control-agent": {
{% set _ctrl_host_ip = namespace(ip="127.0.0.1") %}
{% for _ifname, _ifdata in hostvars[inventory_hostname].network.devices.items() if "dhcp-ha" in (_ifdata.services | default([])) %}
{% if _ifdata.ipv4 is defined %}
{% set _ctrl_host_ip.ip = _ifdata.ipv4 %}
{% endif %}
{% endif %}
{% if hostvars[inventory_hostname].network.nat is defined %}
{% for _natdata in hostvars[inventory_hostname].network.nat.items() if "dhcp-ha" in (_natdata.services | default([])) %}
{% if _natdata.ipv4 is defined %}
{% set _ctrl_host_ip.ip = _natdata.ipv4 | ipaddr('address') %}
{% endif %}
{% endfor %}
{% endif %}
"http-host": "{{ _ctrl_host_ip.ip }}",
"http-port": {{ kea_control_agent_port | default(8080) }},
"control-sockets": {
"dhcp4": {
"socket-type": "unix",
......
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