From 284aa3968fd8e9767c60d4ba5d0ffaa6f010524f Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sun, 3 Sep 2023 17:45:38 +0200 Subject: [PATCH] Allow job name customization --- deps/common | 2 +- egress-gateway.nomad.hcl | 2 +- variables.yml | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/deps/common b/deps/common index c790609..a1738a8 160000 --- a/deps/common +++ b/deps/common @@ -1 +1 @@ -Subproject commit c7906097f20a6d1598500afaee825159146bc498 +Subproject commit a1738a81645748892a34d990c6df07cd1b4815ad diff --git a/egress-gateway.nomad.hcl b/egress-gateway.nomad.hcl index a0d7834..7998d2c 100644 --- a/egress-gateway.nomad.hcl +++ b/egress-gateway.nomad.hcl @@ -1,4 +1,4 @@ -job "egress-gateway" { +job [[ .egress_gw.job_name | toJSON ]] { [[ template "common/job_start.tpl" . ]] diff --git a/variables.yml b/variables.yml index eb59b7c..6d4abc3 100644 --- a/variables.yml +++ b/variables.yml @@ -1,6 +1,9 @@ --- egress_gw: + # Name of the Nomad job + job_name: egress-gateway + # Number of instances count: 1