eole-syspass/tmpl/syspass.yml

31 lines
1.1 KiB
YAML
Raw Normal View History

2019-08-13 11:13:16 +02:00
%set %%db_mode = %%getVar('syspass_db_mode')
%set %%client_hosts = list(set(["127.0.0.1", "localhost", %%adresse_ip_br0, %%adresse_ip_root, %%adresse_ip_mysql, %%adresse_ip_web]))
%set %%extra_client_hosts = %%getVar('syspass_db_extra_allowed_hosts', [])
%%client_hosts.extend(%%extra_client_hosts)
%set %%client_hosts = [str(host) for host in %%client_hosts]
dbtype: mysql
dbname: syspass
dbuser: syspass
dbpass: "EeX7Aewe"
client_hosts: %%client_hosts
%if %%db_mode != 'default'
%set %%db_host = %%getVar('syspass_db_host')
%if %%db_host == 'localhost'
%set %%db_host = '127.0.0.1'
%end if
dbhost: %%db_host
%end if
%if %%db_mode == 'externe'
dbport: %%syspass_db_port
dbroot: %%syspass_db_root
dbrootpwd: %%syspass_db_root_passwd_path
%end if
createscript: "/usr/share/eole/db/syspass/gen/0_eole-syspass.sql"
sqlscripts: ["/usr/share/eole/db/syspass/gen/dbstructure.sql"]
updatescripts: []
pwd_files:
- {file: '%%container_path_web/var/www/html/syspass/app/config/config.php',
pattern: " 'dbpass' => '",
owner: 'www-data:www-data',
mod: '540'}