aboutsummaryrefslogtreecommitdiffstats
path: root/terraform-ci-infra/1n_nmd/vpp_device/main.tf
blob: c4a3e279703991c9773b790b2014de9137e65cf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
locals {
  datacenters = join(",", var.nomad_datacenters)
}

data "template_file" "nomad_job_csit_shim" {
  template    = file("${path.module}/conf/nomad/csit_shim.hcl")
  vars        = {
    datacenters = local.datacenters
    job_name    = var.csit_shim_job_name
    group_count = var.csit_shim_group_count
    cpu         = var.csit_shim_cpu
    mem         = var.csit_shim_mem
  }
}

resource "nomad_job" "nomad_job_csit_shim" {
  jobspec     = data.template_file.nomad_job_csit_shim.rendered
  detach      = false
}