83 lines
1.6 KiB
HCL
83 lines
1.6 KiB
HCL
locals {
|
|
// Definition of the Kubernetes service (templater compatible)
|
|
ServiceDocker = {
|
|
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
|
|
}
|
|
}
|
|
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
|
|
}
|
|
}
|
|
Vars = {
|
|
RootlessDocker = "true"
|
|
}
|
|
Users = {
|
|
dock = {
|
|
username = "dock"
|
|
group = "dock"
|
|
home = "/srv/dock"
|
|
shell = "/bin/nologin"
|
|
}
|
|
}
|
|
}
|
|
|
|
Docker = {
|
|
Name = "docker"
|
|
Globals = local.Globals
|
|
Services = {
|
|
Docker = local.ServiceDocker
|
|
}
|
|
}
|
|
} |