cluster/nomad/regions/homelab-1/ingress.tf

18 lines
407 B
Terraform
Raw Permalink Normal View History

data "local_file" "ingress-upstreams" {
filename = "${path.module}/ingress-upstreams.conf"
}
resource "nomad_job" "ingress" {
jobspec = file("${path.module}/job/ingress.hcl")
hcl2 {
enabled = true
vars = {
flake_ref = "${var.flake_host}?rev=${var.flake_rev}&ref=${var.flake_ref}"
flake_sha = var.flake_sha
upstreams = data.local_file.ingress-upstreams.content
}
}
}