This commit is contained in:
Philippe Caseiro 2023-01-04 11:29:12 +01:00
parent ff7dac1b94
commit f718356ad9
2 changed files with 3 additions and 2 deletions

View File

@ -62,7 +62,8 @@ locals {
GreetingMessage = "Cadoles PXE Boot Server" GreetingMessage = "Cadoles PXE Boot Server"
DelayTime = "5" DelayTime = "5"
BootingMessage = "Booting from network the Cadoles way" BootingMessage = "Booting from network the Cadoles way"
DHCPRange = "" DHCPRangeStart = ""
DHCPRangeEnd = ""
DHCPLeaseDuration = "12h" DHCPLeaseDuration = "12h"
} }
MatchBox = { MatchBox = {

View File

@ -20,7 +20,7 @@ pxe-service=X86PC,"${Vars.PXE.BootingMessage}", http://${Vars.ETH0.IP}:${Vars.Ma
dhcp-no-override dhcp-no-override
dhcp-range=${Vars.ETH0.IP},proxy dhcp-range=${Vars.ETH0.IP},proxy
%{ else } %{ else }
dhcp-range=${Vars.PXE.DHCPRange},${Vars.PXE.DHCPLeaseDuration} dhcp-range=${Vars.PXE.DHCPRangeStart},${Vars.PXE.DHCPRangeEnd},${Vars.PXE.DHCPLeaseDuration}
%{ endif } %{ endif }
dhcp-option=option:dns-server,${Vars.ETH0.IP} dhcp-option=option:dns-server,${Vars.ETH0.IP}
dhcp-option=option:domain-name,${Vars.PXE.DNSDomain} dhcp-option=option:domain-name,${Vars.PXE.DNSDomain}