From 6640c1992abd5205e0a1a996ef3764f5d90f1fcd Mon Sep 17 00:00:00 2001 From: emeygret Date: Fri, 20 Oct 2017 13:58:51 +0200 Subject: [PATCH] Change in Debian Strech Debian Notes : isc-dhcp-server: fails to work, variable INTERFACES in /etc/default/isc-dhcp-server has been split into INTERFACESv4 and INTERFACESv6. simple patch to ipv4, it should be better to add INTERFACESv6, but I think there is more modifications to do than this little change for ipv6... --- dhcpd/files/service_config.Debian | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dhcpd/files/service_config.Debian b/dhcpd/files/service_config.Debian index 6419d9a..7dba9a4 100644 --- a/dhcpd/files/service_config.Debian +++ b/dhcpd/files/service_config.Debian @@ -12,4 +12,8 @@ # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1". +{% if grains.osmajorrelease >= 9 %} +INTERFACESv4="{{ ' '.join(salt['pillar.get']('dhcpd:listen_interfaces', [])) }}" +{% else %} INTERFACES="{{ ' '.join(salt['pillar.get']('dhcpd:listen_interfaces', [])) }}" +{% endif %}