2022-05-18 21:23:28 +00:00
|
|
|
locals {
|
|
|
|
nextcloud_backup = file("${path.module}/jobs/nextcloud.hcl")
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "nomad_job" "backups" {
|
|
|
|
hcl2 {
|
|
|
|
enabled = true
|
|
|
|
vars = {
|
|
|
|
"nextcloud_backup" = "${local.nextcloud_backup}",
|
2022-07-25 22:50:25 +00:00
|
|
|
"consul_backup" = file("${path.module}/jobs/consul.hcl"),
|
2022-05-18 21:23:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jobspec = file("${path.module}/backup.nomad")
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "nomad_job" "backups-oneoff" {
|
|
|
|
hcl2 {
|
|
|
|
enabled = true
|
|
|
|
vars = {
|
|
|
|
"nextcloud_backup" = "${local.nextcloud_backup}",
|
2022-07-25 23:29:06 +00:00
|
|
|
"consul_backup" = file("${path.module}/jobs/consul.hcl"),
|
2022-05-18 21:23:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jobspec = file("${path.module}/oneoff.nomad")
|
|
|
|
}
|