66 lines
1.1 KiB
JSON
66 lines
1.1 KiB
JSON
{
|
|
"module": "ca-trust",
|
|
"version": "1",
|
|
"slug": "catrust",
|
|
"capabilities": [
|
|
"service-manager"
|
|
],
|
|
"requires": [
|
|
"internal-acme-ca"
|
|
],
|
|
"seats": [
|
|
{
|
|
"name": "the-mesh-trust-anchor",
|
|
"scope": "node"
|
|
}
|
|
],
|
|
"claims": [
|
|
{
|
|
"name": "the-mesh-trust-anchor",
|
|
"scope": "node"
|
|
}
|
|
],
|
|
"resources": [
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"place": "."
|
|
},
|
|
{
|
|
"id": "anchor",
|
|
"type": "file",
|
|
"path": "${dir:state}/anchor",
|
|
"mode": "0755",
|
|
"template": "files/anchor"
|
|
},
|
|
{
|
|
"id": "unit",
|
|
"type": "file",
|
|
"path": "/etc/systemd/system/mesh-ca-trust.service",
|
|
"mode": "0644",
|
|
"template": "files/mesh-ca-trust.service"
|
|
},
|
|
{
|
|
"id": "trust",
|
|
"type": "service",
|
|
"unit": "mesh-ca-trust.service",
|
|
"state": "running",
|
|
"boot": "enabled",
|
|
"restart-on": [
|
|
"anchor",
|
|
"unit"
|
|
]
|
|
}
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "files",
|
|
"kind": "archive",
|
|
"from": "files"
|
|
}
|
|
]
|
|
}
|
|
}
|