This commit is contained in:
Daniel Berteaud 2024-02-05 14:59:35 +01:00
parent 218c1b68ce
commit 6cb2d127ca
2 changed files with 6 additions and 2 deletions

View File

@ -1,11 +1,13 @@
[[ $c := merge .egress_gw . -]]
job [[ .instance | toJSON ]] {
job "[[ .instance ]]" {
[[ template "common/job_start" $c ]]
group "egress-gateway" {
count = [[ $c.count ]]
network {
mode = "bridge"
}
@ -19,7 +21,7 @@ job [[ .instance | toJSON ]] {
terminating {
[[- range $service, $def := .egress_gw.services ]]
service {
name = [[ $service | toJSON ]]
name = "[[ $service ]]"
[[- range $k, $v := $def ]]
[[ $k ]] = [[ $v | toJSON ]]
[[- end ]]

View File

@ -6,6 +6,8 @@ job "egress-gateway" {
group "egress-gateway" {
count = 1
network {
mode = "bridge"
}