diff options
| author | Luke Hoersten <[email protected]> | 2026-07-26 11:49:11 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-07-26 11:49:11 -0500 |
| commit | 1566ed593907c829827237aad924c3f527723218 (patch) | |
| tree | 931230eb48dda06b86ddea2f91d4e7e6765ccb4c /mattertimesync/server/templates/mattertimesync.timer.j2 | |
| parent | 38323823b85b2ae8deef788a0f49e36c789c12f4 (diff) | |
mattertimesync: add build + server roles
Build role compiles the tagged source on the build host (npm ci + npm run
bundle) into a versioned mattertimesync-<ver>.tar.gz in build_srv_dir. Server
role installs the single bundled .mjs, creates the mattertimesync service user
and a 0700 storage dir for the Matter fabric keys, templates config.json, and
runs a hardened oneshot sync via a systemd timer. Both roles depend on the
nodejs role for Node >=20.
Diffstat (limited to 'mattertimesync/server/templates/mattertimesync.timer.j2')
| -rw-r--r-- | mattertimesync/server/templates/mattertimesync.timer.j2 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mattertimesync/server/templates/mattertimesync.timer.j2 b/mattertimesync/server/templates/mattertimesync.timer.j2 new file mode 100644 index 0000000..e378dfc --- /dev/null +++ b/mattertimesync/server/templates/mattertimesync.timer.j2 @@ -0,0 +1,10 @@ +[Unit] +Description=Periodic Matter device clock synchronization + +[Timer] +OnBootSec={{mattertimesync_on_boot_sec}} +OnUnitActiveSec={{mattertimesync_on_active_sec}} +RandomizedDelaySec={{mattertimesync_randomized_delay_sec}} + +[Install] +WantedBy=timers.target |
