aboutsummaryrefslogtreecommitdiff
path: root/nomad
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-03-27 22:48:12 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-03-27 22:48:12 +0100
commit395437ebb91aad86bd7a92514146e7661568e8d8 (patch)
tree55b7e31d625935b1cf753c13f7c9bfce95cf7726 /nomad
parentabf0b925cc79483cac8b4338f2be83bc7e17f8b3 (diff)
downloadinfrastructure-395437ebb91aad86bd7a92514146e7661568e8d8.tar.gz
infrastructure-395437ebb91aad86bd7a92514146e7661568e8d8.zip
Still fixing jitsi nomad service
Diffstat (limited to 'nomad')
-rw-r--r--nomad/jitsi.hcl30
1 files changed, 25 insertions, 5 deletions
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
}