homelab-nomad/nextcloud/nextcloud.tf

25 lines
456 B
Terraform
Raw Normal View History

2022-02-28 20:07:25 +00:00
variable "base_hostname" {
type = string
description = "Base hostname to serve content from"
default = "dev.homelab"
}
2022-02-27 23:22:09 +00:00
resource "nomad_job" "nextcloud-bootstrap" {
hcl2 {
enabled = true
}
jobspec = file("${path.module}/nextcloud-bootstrap.nomad")
}
resource "nomad_job" "nextcloud" {
hcl2 {
enabled = true
2022-02-28 20:07:25 +00:00
vars = {
"base_hostname" = "${var.base_hostname}",
}
2022-02-27 23:22:09 +00:00
}
jobspec = file("${path.module}/nextcloud.nomad")
}