This commit is contained in:
Philippe Caseiro 2023-01-05 13:51:45 +01:00
parent 3b88e57992
commit 3b5f18114d
3 changed files with 9 additions and 4 deletions

View File

@ -13,7 +13,7 @@ locals {
destination = "/etc/dnsmasq-hosts.conf" destination = "/etc/dnsmasq-hosts.conf"
source = "dnsmasq.d/dnsmasq-hosts.conf.pktpl.hcl" source = "dnsmasq.d/dnsmasq-hosts.conf.pktpl.hcl"
mode = "600" mode = "600"
owner = "root" owner = "dnsmasq"
group = "root" group = "root"
}, },
{ {
@ -74,7 +74,7 @@ locals {
DHCPLeaseDuration = "12h" DHCPLeaseDuration = "12h"
} }
MatchBox = { MatchBox = {
URL = "" Hostname = "mb.cadoles.com"
HTTPPort = "8080" HTTPPort = "8080"
gRPCPort = "8081" gRPCPort = "8081"
LogLevel = "info" LogLevel = "info"

View File

@ -1 +1,4 @@
${Vars.ETH0.IP} ${Vars.Set.Hostname} ${Vars.ETH0.IP} ${Vars.Set.Hostname}
%{ if Vars.MatchBox.Hostname != "" }
${Vars.ETHO.IP} ${Vars.MatchBox.Hostname}
%{ endif }

View File

@ -8,6 +8,7 @@ CONTEXT = [
PXE_DHCPRANGESTART = "$CDHCPRANGESTART", PXE_DHCPRANGESTART = "$CDHCPRANGESTART",
PXE_DHCPRANGEEND = "$DDHCPRANGEEND", PXE_DHCPRANGEEND = "$DDHCPRANGEEND",
PXE_DHCPLEASEDURATION = "$EDHCPLEASEDURATION", PXE_DHCPLEASEDURATION = "$EDHCPLEASEDURATION",
MATCHBOX_HOSTNAME = "$FMATCHBOX_HOSTNAME",
REPORT_READY = "YES", REPORT_READY = "YES",
SET_HOSTNAME = "$NAME", SET_HOSTNAME = "$NAME",
SSH_PUBLIC_KEY = "$USER[SSH_PUBLIC_KEY]", SSH_PUBLIC_KEY = "$USER[SSH_PUBLIC_KEY]",
@ -41,5 +42,6 @@ USER_INPUTS = [
BDNSDOMAIN = "M|text|Nom de la zone DNS (ex: cadol.es)", BDNSDOMAIN = "M|text|Nom de la zone DNS (ex: cadol.es)",
CDHCPRANGESTART = "O|text|DNSMASQ DHCP Range First IP", CDHCPRANGESTART = "O|text|DNSMASQ DHCP Range First IP",
DDHCPRANGEEND = "O|text|DNSMASQ DHCP Range Last IP", DDHCPRANGEEND = "O|text|DNSMASQ DHCP Range Last IP",
EDHCPLEASEDURATION = "M|list|DHCP lease duration|1h,2h,4h,6h,8h,10h,12h,14h,24h|1h" ] EDHCPLEASEDURATION = "M|list|DHCP lease duration|1h,2h,4h,6h,8h,10h,12h,14h,24h|1h",
FMATCHBOX_HOSTNAME = "O|text|Matchbox service hostname"|mb.cadol.es ]
VCPU = "2" VCPU = "2"