This commit is contained in:
2026-02-07 16:34:17 -08:00
commit 11ebd95956
6 changed files with 437 additions and 0 deletions

25
cleanup.nomad Normal file
View File

@@ -0,0 +1,25 @@
job "cleanup-litefs-all" {
datacenters = ["dc1"]
type = "batch"
group "cleanup" {
count = 2
constraint {
attribute = "${attr.unique.hostname}"
operator = "regexp"
value = "odroid7|odroid8"
}
task "clean" {
driver = "docker"
config {
image = "busybox"
volumes = [
"/mnt/configs/navidrome_litefs:/mnt/data"
]
command = "sh"
args = ["-c", "rm -rf /mnt/data/* && echo \"Cleaned $(hostname)\""]
}
}
}
}