2 datacenters = join(",", var.nomad_datacenters)
5 data "template_file" "nomad_job_nginx" {
6 template = file("${path.module}/conf/nomad/nginx.hcl")
8 job_name = var.nginx_job_name
9 datacenters = local.datacenters
13 resource "nomad_job" "nomad_job_nginx" {
14 jobspec = data.template_file.nomad_job_nginx.rendered