eolisation
This commit is contained in:
39
tmpl/schedule-db.yml
Normal file
39
tmpl/schedule-db.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
---
|
||||
%set dmode = %%getVar('schedule_db_mode','non')
|
||||
%if %%dmode == "externe"
|
||||
dbhost: %%schedule_dbserver
|
||||
dbport: %%schedule_dbport
|
||||
dbroot: %%schedule_dbuser
|
||||
dbrootpwd: %%schedule_dbpass
|
||||
%else if %%dmode == "local"
|
||||
dbhost: 127.0.0.1
|
||||
%end if
|
||||
dbtype: mysql
|
||||
dbname: schedule
|
||||
dbuser: schedule
|
||||
dbpass: "changeme"
|
||||
%set allow_hosts = %%getVar('schedule_allow_hosts', '')
|
||||
%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
|
||||
|
||||
createscript: "/usr/share/eole/db/schedule/gen/schedule-create-0.sql"
|
||||
|
||||
%set cnt_prefix = %%getVar('container_path_reseau', '')
|
||||
pwd_files:
|
||||
- {file: '%%cnt_prefix/var/www/html/schedule/.env.local',
|
||||
pattern: 'DATABASE_PASSWORD=',
|
||||
owner: 'root:www-data',
|
||||
mod: '660' }
|
Reference in New Issue
Block a user