Add Vili to Odin discovery and Idunn keepalive

This commit is contained in:
Meta Vens 2026-06-12 12:56:40 +01:00
commit d1b3bd3127
4 changed files with 15 additions and 1 deletions

View file

@ -276,6 +276,16 @@ fn swarm_targets(options: &SwarmOptions) -> Result<Vec<DaemonTarget>> {
enabled: true,
interval_seconds: 30,
},
DaemonTarget {
daemon_id: "vili".to_string(),
verse_id: "raven.local".to_string(),
name: "Vili Persona animation daemon".to_string(),
health_command: Some(script("health-vili.cmd")),
deploy_command: None,
restart_command: Some(script("restart-vili.cmd")),
enabled: true,
interval_seconds: 60,
},
DaemonTarget {
daemon_id: "idunn-swarm-deployment-coverage".to_string(),
verse_id: "starfire.local".to_string(),

2
scripts/health-vili.cmd Normal file
View file

@ -0,0 +1,2 @@
@echo off
curl.exe -fsS http://10.77.0.4:8824/health >nul

2
scripts/restart-vili.cmd Normal file
View file

@ -0,0 +1,2 @@
@echo off
ssh -o BatchMode=yes raven "cmd /c E:\Projects\Vili\scripts\restart-vili-daemon.cmd"

View file

@ -20,7 +20,7 @@ function buildConfig(argv) {
const stateDir = args.stateDir || path.join(repoRoot, "scratch", "odin");
const cachePath = args.cachePath || path.join(stateDir, "odin.ccmp");
const layoutPath = args.layoutPath || path.join(stateDir, "interface-layout.json");
const seedDeckUrls = String(args.eveDeckUrl || "ws://127.0.0.1:8795/eve/deck,ws://127.0.0.1:8796/eve/deck,ws://127.0.0.1:8799/eve/deck,ws://127.0.0.1:8802/eve/deck,ws://192.168.1.75:8795/eve/deck")
const seedDeckUrls = String(args.eveDeckUrl || "ws://127.0.0.1:8795/eve/deck,ws://127.0.0.1:8796/eve/deck,ws://127.0.0.1:8799/eve/deck,ws://127.0.0.1:8802/eve/deck,ws://192.168.1.75:8795/eve/deck,ws://10.77.0.4:8824/eve/deck")
.split(",")
.map((entry) => entry.trim())
.filter(Boolean);