fup
This commit is contained in:
parent
6196c22acf
commit
0bef57b467
|
@ -9,6 +9,13 @@ locals {
|
||||||
owner = "root"
|
owner = "root"
|
||||||
group = "root"
|
group = "root"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
destination = "/etc/dnsmasq-hosts.conf"
|
||||||
|
source = "dnsmasq.d/dnsmasq-hosts.conf.pktpl.hcl"
|
||||||
|
mode = "600"
|
||||||
|
owner = "root"
|
||||||
|
group = "root"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
destination = "/etc/conf.d/matchbox"
|
destination = "/etc/conf.d/matchbox"
|
||||||
source = "conf.d/matchbox.conf.pktpl.hcl"
|
source = "conf.d/matchbox.conf.pktpl.hcl"
|
||||||
|
@ -77,6 +84,9 @@ locals {
|
||||||
DNS = ""
|
DNS = ""
|
||||||
GATEWAY = ""
|
GATEWAY = ""
|
||||||
}
|
}
|
||||||
|
Set = {
|
||||||
|
Hostname = "matchbox"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Users = {}
|
Users = {}
|
||||||
Daemons = {
|
Daemons = {
|
||||||
|
|
|
@ -5,8 +5,11 @@ log-dhcp
|
||||||
listen-address=0.0.0.0
|
listen-address=0.0.0.0
|
||||||
interface=${Vars.PXE.ListenInterface}
|
interface=${Vars.PXE.ListenInterface}
|
||||||
no-resolv
|
no-resolv
|
||||||
|
domain-needed
|
||||||
|
bogus-priv
|
||||||
expand-hosts
|
expand-hosts
|
||||||
server=${Vars.ETH0.DNS}
|
server=${Vars.ETH0.DNS}
|
||||||
|
strict-order
|
||||||
addn-hosts=/etc/dnsmasq-hosts.conf
|
addn-hosts=/etc/dnsmasq-hosts.conf
|
||||||
domain=${Vars.PXE.DNSDomain}
|
domain=${Vars.PXE.DNSDomain}
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,13 @@
|
||||||
NAME = "<%= template_name %>"
|
NAME = "<%= template_name %>"
|
||||||
CONTEXT = [
|
CONTEXT = [
|
||||||
DHCPLEASEDURATION = "$DHCPLEASEDURATION",
|
|
||||||
DHCPMODE = "$DHCPMODE",
|
|
||||||
DNSDOMAIN = "$DNSDOMAIN",
|
|
||||||
MATCHBOX_URL = "http://$NAME",
|
MATCHBOX_URL = "http://$NAME",
|
||||||
NETWORK = "YES",
|
NETWORK = "YES",
|
||||||
PXE_DHCPLEASEDURATION = "$DHCPLEASEDURATION",
|
PXE_DHCPLEASEDURATION = "$DHCPLEASEDURATION",
|
||||||
PXE_DHCPMODE = "$DHCPMODE",
|
PXE_DHCPMODE = "$ADHCPMODE",
|
||||||
PXE_DHCPRANGESTART = "$ADHCPRANGESTART",
|
PXE_DNSDOMAIN = "$BDNSDOMAIN",
|
||||||
PXE_DHCPRANGEEND = "$BDHCPRANGEEND",
|
PXE_DHCPRANGESTART = "$CDHCPRANGESTART",
|
||||||
|
PXE_DHCPRANGEEND = "$DDHCPRANGEEND",
|
||||||
|
PXE_DHCPLEASEDURATION = "$EDHCPLEASEDURATION",
|
||||||
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]",
|
||||||
|
@ -38,9 +37,9 @@ OS = [
|
||||||
BOOT = "",
|
BOOT = "",
|
||||||
SD_DISK_BUS = "scsi" ]
|
SD_DISK_BUS = "scsi" ]
|
||||||
USER_INPUTS = [
|
USER_INPUTS = [
|
||||||
DHCPLEASEDURATION = "M|list|DHCP lease duration|1h,2h,4h,6h,8h,10h,12h,14h,24h|1h",
|
ADHCPMODE = "M|list|DHCP Mode|proxy,direct|proxy",
|
||||||
DHCPMODE = "M|list|DHCP Mode|proxy,direct|proxy",
|
BNSDOMAIN = "M|text|Nom de la zone DNS (ex: cadol.es)",
|
||||||
DNSDOMAIN = "M|text|Nom de la zone DNS (ex: cadol.es)",
|
CADHCPRANGESTART = "O|text|DNSMASQ DHCP Range First IP",
|
||||||
ADHCPRANGESTART = "O|text|DNSMASQ DHCP Range First IP",
|
DBDHCPRANGEEND = "O|text|DNSMASQ DHCP Range Last IP",
|
||||||
BDHCPRANGEEND = "O|text|DNSMASQ DHCP Range Last IP" ]
|
EDHCPLEASEDURATION = "M|list|DHCP lease duration|1h,2h,4h,6h,8h,10h,12h,14h,24h|1h" ]
|
||||||
VCPU = "2"
|
VCPU = "2"
|
||||||
|
|
Loading…
Reference in New Issue