From f718356ad9b63e03d4af42893164d2a665c7be7a Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 4 Jan 2023 11:29:12 +0100 Subject: [PATCH] fup --- recipes/alpine/locals.matchbox.pkr.hcl | 3 ++- .../templates/conf/matchbox/dnsmasq.d/ipxe.conf.pktpl.hcl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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}