aboutsummaryrefslogtreecommitdiffstats
path: root/terraform-ci-infra/1n_nmd/vpp_device/main.tf
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2021-01-28 08:24:35 +0000
committerPeter Mikus <pmikus@cisco.com>2021-01-28 08:29:21 +0000
commit673b206c3d0da6d68b487eb6138766b7fa24ee3d (patch)
tree26712e7b677947b31ee88972db6bd051e317110d /terraform-ci-infra/1n_nmd/vpp_device/main.tf
parent35238a9dc222f9d8f4ca25bce2417c1074b899d1 (diff)
Infra: Terraform vpp_device module
+ Convert to module + Fix memory limit Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: I95285faabbf7bad7fcb7f3b0c9b4e79641c6b95c (cherry picked from commit 2afd8f4fe26ae1f1d183ecac8f9daa85f68bc634) (cherry picked from commit 7c90b6a0f1d0e14f64364d0213e473d447980d05) (cherry picked from commit 7a760c915e1d905f6cc0b2ef99ad293e3e5e290d)
Diffstat (limited to 'terraform-ci-infra/1n_nmd/vpp_device/main.tf')
-rw-r--r--terraform-ci-infra/1n_nmd/vpp_device/main.tf19
1 files changed, 19 insertions, 0 deletions
diff --git a/terraform-ci-infra/1n_nmd/vpp_device/main.tf b/terraform-ci-infra/1n_nmd/vpp_device/main.tf
new file mode 100644
index 0000000000..c4a3e27970
--- /dev/null
+++ b/terraform-ci-infra/1n_nmd/vpp_device/main.tf
@@ -0,0 +1,19 @@
+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
+ }
+}
+
+resource "nomad_job" "nomad_job_csit_shim" {
+ jobspec = data.template_file.nomad_job_csit_shim.rendered
+ detach = false
+} \ No newline at end of file