vms/recipes/alpine/locals.matchbox.pkr.hcl

119 lines
2.6 KiB
HCL
Raw Normal View History

2022-12-06 15:44:25 +01:00
locals {
// Definition of the Kubernetes service (templater compatible)
ServiceMatchBox = {
ConfigFiles = [
{
destination = "/etc/dnsmasq.d/pxe.conf"
source = "dnsmasq.d/ipxe.conf.pktpl.hcl"
mode = "600"
owner = "root"
group = "root"
},
2023-01-04 15:54:51 +01:00
{
destination = "/etc/dnsmasq-hosts.conf"
source = "dnsmasq.d/dnsmasq-hosts.conf.pktpl.hcl"
mode = "600"
2023-01-05 13:51:45 +01:00
owner = "dnsmasq"
2023-01-04 15:54:51 +01:00
group = "root"
},
2022-12-06 15:44:25 +01:00
{
destination = "/etc/conf.d/matchbox"
source = "conf.d/matchbox.conf.pktpl.hcl"
mode = "600"
owner = "root"
group = "root"
},
{
destination = "/etc/init.d/matchbox"
source = "init.d/matchbox.pktpl.hcl"
mode = "700"
owner = "root"
group = "root"
}
]
Repositories = {
AlpineEdgeTesting = {
type = "apk"
name = "testing"
url = "http://mirrors.ircam.fr/pub/alpine/edge/testing"
2022-12-06 15:44:25 +01:00
enabled = true
}
}
Packages = {
dnsmasq = {
name = "dnsmasq"
action = "install"
}
terraform = {
name = "terraform"
action = "install"
}
git = {
name = "git"
action = "install"
}
kubectl = {
name = "kubectl"
action = "install"
}
gpg = {
name = "gpg"
action = "install"
2022-12-06 15:44:25 +01:00
}
}
Vars = {
PXE = {
DHCPMode = "proxy"
DNSDomain = "cadoles.com"
ListenInterface = "eth0"
GreetingMessage = "Cadoles PXE Boot Server"
DelayTime = "5"
BootingMessage = "Booting from network the Cadoles way"
2023-01-04 11:29:12 +01:00
DHCPRangeStart = ""
DHCPRangeEnd = ""
2022-12-06 15:44:25 +01:00
DHCPLeaseDuration = "12h"
}
MatchBox = {
2023-01-05 13:51:45 +01:00
Hostname = "mb.cadoles.com"
2022-12-06 15:44:25 +01:00
HTTPPort = "8080"
gRPCPort = "8081"
LogLevel = "info"
}
ETH0 = {
IP = ""
DNS = ""
GATEWAY = ""
}
2023-01-04 15:54:51 +01:00
Set = {
Hostname = "matchbox"
}
2022-12-06 15:44:25 +01:00
}
Users = {}
Daemons = {
matchbox = {
name = "matchbox"
type = "auto"
enabled = true
}
dnsmasq = {
name = "dnsmasq"
type = "auto"
enabled = true
}
2023-01-04 10:57:03 +01:00
local = {
name = "local"
type = "auto"
enabled = true
}
2022-12-06 15:44:25 +01:00
}
}
// Definition of the Kubernetes full configuration (with all the services)
MatchBox = {
Name = "matchbox"
Globals = local.Globals
Services = {
2023-01-06 11:11:28 +01:00
MatchBox = local.ServiceMatchBox
2022-12-06 15:44:25 +01:00
}
}
}