eole-syspass/tmpl/syspass.yml

30 lines
989 B
YAML

%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
pwd_files:
- {file: '%%container_path_web/srv/syspass/app/config/config.xml',
type: 'xml',
pattern: " <dbPass>",
end_pattern: "</dbPass>",
owner: 'www-data:www-data',
mod: '700'}