diff options
Diffstat (limited to 'fdio.infra.terraform/terraform-nomad-vpp-device/main.tf')
-rw-r--r-- | fdio.infra.terraform/terraform-nomad-vpp-device/main.tf | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/fdio.infra.terraform/terraform-nomad-vpp-device/main.tf b/fdio.infra.terraform/terraform-nomad-vpp-device/main.tf new file mode 100644 index 0000000000..2e67085714 --- /dev/null +++ b/fdio.infra.terraform/terraform-nomad-vpp-device/main.tf @@ -0,0 +1,19 @@ +locals { + datacenters = join(",", var.datacenters) +} + +resource "nomad_job" "nomad_job_csit_shim" { + jobspec = templatefile( + "${path.module}/conf/nomad/vpp-device.hcl.tftpl", + { + datacenters = local.datacenters + job_name = var.job_name + group_count = var.group_count + cpu = var.cpu + mem = var.memory + image_aarch64 = var.image_aarch64 + image_x86_64 = var.image_x86_64 + } + ) + detach = false +}
\ No newline at end of file |