vms/recipes/alpine/locals.nuo-harbor.pkr.hcl

84 lines
1.8 KiB
HCL
Raw Normal View History

2023-06-27 15:25:30 +02:00
locals {
ServiceNuoHarbor = {
ConfigFiles = [
{
2023-06-29 16:15:52 +02:00
destination = "/etc/harbor/harbor.yml"
source = "harbor.yml.pktpl.hcl"
mode = "600"
owner = "root"
group = "root"
2023-06-27 15:25:30 +02:00
}
]
Vars = {
AuthEnabled = false
User = "harbor"
Group = "harbor"
2023-06-29 16:15:52 +02:00
HarborHTTPPort = "80"
HarborHTTPSPort = "443"
HarborSSLCert = "/etc/ssl/certs/harbor.crt"
HarborSSLPrivKey = "/etc/ssl/certs/harbor.key"
2023-06-27 15:25:30 +02:00
HarborDomain = "reg.k8s.in.nuonet.fr"
2023-06-29 16:15:52 +02:00
HarborAdminPassword = "ChangeMeAsSoonAsPossible"
HarborDBPassword = "WeNeedToBeAbleToManagePasswords"
2023-06-27 15:25:30 +02:00
NIC = [
{
Name = "eth0"
IP = "192.168.160.10"
Mask = "255.255.254.0"
Gateway = "192.168.160.1"
}
]
DNS = [ "192.168.160.10" ]
Set = { Hostname = "reg.k8s.in.nuonet.fr" }
}
2023-06-29 16:15:52 +02:00
Repositories = {
AlpineEdgeTesting = {
type = "apk"
name = "testing"
url = "http://mirrors.ircam.fr/pub/alpine/edge/testing"
enabled = true
}
}
2023-06-27 15:25:30 +02:00
Packages = {
2023-06-29 16:15:52 +02:00
vmtools = {
name = "open-vm-tools"
2023-06-27 15:25:30 +02:00
action = "install"
2023-06-29 16:15:52 +02:00
},
mkcert = {
name = "mkcert"
2023-06-27 15:25:30 +02:00
action = "install"
2023-06-29 16:15:52 +02:00
},
gpg-agent = {
name = "gpg-agent"
2023-06-27 15:25:30 +02:00
action = "install"
}
2023-06-29 16:15:52 +02:00
ncurses = {
name = "ncurses"
2023-06-27 15:25:30 +02:00
action = "install"
}
}
Daemons = {
2023-06-29 16:15:52 +02:00
harbor = {
name = "harbor"
2023-06-27 15:25:30 +02:00
type = "auto"
enabled = true
}
}
Users = {
harbor = {
username = "harbor"
group = "harbor"
home = "/srv/harbor"
shell = "/bin/nologin"
}
}
}
NuoHarbor = {
Name = "nuo-harbor"
Globals = local.Globals
Services = {
2023-06-29 16:15:52 +02:00
Docker = local.ServiceDocker
2023-06-27 15:25:30 +02:00
Harbor = local.ServiceNuoHarbor
}
}
}