Restore discovery for dnsmasq dhcp provider

The dnsmasq dhcp provider will only create rules for explicit hosts,
so the fallback directives are still needed to support autodiscovery
for other hosts.

This change adds the enable_inspector_discovery parameter to the
conditional surrounding the fallback directives.

Story: 2010203
Task: 45923

Change-Id: I2d0cdf955a43b7f19a1e01bedd6974f8e350e270
This commit is contained in:
Steve Baker 2022-11-17 09:33:05 +13:00
parent 243fb1dd97
commit 33f9b51ecf

View File

@ -90,7 +90,7 @@ dhcp-option=42,{{dnsmasq_ntp_servers}}
dhcp-match=set:ipxe,175 # iPXE sends a 175 option.
dhcp-optsdir={{ dnsmasq_dhcp_optsdir }}
{% if dhcp_provider == 'none' %}
{% if dhcp_provider == 'none' or enable_inspector_discovery | bool %}
# Boot for Etherboot gPXE. The idea is to send two different
# filenames, the first loads gPXE, and the second tells gPXE what to
# load. The dhcp-match sets the gpxe tag for requests from gPXE.