locals { ServiceNuoHarbor = { ConfigFiles = [ { destination = "/etc/harbor/harbor.yaml" source = "harbor/habor.yaml.pktpl.hcl" mod = "600" }, { destination = "/etc/subuid" source = "harbor/subuid.pktpl.hcl" mod = "600" }, { destination = "/etc/subgid" source = "harbor/subgid.pktpl.hcl" mod = "600" } ] Vars = { AuthEnabled = false User = "harbor" Group = "harbor" HarborDomain = "reg.k8s.in.nuonet.fr" 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" } } Packages = { docker = { name = "docker" action = "install" } docker-rootless-extras = { name = "docker-rootless-extras" action = "install" } docker-compose = { name = "docker-compose" action = "install" } gpg = { name = "gpg" action = "install" } } Daemons = { docker = { name = "docker" type = "auto" enabled = true } cgroups = { name = "cgroups" type = "auto" enabled = true } local = { name = "local" type = "auto" enabled = true } } Users = { harbor = { username = "harbor" group = "harbor" home = "/srv/harbor" shell = "/bin/nologin" } } } NuoHarbor = { Name = "nuo-harbor" Globals = local.Globals Services = { Harbor = local.ServiceNuoHarbor } } }