aboutsummaryrefslogtreecommitdiff
path: root/nomad/seafile.hcl
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2020-02-15 16:23:00 +0100
committerGitea <gitea@fake.local>2020-02-15 16:23:00 +0100
commitc49647e95e2658894ec422495a0cdd56480473d3 (patch)
treeaed6c827b65119c29ee41e9396165332f1c64590 /nomad/seafile.hcl
parentca787155c9f6b247ffc8718e963aad0fffeb5044 (diff)
parentafaf89f7512036318bd7a187c91e19601b7470d6 (diff)
downloadinfrastructure-c49647e95e2658894ec422495a0cdd56480473d3.tar.gz
infrastructure-c49647e95e2658894ec422495a0cdd56480473d3.zip
Merge branch 'wip_seafile' of Deuxfleurs/deuxfleurs.fr into master
Diffstat (limited to 'nomad/seafile.hcl')
-rw-r--r--nomad/seafile.hcl42
1 files changed, 30 insertions, 12 deletions
diff --git a/nomad/seafile.hcl b/nomad/seafile.hcl
index c930396..f118999 100644
--- a/nomad/seafile.hcl
+++ b/nomad/seafile.hcl
@@ -111,6 +111,36 @@ job "seafile" {
}
}
+ artifact {
+ source = "http://127.0.0.1:8500/v1/kv/configuration/seafile/conf/ccnet.conf.tpl?raw"
+ destination = "secrets/conf/ccnet.conf.tpl"
+ mode = "file"
+ }
+ 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"
@@ -120,10 +150,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"
}
@@ -132,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"
}