aboutsummaryrefslogtreecommitdiff
path: root/nomad
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-15 16:02:16 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-15 16:20:47 +0100
commitafaf89f7512036318bd7a187c91e19601b7470d6 (patch)
treeaed6c827b65119c29ee41e9396165332f1c64590 /nomad
parent6da7ecfa9f001f3a51a1bb183c782821934dec0c (diff)
downloadinfrastructure-afaf89f7512036318bd7a187c91e19601b7470d6.tar.gz
infrastructure-afaf89f7512036318bd7a187c91e19601b7470d6.zip
Add missing templated passwords
Diffstat (limited to 'nomad')
-rw-r--r--nomad/seafile.hcl30
1 files changed, 21 insertions, 9 deletions
diff --git a/nomad/seafile.hcl b/nomad/seafile.hcl
index dc076c6..f118999 100644
--- a/nomad/seafile.hcl
+++ b/nomad/seafile.hcl
@@ -116,11 +116,31 @@ job "seafile" {
destination = "secrets/conf/ccnet.conf.tpl"
mode = "file"
}
- template {
+ template {
source = "secrets/conf/ccnet.conf.tpl"
destination = "secrets/conf/ccnet.conf"
}
+ artifact {
+ source = "http://127.0.0.1:8500/v1/kv/configuration/seafile/conf/seafile.conf.tpl?raw"
+ destination = "secrets/conf/seafile.conf.tpl"
+ mode = "file"
+ }
+ template {
+ source = "secrets/conf/seafile.conf.tpl"
+ destination = "secrets/conf/seafile.conf"
+ }
+
+ artifact {
+ source = "http://127.0.0.1:8500/v1/kv/configuration/seafile/conf/seahub_settings.py.tpl?raw"
+ destination = "secrets/conf/seahub_settings.py.tpl"
+ mode = "file"
+ }
+ template {
+ source = "secrets/conf/seahub_settings.py.tpl"
+ destination = "secrets/conf/seahub_settings.py"
+ }
+
template {
data = "{{ key \"configuration/seafile/ccnet/mykey.peer\" }}"
destination = "secrets/ccnet/mykey.peer"
@@ -138,14 +158,6 @@ job "seafile" {
destination = "secrets/conf/seafdav.conf"
}
template {
- data = "{{ key \"configuration/seafile/conf/seafile.conf\" }}"
- destination = "secrets/conf/seafile.conf"
- }
- template {
- data = "{{ key \"configuration/seafile/conf/seahub_settings.py\" }}"
- destination = "secrets/conf/seahub_settings.py"
- }
- template {
data = "{{ key \"configuration/seafile/conf/gunicorn.conf\" }}"
destination = "secrets/conf/gunicorn.conf"
}