2022-12-06 15:44:25 +01:00
|
|
|
locals {
|
|
|
|
// Definition of the Kubernetes service (templater compatible)
|
|
|
|
ServiceDocker = {
|
2023-06-27 15:25:30 +02:00
|
|
|
ConfigFiles = [
|
|
|
|
{
|
|
|
|
destination = "/etc/subuid"
|
|
|
|
source = "subuid.pktpl.hcl"
|
|
|
|
mode = "600"
|
|
|
|
owner = "root"
|
|
|
|
group = "root"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
destination = "/etc/subgid"
|
|
|
|
source = "subgid.pktpl.hcl"
|
|
|
|
mode = "600"
|
|
|
|
owner = "root"
|
|
|
|
group = "root"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
Repositories = {
|
|
|
|
AlpineEdgeTesting = {
|
|
|
|
type = "apk"
|
|
|
|
name = "testing"
|
|
|
|
url = "http://mirrors.ircam.fr/pub/alpine/edge/testing"
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
}
|
2022-12-06 15:44:25 +01:00
|
|
|
Packages = {
|
|
|
|
docker = {
|
|
|
|
name = "docker"
|
|
|
|
action = "install"
|
|
|
|
}
|
2023-06-27 15:25:30 +02:00
|
|
|
docker-rootless-extras = {
|
|
|
|
name = "docker-rootless-extras"
|
|
|
|
action = "install"
|
|
|
|
}
|
2022-12-06 15:44:25 +01:00
|
|
|
docker-compose = {
|
|
|
|
name = "docker-compose"
|
|
|
|
action = "install"
|
|
|
|
}
|
2023-06-27 15:25:30 +02:00
|
|
|
gpg = {
|
|
|
|
name = "gpg"
|
|
|
|
action = "install"
|
|
|
|
}
|
2022-12-06 15:44:25 +01:00
|
|
|
}
|
|
|
|
Daemons = {
|
2023-06-27 15:25:30 +02:00
|
|
|
docker = {
|
2022-12-06 15:44:25 +01:00
|
|
|
name = "docker"
|
|
|
|
type = "auto"
|
|
|
|
enabled = true
|
|
|
|
}
|
2023-06-27 15:25:30 +02:00
|
|
|
cgroups = {
|
|
|
|
name = "cgroups"
|
|
|
|
type = "auto"
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
local = {
|
|
|
|
name = "local"
|
|
|
|
type = "auto"
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Vars = {
|
|
|
|
RootlessDocker = "true"
|
|
|
|
}
|
|
|
|
Users = {
|
|
|
|
dock = {
|
|
|
|
username = "dock"
|
|
|
|
group = "dock"
|
|
|
|
home = "/srv/dock"
|
|
|
|
shell = "/bin/nologin"
|
|
|
|
}
|
2022-12-06 15:44:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Docker = {
|
|
|
|
Name = "docker"
|
|
|
|
Globals = local.Globals
|
|
|
|
Services = {
|
|
|
|
Docker = local.ServiceDocker
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|