The mesh's own files for a module are placed by the mesh, not the definition (issue 174)

48 definitions stop naming /var/lib/mesh/<module>: the directory says `place: "mesh"`, the two
subdirectories beneath it (gitea's runtime state, anthropic-manager's output) state their path
beneath it, and every credential, binding, merged file and mount names it as ${dir:mesh-state}.
Resolved on the default root, every definition names exactly the paths it named before —
TestPlacedDirectoriesKeepTheirPaths in mesh-controller, run over both checkouts. Needs the
controller that knows the word (mesh-controller, same branch) one release ahead.
This commit is contained in:
2026-09-30 22:29:28 +02:00
parent 8bc4b7c389
commit 48850ebf90
48 changed files with 275 additions and 275 deletions
+9 -9
View File
@@ -9,10 +9,10 @@
"git"
],
"binds": {
"git": "/var/lib/mesh/records/git.json"
"git": "${dir:mesh-state}/git.json"
},
"own-secrets": {
"broker": "/var/lib/mesh/records/broker"
"broker": "${dir:mesh-state}/broker"
},
"consumes": [
"gitea.pull.merged"
@@ -28,8 +28,8 @@
{
"id": "mesh-state",
"type": "directory",
"path": "/var/lib/mesh/records",
"mode": "0700"
"mode": "0700",
"place": "mesh"
},
{
"id": "checkout",
@@ -40,7 +40,7 @@
{
"id": "config",
"type": "file",
"path": "/var/lib/mesh/records/config.json",
"path": "${dir:mesh-state}/config.json",
"mode": "0600",
"content": "{}\n",
"merge": "json"
@@ -48,7 +48,7 @@
{
"id": "origin",
"type": "file",
"path": "/var/lib/mesh/records/origin",
"path": "${dir:mesh-state}/origin",
"mode": "0600",
"content": "${bound:git:scheme}://${bound:git:at}:${bound:git:port}\n"
},
@@ -58,9 +58,9 @@
"name": "records",
"network": "host",
"volumes": [
"/var/lib/mesh/records/broker:/run/secrets/broker:ro",
"/var/lib/mesh/records/config.json:/run/config/config.json:ro",
"/var/lib/mesh/records/origin:/run/config/origin:ro",
"${dir:mesh-state}/broker:/run/secrets/broker:ro",
"${dir:mesh-state}/config.json:/run/config/config.json:ro",
"${dir:mesh-state}/origin:/run/config/origin:ro",
"${dir:checkout}:${dir:checkout}"
],
"env": {