forked from Deuxfleurs/infrastructure
Add missing templated passwords
This commit is contained in:
parent
6da7ecfa9f
commit
afaf89f751
3 changed files with 23 additions and 11 deletions
|
@ -11,7 +11,7 @@ type = mysql
|
|||
host = mariadb.service.2.cluster.deuxfleurs.fr
|
||||
port = 3306
|
||||
user = seafile
|
||||
password = <to be defined>
|
||||
password = {{ key "secrets/seafile/ccnet/mysql_pwd" | trimSpace }}
|
||||
db_name = seafile-db
|
||||
connection_charset = utf8
|
||||
|
|
@ -5,7 +5,7 @@ DATABASES = {
|
|||
'ENGINE': 'django.db.backends.mysql',
|
||||
'NAME': 'seahub-db',
|
||||
'USER': 'seafile',
|
||||
'PASSWORD': '<to be defined>',
|
||||
'PASSWORD': '{{ key "secrets/seafile/ccnet/mysql_pwd" | trimSpace }}',
|
||||
'HOST': 'mariadb.service.2.cluster.deuxfleurs.fr',
|
||||
'PORT': '3306',
|
||||
'OPTIONS': {
|
|
@ -121,6 +121,26 @@ job "seafile" {
|
|||
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"
|
||||
|
@ -137,14 +157,6 @@ job "seafile" {
|
|||
data = "{{ key \"configuration/seafile/conf/seafdav.conf\" }}"
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue