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 %}