aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.terraform/terraform-nomad-vpp-device/main.tf
diff options
context:
space:
mode:
Diffstat (limited to 'fdio.infra.terraform/terraform-nomad-vpp-device/main.tf')
-rw-r--r--fdio.infra.terraform/terraform-nomad-vpp-device/main.tf23
1 files changed, 12 insertions, 11 deletions
diff --git a/fdio.infra.terraform/terraform-nomad-vpp-device/main.tf b/fdio.infra.terraform/terraform-nomad-vpp-device/main.tf
index 2e67085714..b176172d00 100644
--- a/fdio.infra.terraform/terraform-nomad-vpp-device/main.tf
+++ b/fdio.infra.terraform/terraform-nomad-vpp-device/main.tf
@@ -2,18 +2,19 @@ locals {
datacenters = join(",", var.datacenters)
}
-resource "nomad_job" "nomad_job_csit_shim" {
+resource "nomad_job" "nomad_job" {
jobspec = templatefile(
- "${path.module}/conf/nomad/vpp-device.hcl.tftpl",
+ "${path.module}/conf/nomad/${var.job_name}.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
+ datacenters = local.datacenters,
+ job_name = var.job_name,
+ group_count = var.group_count,
+ cpu = var.cpu,
+ memory = var.memory,
+ image_aarch64 = var.image_aarch64,
+ image_x86_64 = var.image_x86_64
}
)
- detach = false
-} \ No newline at end of file
+ detach = false
+}
+