2018-12-18 09:44:39 +01:00
|
|
|
---
|
2019-04-17 17:27:19 +02:00
|
|
|
%set dmode = %%getVar('ninegate_db_mode','non')
|
2018-12-18 09:44:39 +01:00
|
|
|
%if %%dmode == "externe"
|
2019-04-17 17:27:19 +02:00
|
|
|
dbhost: %%ninegate_dbserver
|
|
|
|
dbport: %%ninegate_dbport
|
|
|
|
dbroot: %%ninegate_dbuser
|
|
|
|
dbrootpwd: %%ninegate_dbpass
|
2018-12-18 09:44:39 +01:00
|
|
|
%else if %%dmode == "local"
|
|
|
|
dbhost: 127.0.0.1
|
|
|
|
%end if
|
|
|
|
dbtype: mysql
|
2019-04-17 17:27:19 +02:00
|
|
|
dbname: ninegate
|
|
|
|
dbuser: ninegate
|
2018-12-18 09:44:39 +01:00
|
|
|
dbpass: "changeme"
|
2019-04-17 17:27:19 +02:00
|
|
|
%set allow_hosts = %%getVar('ninegate_allow_hosts', '')
|
2018-12-18 09:44:39 +01:00
|
|
|
%if %%dmode == "local"
|
|
|
|
client_hosts: ["127.0.0.1", "localhost" %slurp
|
|
|
|
%else if %%dmode == "externe"
|
|
|
|
client_hosts: ["%%adresse_ip_eth0" %slurp
|
|
|
|
%end if
|
|
|
|
%if %%dmode != "default"
|
|
|
|
%if %%is_empty(%%allow_hosts)
|
|
|
|
]
|
|
|
|
%else
|
|
|
|
%for %%hst in %%allow_hosts
|
|
|
|
,"%%hst" %slurp
|
|
|
|
%end for
|
|
|
|
]
|
|
|
|
%end if
|
|
|
|
%end if
|
2019-06-04 09:59:34 +02:00
|
|
|
|
2019-04-17 17:27:19 +02:00
|
|
|
createscript: "/usr/share/eole/db/ninegate/gen/ninegate-create-0.sql"
|
2018-12-18 09:44:39 +01:00
|
|
|
|
|
|
|
%set cnt_prefix = %%getVar('container_path_reseau', '')
|
|
|
|
pwd_files:
|
2019-04-17 17:27:19 +02:00
|
|
|
- {file: '%%cnt_prefix/var/www/html/ninegate/app/config/parameters.yml',
|
2018-12-18 09:44:39 +01:00
|
|
|
pattern: ' database_password: "',
|
|
|
|
end_pattern: '',
|
|
|
|
owner: 'root:www-data',
|
|
|
|
mod: '660' }
|