28 lines
599 B
HCL
28 lines
599 B
HCL
locals {
|
|
nextcloud_backup = file("${path.module}/jobs/nextcloud.hcl")
|
|
}
|
|
|
|
resource "nomad_job" "backups" {
|
|
hcl2 {
|
|
enabled = true
|
|
vars = {
|
|
"nextcloud_backup" = "${local.nextcloud_backup}",
|
|
"consul_backup" = file("${path.module}/jobs/consul.hcl"),
|
|
}
|
|
}
|
|
|
|
jobspec = file("${path.module}/backup.nomad")
|
|
}
|
|
|
|
resource "nomad_job" "backups-oneoff" {
|
|
hcl2 {
|
|
enabled = true
|
|
vars = {
|
|
"nextcloud_backup" = "${local.nextcloud_backup}",
|
|
"consul_backup" = file("${path.module}/jobs/consul.hcl"),
|
|
}
|
|
}
|
|
|
|
jobspec = file("${path.module}/oneoff.nomad")
|
|
}
|