Feature 57 (config and provisioning): modules declare config and provisions, their files rendered from templates; synced with main (issues of feature 57, 874)

This commit is contained in:
2026-10-16 07:37:43 +00:00
parent 1a2c917abf
commit 9652b2d5ce
771 changed files with 52063 additions and 1774 deletions
+17 -2
View File
@@ -29,6 +29,15 @@
}
]
},
"config": {
"repository": {
"type": "string",
"description": "The repository the records module keeps a checkout of and serves the record from, as owner/name on the mesh's forge; the operator's, with no default (novox/hq ADR 0112).",
"pattern": "[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+",
"trusted": true,
"required": true
}
},
"resources": [
{
"id": "mesh-state",
@@ -47,7 +56,8 @@
"type": "file",
"path": "${dir:mesh-state}/config.json",
"mode": "0600",
"content": "{}\n",
"template": "files/config.json",
"takes-config": ["repository"],
"merge": "json"
},
{
@@ -55,7 +65,7 @@
"type": "file",
"path": "${dir:mesh-state}/origin",
"mode": "0600",
"content": "${bound:git:scheme}://${bound:git:at}:${bound:git:port}\n"
"template": "files/origin"
},
{
"id": "git",
@@ -80,6 +90,11 @@
"MESH_RECORDS_ORIGIN_FILE": "${dir:mesh-state}/origin",
"MESH_RECORDS_DIR": "${dir:checkout}"
}
},
{
"name": "files",
"kind": "archive",
"from": "files"
}
]
}