mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-28 19:16:14 +01:00
5ed9ee1903
Signed-off-by: Magic_RB <magic_rb@redalder.org>
18 lines
407 B
HCL
18 lines
407 B
HCL
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
|
|
}
|
|
}
|
|
}
|