Selaa lähdekoodia

Creating Roundcube database config include file

merge-requests/1/merge
Christoph Haas 10 vuotta sitten
vanhempi
commit
05d07441c5
2 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. +1
    -0
      group_vars/all
  2. +4
    -0
      roles/ispmail-database/tasks/main.yml

+ 1
- 0
group_vars/all Näytä tiedosto

@@ -2,6 +2,7 @@ ispmail_populate_test_data: true

ispmail_mysql_mailuser_password: ChangeMe
ispmail_mysql_root_password: ChangeMeRoot
ispmail_mysql_roundcube_password: ChangeMeRound

ispmail_dovecot_auth_mechanisms: plain login



+ 4
- 0
roles/ispmail-database/tasks/main.yml Näytä tiedosto

@@ -3,12 +3,16 @@
apt: pkg=python-mysqldb state=installed
- name: creating mailserver MySQL database
mysql_db: name=mailserver state=present
- name: creating Roundcube MySQL database
mysql_db: name=roundcube state=present
- name: copying MySQL database schema to server
copy: src=schema.sql dest=/tmp
- name: setting up SQL schema of mailserver database
mysql_db: name=mailserver state=import target=/tmp/schema.sql
- name: creating MySQL user to read the mailserver database
mysql_user: name=mailuser password={{ispmail_mysql_mailuser_password}} priv=mailserver.*:SELECT,INSERT,UPDATE,DELETE state=present
- name: creating MySQL user for roundcube
mysql_user: name=roundcube password={{ispmail_mysql_roundcube_password}} priv=roundcube.*:ALL state=present
- name: copying MySQL test data to server
copy: src=test.sql dest=/tmp
when: ispmail_populate_test_data == true


Ladataan…
Peruuta
Tallenna