cluster/nomad/modules/gateway-mesh/main.tf
main 2e61e7ef3c
Reorganization and better Terraform
Signed-off-by: main <magic_rb@redalder.org>
2022-07-30 23:27:40 +02:00

21 lines
285 B
HCL

variable "datacenters" {
type = list(string)
}
terraform {
required_providers {
nomad = {}
}
}
resource "nomad_job" "mesh" {
jobspec = file("${path.module}/main.hcl")
hcl2 {
enabled = true
vars = {
"datacenters" = jsonencode(var.datacenters)
}
}
}