aboutsummaryrefslogtreecommitdiff
path: root/nomad/seafile.hcl
diff options
context:
space:
mode:
Diffstat (limited to 'nomad/seafile.hcl')
-rw-r--r--nomad/seafile.hcl14
1 files changed, 10 insertions, 4 deletions
diff --git a/nomad/seafile.hcl b/nomad/seafile.hcl
index c930396..1ffd1a1 100644
--- a/nomad/seafile.hcl
+++ b/nomad/seafile.hcl
@@ -111,6 +111,16 @@ job "seafile" {
}
}
+ artifact {
+ source = "http://127.0.0.1:8500/v1/kv/configuration/seafile/conf/ccnet.conf?raw"
+ destination = "secrets/conf/ccnet.conf.tpl"
+ mode = "file"
+ }
+ template {
+ source = "secrets/conf/ccnet.conf.tpl"
+ destination = "secrets/conf/ccnet.conf"
+ }
+
template {
data = "{{ key \"configuration/seafile/ccnet/mykey.peer\" }}"
destination = "secrets/ccnet/mykey.peer"
@@ -120,10 +130,6 @@ job "seafile" {
destination = "secrets/ccnet/seafile.ini"
}
template {
- data = "{{ key \"configuration/seafile/conf/ccnet.conf\" }}"
- destination = "secrets/conf/ccnet.conf"
- }
- template {
data = "{{ key \"configuration/seafile/conf/mykey.peer\" }}"
destination = "secrets/conf/mykey.peer"
}