aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.terraform/1n_nmd/vpp_device/main.tf
diff options
context:
space:
mode:
Diffstat (limited to 'fdio.infra.terraform/1n_nmd/vpp_device/main.tf')
-rw-r--r--fdio.infra.terraform/1n_nmd/vpp_device/main.tf21
1 files changed, 21 insertions, 0 deletions
diff --git a/fdio.infra.terraform/1n_nmd/vpp_device/main.tf b/fdio.infra.terraform/1n_nmd/vpp_device/main.tf
new file mode 100644
index 0000000000..80c02ec316
--- /dev/null
+++ b/fdio.infra.terraform/1n_nmd/vpp_device/main.tf
@@ -0,0 +1,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
+} \ No newline at end of file