homelab-nomad/nextcloud/nextcloud.tf

15 lines
264 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 = {
"backup_config" = "${local.backup_config}",
}
2022-02-27 23:22:09 +00:00
}
jobspec = file("${path.module}/nextcloud.nomad")
}