chore: backup infrastructure configurations [skip ci]
This commit is contained in:
26
nomad_backup/host-check.hcl
Normal file
26
nomad_backup/host-check.hcl
Normal file
@@ -0,0 +1,26 @@
|
||||
job "host-check" {
|
||||
datacenters = ["dc1"]
|
||||
type = "batch"
|
||||
|
||||
constraint {
|
||||
attribute = "${attr.unique.hostname}"
|
||||
value = "odroid7"
|
||||
}
|
||||
|
||||
group "check" {
|
||||
task "ss" {
|
||||
driver = "raw_exec"
|
||||
config {
|
||||
command = "ss"
|
||||
args = ["-tln"]
|
||||
}
|
||||
}
|
||||
task "ufw" {
|
||||
driver = "raw_exec"
|
||||
config {
|
||||
command = "ufw"
|
||||
args = ["status"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user