mesh/merge-gate checking again: the gate refused `unknown` because the controller judged with a node-engine validator pinned before mesh-host #117; mesh-co…
mesh/repo-check checking again: the gate refused `unknown` because the controller judged with a node-engine validator pinned before mesh-host #117; mesh-co…
mesh/delivery-group group feat/owned-paths checking: 0 of 2 member(s) ready
mesh/delivery superseded: a newer head of the same pull request
Every directory and archive resource carries `unknown`: move-out for a home folder whose program writes nothing there (the node-engine, delivered in mesh-host #117, moves the rest to ~/.local/state/mesh-moved/<module>/ with a list), module for ~/.ssh and ~/.claude, program elsewhere; `knows` keeps what a program or the operator relies on (powerlevel10k's compiled files, i3's scripts and the asus/g14 drop-ins, dunst's slack rule, betterbird's records, node-env's forge credential, issue 1033). Two shared folders are no longer declared. Each module's README says it. checks/owned holds every manifest to it; checks/sshdir stays while main's merge check runs it (issue 1035). Tests that pin a manifest follow the new key only. Reviewed in three rounds.
161 lines
3.3 KiB
JSON
161 lines
3.3 KiB
JSON
{
|
|
"module": "mounts",
|
|
"version": "1",
|
|
"requires": [
|
|
"nfs-share"
|
|
],
|
|
"reads": [
|
|
"nfs-server.exports"
|
|
],
|
|
"invokes": [
|
|
"seat:mesh-controller.data"
|
|
],
|
|
"capabilities": [
|
|
"package-manager",
|
|
"service-manager"
|
|
],
|
|
"claims": [
|
|
{
|
|
"name": "node-mounts",
|
|
"scope": "node",
|
|
"serves": [
|
|
"list",
|
|
"test",
|
|
"mount",
|
|
"unmount",
|
|
"adopt"
|
|
]
|
|
}
|
|
],
|
|
"tools": [
|
|
"mounts_list",
|
|
"mounts_exports",
|
|
"mounts_health"
|
|
],
|
|
"state": [
|
|
{
|
|
"name": "shares",
|
|
"per-machine": true
|
|
}
|
|
],
|
|
"config": {
|
|
"shares": {
|
|
"type": "string",
|
|
"description": "The shares of another machine this machine mounts: space-separated name=mountpoint, each optionally :ro, or none (novox/hq ADR 0263 rule 5).",
|
|
"trusted": true,
|
|
"default": "none"
|
|
},
|
|
"sources": {
|
|
"type": "string",
|
|
"description": "The occasional sources this machine mounts: space-separated name=smb://[<user>@]<host>/<share>@<mountpoint> or name=disk:<uuid>@<mountpoint>, each optionally :ro, or none (novox/hq ADR 0263 rule 6); an SMB source's username is in its entry, its password the secret smb-password-<name> (novox/hq ADR 0283).",
|
|
"trusted": true,
|
|
"default": "none"
|
|
}
|
|
},
|
|
"own-secrets": {
|
|
"smb-password-*": {
|
|
"path": "${dir:state}/smb-password-*.secret",
|
|
"issued-by": "outside"
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"id": "nfs-utils",
|
|
"type": "package",
|
|
"package": "nfs-utils"
|
|
},
|
|
{
|
|
"id": "cifs-utils",
|
|
"type": "package",
|
|
"package": "cifs-utils"
|
|
},
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"place": ".",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "config-dir",
|
|
"type": "directory",
|
|
"path": "/etc/mesh-mounts",
|
|
"mode": "0755",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "config",
|
|
"type": "file",
|
|
"path": "/etc/mesh-mounts/mounts.conf",
|
|
"mode": "0644",
|
|
"template": "files/mounts.conf"
|
|
},
|
|
{
|
|
"id": "bus-dir-parent",
|
|
"type": "directory",
|
|
"path": "/var/lib/mesh-mounts",
|
|
"mode": "0755",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "bus-dir",
|
|
"type": "directory",
|
|
"path": "/var/lib/mesh-mounts/from-bus",
|
|
"mode": "0755",
|
|
"owner": "${machine:account}",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "apply",
|
|
"type": "process",
|
|
"name": "mesh-mounts-apply",
|
|
"artifact": "tools-go",
|
|
"run": [
|
|
"./mounts",
|
|
"apply"
|
|
],
|
|
"health": {
|
|
"kind": "unit"
|
|
}
|
|
},
|
|
{
|
|
"id": "watch",
|
|
"type": "process",
|
|
"name": "mesh-mounts-watch",
|
|
"artifact": "tools-go",
|
|
"run": [
|
|
"./mounts",
|
|
"watch"
|
|
],
|
|
"health": {
|
|
"kind": "tool",
|
|
"tool": "mounts_health",
|
|
"interval": "60s",
|
|
"timeout": "10s",
|
|
"looks": 2,
|
|
"grace": "90s"
|
|
}
|
|
}
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "tools-go",
|
|
"kind": "bundle",
|
|
"language": "go",
|
|
"system": "arch",
|
|
"from": "cmd/mounts",
|
|
"binary": "mounts",
|
|
"loads": [
|
|
"mounts"
|
|
]
|
|
},
|
|
{
|
|
"name": "files",
|
|
"kind": "archive",
|
|
"from": "files"
|
|
}
|
|
]
|
|
}
|
|
}
|