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
+1
View File
@@ -0,0 +1 @@
{}
+31 -2
View File
@@ -4,6 +4,20 @@
"own-secrets": {
"token": "${dir:state}/token"
},
"config": {
"atlassian-url": {
"type": "string",
"description": "The address of the operator's Atlassian site the jira tools call, as a URL such as https://example.atlassian.net, laid into the file as ATLASSIAN_URL; unset, the code falls back to its environment and answers no calls until it is given.",
"trusted": true,
"default": ""
},
"atlassian-email": {
"type": "string",
"description": "The email address of the Atlassian account the jira tools sign in as with its API token, laid into the file as ATLASSIAN_EMAIL; unset, the code falls back to its environment and answers no calls until it is given.",
"trusted": true,
"default": ""
}
},
"resources": [
{
"id": "state",
@@ -16,8 +30,18 @@
"type": "file",
"path": "${dir:state}/config.json",
"merge": "json",
"content": "{}",
"mode": "0600"
"template": "files/config.json",
"mode": "0600",
"takes-config": [
{
"key": "atlassian-url",
"as": "ATLASSIAN_URL"
},
{
"key": "atlassian-email",
"as": "ATLASSIAN_EMAIL"
}
]
}
],
"capabilities": [
@@ -39,6 +63,11 @@
"MESH_JIRA_TOKEN_FILE": "${dir:state}/token",
"MESH_JIRA_CONFIG_FILE": "${dir:state}/config.json"
}
},
{
"name": "files",
"kind": "archive",
"from": "files"
}
]
}