Take the catalogue's composition rules into the node-engine
ADR 0593 §7: the composer with its refusals leaves mesh-sdk, so mesh-sdk carries no composition rule. The catalogue functions only the node-engine's composition reaches (Resolve, Resolution's Compose, Declaration, DataItems, LeftOut, Rules and the rest, the settings, placeholder and template refusals, the rendering helpers) are copied with their tests into internal/compose/resolution; a method of a mesh-sdk shape becomes a function taking it first. The composition calls its own copies, and the captured catalogue its tests read lives here now, shared by mesh-compose's tests. Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
{
|
||||
"module": "time-sync",
|
||||
"version": "1",
|
||||
"capabilities": [
|
||||
"package-manager",
|
||||
"service-manager"
|
||||
],
|
||||
"tools": [
|
||||
"time_sync_status",
|
||||
"time_sync_servers",
|
||||
"time_sync_sync_now"
|
||||
],
|
||||
"resources": [
|
||||
{
|
||||
"id": "servers",
|
||||
"type": "file",
|
||||
"path": "/etc/systemd/timesyncd.conf.d/50-mesh.conf",
|
||||
"mode": "0644",
|
||||
"template": "files/50-mesh.conf",
|
||||
"names-on-purpose": {
|
||||
"0.europe.pool.ntp.org": "the public NTP pool's European zone: the world's time service, the same for every installation; nearest to every machine of this mesh",
|
||||
"1.europe.pool.ntp.org": "the public NTP pool's European zone: the world's time service, the same for every installation; nearest to every machine of this mesh",
|
||||
"2.europe.pool.ntp.org": "the public NTP pool's European zone: the world's time service, the same for every installation; nearest to every machine of this mesh",
|
||||
"3.europe.pool.ntp.org": "the public NTP pool's European zone: the world's time service, the same for every installation; nearest to every machine of this mesh",
|
||||
"0.arch.pool.ntp.org": "the distribution's own NTP pool, timesyncd's compiled-in fallback, stated so the drop-in says the whole of what timesyncd uses",
|
||||
"1.arch.pool.ntp.org": "the distribution's own NTP pool, timesyncd's compiled-in fallback, stated so the drop-in says the whole of what timesyncd uses",
|
||||
"2.arch.pool.ntp.org": "the distribution's own NTP pool, timesyncd's compiled-in fallback, stated so the drop-in says the whole of what timesyncd uses",
|
||||
"3.arch.pool.ntp.org": "the distribution's own NTP pool, timesyncd's compiled-in fallback, stated so the drop-in says the whole of what timesyncd uses"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "retire-ntpd",
|
||||
"type": "process",
|
||||
"name": "time-sync-retire-ntpd",
|
||||
"artifact": "tools",
|
||||
"run": [
|
||||
"./time-sync-tools",
|
||||
"retire",
|
||||
"ntpd.service",
|
||||
"ntpdate.service"
|
||||
],
|
||||
"run-once": true
|
||||
},
|
||||
{
|
||||
"id": "daemon",
|
||||
"type": "service",
|
||||
"unit": "systemd-timesyncd.service",
|
||||
"state": "running",
|
||||
"boot": "enabled",
|
||||
"restart-on": [
|
||||
"servers"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "ntp",
|
||||
"type": "package",
|
||||
"package": "ntp",
|
||||
"absent": true
|
||||
}
|
||||
],
|
||||
"build": {
|
||||
"artifacts": [
|
||||
{
|
||||
"name": "tools",
|
||||
"kind": "bundle",
|
||||
"language": "go",
|
||||
"system": "arch",
|
||||
"from": "cmd/time-sync-tools",
|
||||
"binary": "time-sync-tools",
|
||||
"loads": [
|
||||
"time-sync-tools"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "files",
|
||||
"kind": "archive",
|
||||
"from": "files"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user