37 lines
998 B
HCL
37 lines
998 B
HCL
log-queries
|
|
log-dhcp
|
|
|
|
#port=0
|
|
listen-address=0.0.0.0
|
|
interface=${Vars.PXE.ListenInterface}
|
|
no-resolv
|
|
domain-needed
|
|
bogus-priv
|
|
expand-hosts
|
|
server=${Vars.ETH0.DNS}
|
|
strict-order
|
|
addn-hosts=/etc/dnsmasq-hosts.conf
|
|
domain=${Vars.PXE.DNSDomain}
|
|
local=/${Vars.PXE.DNSDomain}/
|
|
localise-queries
|
|
|
|
|
|
%{ if Vars.PXE.DHCPMode == "proxy" }
|
|
#dhcp-no-override
|
|
dhcp-range=${Vars.ETH0.IP},proxy
|
|
%{ else }
|
|
dhcp-range=${Vars.PXE.DHCPRangeStart},${Vars.PXE.DHCPRangeEnd},${Vars.PXE.DHCPLeaseDuration}
|
|
dhcp-option=option:router,${Vars.ETH0.GATEWAY}
|
|
%{ endif }
|
|
|
|
dhcp-option=option:dns-server,${Vars.ETH0.IP}
|
|
dhcp-option=option:domain-name,${Vars.PXE.DNSDomain}
|
|
|
|
# TFTP Configuration
|
|
enable-tftp
|
|
tftp-root="${Vars.PXE.TFTPRoot}"
|
|
|
|
pxe-prompt="${Vars.PXE.GreetingMessage}",${Vars.PXE.DelayTime}
|
|
pxe-service=tag:#ipxe,x86PC,"Legacy boot PXE chainload to iPXE",undionly.kpxe
|
|
dhcp-userclass=set:ipxe,iPXE
|
|
pxe-service=tag:ipxe,x86PC,"${Vars.PXE.BootingMessage} (iPXE)", http://${Vars.ETH0.IP}:${Vars.MatchBox.HTTPPort}/boot.ipxe |