82 lines
2.7 KiB
JSON
82 lines
2.7 KiB
JSON
{
|
|
"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"
|
|
}
|
|
]
|
|
}
|
|
}
|