aboutsummaryrefslogtreecommitdiffstats
path: root/terraform-ci-infra/1n_nmd/vpp_device/main.tf
blob: 80c02ec316be1d406be6a447e8e07bf62454cc63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
    image_aarch64 = var.csit_shim_image_aarch64
    image_x86_64  = var.csit_shim_image_x86_64
  }
}

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