cluster/nomad/modules/gateway-mesh/main.tf

21 lines
285 B
Terraform
Raw Permalink Normal View History

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)
}
}
}