Expose Muninn runtime liveness in Idunn catalog

This commit is contained in:
Meta Vens 2026-06-14 13:51:14 +01:00
commit ce9336e003
2 changed files with 28 additions and 3 deletions

View file

@ -2,9 +2,9 @@ $ErrorActionPreference = "Stop"
. (Join-Path $PSScriptRoot "idunn-deployment-targets.ps1")
$unknown = @($IdunnDeploymentTargets | Where-Object { $_.Status -notin @("enforced", "blocked", "external-owned", "not-runtime") })
$unknown = @($IdunnDeploymentTargets | Where-Object { $_.Status -notin @("enforced", "runtime-enforced", "blocked", "external-owned", "not-runtime") })
$enforcedWithoutDeploy = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "enforced" -and [string]::IsNullOrWhiteSpace($_.Deploy) })
$enforcedWithoutHealth = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "enforced" -and [string]::IsNullOrWhiteSpace($_.Health) })
$enforcedWithoutHealth = @($IdunnDeploymentTargets | Where-Object { $_.Status -in @("enforced", "runtime-enforced") -and [string]::IsNullOrWhiteSpace($_.Health) })
$blockedWithoutReason = @($IdunnDeploymentTargets | Where-Object { $_.Status -in @("blocked", "external-owned") -and [string]::IsNullOrWhiteSpace($_.Reason) })
$issues = @()
@ -26,6 +26,7 @@ if ($issues.Count) {
}
$enforced = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "enforced" })
$runtimeEnforced = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "runtime-enforced" })
$blocked = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "blocked" })
$external = @($IdunnDeploymentTargets | Where-Object { $_.Status -eq "external-owned" })
Write-Host "Idunn deployment catalog coherent: $($IdunnDeploymentTargets.Count) targets, $($enforced.Count) enforced, $($blocked.Count) blocked, $($external.Count) external-owned."
Write-Host "Idunn deployment catalog coherent: $($IdunnDeploymentTargets.Count) targets, $($enforced.Count) deploy-enforced, $($runtimeEnforced.Count) runtime-enforced, $($blocked.Count) blocked, $($external.Count) external-owned."

View file

@ -1,6 +1,30 @@
$repoRoot = Split-Path -Parent $PSScriptRoot
$IdunnDeploymentTargets = @(
[pscustomobject]@{
Id = "starfire-muninn"
Repo = "Odin"
LocalPath = "E:\Projects\Odin"
Host = "starfire"
Service = "muninn serve --host starfire"
Status = "runtime-enforced"
Health = "$repoRoot\scripts\health-starfire-muninn.cmd"
Deploy = $null
Restart = "$repoRoot\scripts\restart-starfire-muninn.cmd"
Reason = "Central Idunn keeps Starfire-local Muninn alive for Quest access and local telemetry surfaces."
},
[pscustomobject]@{
Id = "nightwing-muninn"
Repo = "Odin"
LocalPath = "E:\Projects\Odin"
Host = "nightwing"
Service = "muninn serve --host nightwing"
Status = "runtime-enforced"
Health = "$repoRoot\scripts\health-nightwing-muninn.cmd"
Deploy = $null
Restart = "$repoRoot\scripts\restart-nightwing-muninn.cmd"
Reason = "Central Idunn reaches Nightwing over SSH and keeps the host-local Muninn Move HID daemon alive."
},
[pscustomobject]@{
Id = "nightwing-gjallar"
Repo = "Gjallar"