first
This commit is contained in:
25
cleanup.nomad
Normal file
25
cleanup.nomad
Normal 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)\""]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user