homelab-nomad/services/nextcloud/nextcloud.tf

15 lines
259 B
Terraform
Raw Normal View History

2022-04-15 19:11:41 +00:00
locals {
backup_config = file("${path.module}/nextcloud-backup.hcl")
}
2022-02-27 23:22:09 +00:00
resource "nomad_job" "nextcloud" {
hcl2 {
enabled = true
2022-04-15 19:11:41 +00:00
vars = {
2022-11-02 19:32:27 +00:00
"backup_config" = local.backup_config,
2022-04-15 19:11:41 +00:00
}
2022-02-27 23:22:09 +00:00
}
jobspec = file("${path.module}/nextcloud.nomad")
}