From 1566ed593907c829827237aad924c3f527723218 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Sun, 26 Jul 2026 11:49:11 -0500 Subject: mattertimesync: add build + server roles Build role compiles the tagged source on the build host (npm ci + npm run bundle) into a versioned mattertimesync-.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. --- mattertimesync/build/defaults/main.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 mattertimesync/build/defaults/main.yaml (limited to 'mattertimesync/build/defaults') diff --git a/mattertimesync/build/defaults/main.yaml b/mattertimesync/build/defaults/main.yaml new file mode 100644 index 0000000..96156f8 --- /dev/null +++ b/mattertimesync/build/defaults/main.yaml @@ -0,0 +1,9 @@ +--- + +mattertimesync_version: "0.1.0" +# https://github.com/lukehoersten/mattertimesync/tags +# Pure-JS project: npm run bundle produces one self-contained mattertimesync.mjs +# (no native modules), so the target only needs node to run it. +mattertimesync_tar: "https://github.com/{{github_user}}/mattertimesync/archive/refs/tags/v{{mattertimesync_version}}.tar.gz" +mattertimesync_build_dir: "/tmp/mattertimesync-{{mattertimesync_version}}" +mattertimesync_srv_dir: "{{build_srv_dir}}" -- cgit v1.2.3