aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.terraform/terraform-nomad-vpp-device/main.tf
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2024-03-25 14:49:25 +0100
committerPeter Mikus <peter.mikus@protonmail.ch>2024-03-25 14:06:43 +0000
commit83dc3b1b116725fd8b76890df275f868d7414c30 (patch)
treeb626b4a3b6bbf9cd00a62a6825786a2af806e4e3 /fdio.infra.terraform/terraform-nomad-vpp-device/main.tf
parentc10dee4d03643120bc43483fa95cf50d407c7915 (diff)
fix(terraform): vpp-device files
Signed-off-by: Peter Mikus <peter.mikus@protonmail.ch> Change-Id: I7f640aa28ecf3a60696676b0cf8afb7a080e1b12
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
+}
+