From 395437ebb91aad86bd7a92514146e7661568e8d8 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Fri, 27 Mar 2020 22:48:12 +0100 Subject: Still fixing jitsi nomad service --- nomad/jitsi.hcl | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) (limited to 'nomad/jitsi.hcl') diff --git a/nomad/jitsi.hcl b/nomad/jitsi.hcl index 6b54d14..e6fc964 100644 --- a/nomad/jitsi.hcl +++ b/nomad/jitsi.hcl @@ -42,8 +42,13 @@ job "jitsi" { data = "{{ key \"secrets/jitsi/jitsi.deuxfleurs.fr.key\" }}" destination = "secrets/certs/jitsi.deuxfleurs.fr.key" } + artifact { + source = "http://127.0.0.1:8500/v1/kv/secrets/jitsi/global_env?raw" + destination = "secrets/global_env.tpl" + mode = "file" + } template { - data = "{{ key \"secrets/jitsi/global_env\" }}" + source = "secrets/global_env.tpl" destination = "secrets/global_env" env = true } @@ -103,8 +108,13 @@ job "jitsi" { data = "{{ key \"secrets/jitsi/jitsi.deuxfleurs.fr.key\" }}" destination = "secrets/certs/jitsi.deuxfleurs.fr.key" } + artifact { + source = "http://127.0.0.1:8500/v1/kv/secrets/jitsi/global_env?raw" + destination = "secrets/global_env.tpl" + mode = "file" + } template { - data = "{{ key \"secrets/jitsi/global_env\" }}" + source = "secrets/global_env.tpl" destination = "secrets/global_env" env = true } @@ -159,8 +169,13 @@ job "jitsi" { data = "{{ key \"secrets/jitsi/auth.jitsi.deuxfleurs.fr.crt\" }}" destination = "secrets/certs/auth.jitsi.deuxfleurs.fr.crt" } + artifact { + source = "http://127.0.0.1:8500/v1/kv/secrets/jitsi/global_env?raw" + destination = "secrets/global_env.tpl" + mode = "file" + } template { - data = "{{ key \"secrets/jitsi/global_env\" }}" + source = "secrets/global_env.tpl" destination = "secrets/global_env" env = true } @@ -174,7 +189,7 @@ job "jitsi" { task "videobridge" { driver = "docker" config { - image = "superboum/amd64_jitsi_videobridge:v1" + image = "superboum/amd64_jitsi_videobridge:v3" network_mode = "host" port_map { video1_port = 4443 @@ -182,8 +197,13 @@ job "jitsi" { } } + artifact { + source = "http://127.0.0.1:8500/v1/kv/secrets/jitsi/global_env?raw" + destination = "secrets/global_env.tpl" + mode = "file" + } template { - data = "{{ key \"secrets/jitsi/global_env\" }}" + source = "secrets/global_env.tpl" destination = "secrets/global_env" env = true } -- cgit v1.2.3