diff --git a/recipes/alpine/locals.matchbox.pkr.hcl b/recipes/alpine/locals.matchbox.pkr.hcl index 5f5ab3f..1a76d4a 100644 --- a/recipes/alpine/locals.matchbox.pkr.hcl +++ b/recipes/alpine/locals.matchbox.pkr.hcl @@ -62,7 +62,8 @@ locals { GreetingMessage = "Cadoles PXE Boot Server" DelayTime = "5" BootingMessage = "Booting from network the Cadoles way" - DHCPRange = "" + DHCPRangeStart = "" + DHCPRangeEnd = "" DHCPLeaseDuration = "12h" } MatchBox = { diff --git a/recipes/alpine/templates/conf/matchbox/dnsmasq.d/ipxe.conf.pktpl.hcl b/recipes/alpine/templates/conf/matchbox/dnsmasq.d/ipxe.conf.pktpl.hcl index cbeb912..f80412e 100644 --- a/recipes/alpine/templates/conf/matchbox/dnsmasq.d/ipxe.conf.pktpl.hcl +++ b/recipes/alpine/templates/conf/matchbox/dnsmasq.d/ipxe.conf.pktpl.hcl @@ -20,7 +20,7 @@ pxe-service=X86PC,"${Vars.PXE.BootingMessage}", http://${Vars.ETH0.IP}:${Vars.Ma dhcp-no-override dhcp-range=${Vars.ETH0.IP},proxy %{ else } -dhcp-range=${Vars.PXE.DHCPRange},${Vars.PXE.DHCPLeaseDuration} +dhcp-range=${Vars.PXE.DHCPRangeStart},${Vars.PXE.DHCPRangeEnd},${Vars.PXE.DHCPLeaseDuration} %{ endif } dhcp-option=option:dns-server,${Vars.ETH0.IP} dhcp-option=option:domain-name,${Vars.PXE.DNSDomain}