Compare commits

...

11 commits

Author SHA1 Message Date
da7be10d58
Fix typos 2025-03-26 14:09:24 +01:00
44e398a418
Remove fault file 2025-03-26 12:58:12 +01:00
d903f4f90d
Merge branch 'stable' 2025-03-26 12:57:46 +01:00
ad13e65250
Remove fault file 2025-03-26 12:56:27 +01:00
b63229092c
Add sql for roundcube 2025-03-26 12:56:23 +01:00
4b3c189481
Add sql for roundcube
Signed-off-by: Micke Nordin <kano@sunet.se>
2025-03-26 12:56:19 +01:00
8d57b773a0
Add sql for roundcube 2025-03-26 12:53:28 +01:00
3c815b9a38
Add sql for roundcube
Signed-off-by: Micke Nordin <kano@sunet.se>
2025-03-26 12:52:14 +01:00
249fe90c54
Create dirs 2025-03-25 19:01:44 +01:00
87b6ea8ddb
Disable bruteforce 2025-03-24 15:06:39 +01:00
dc39cb5d85
Disable bruteforce 2025-03-24 15:00:35 +01:00
2 changed files with 5 additions and 1 deletions

View file

@ -15,6 +15,7 @@ define sunetdrive::db_type(
$backup_password = safe_hiera('backup_password')
$proxysql_password = safe_hiera('proxysql_password')
$mysql_user_password = safe_hiera('mysql_user_password')
$roundcube_password = safe_hiera('roundcube_password')
$mariadb_dir = '/etc/mariadb'
$mycnf_path = 'sunetdrive/mariadb/my.cnf.erb'
$server_id = 1000 + Integer($facts['networking']['hostname'][-1])
@ -46,7 +47,7 @@ define sunetdrive::db_type(
sunet::system_user {'mysql': username => 'mysql', group => 'mysql' }
$sql_files = ['02-backup_user.sql', '03-proxysql.sql', '04-nextcloud.sql']
$sql_files = ['02-backup_user.sql', '03-proxysql.sql', '04-nextcloud.sql', '05-roundcube.sql']
$sql_files.each |$sql_file|{
file { "${mariadb_dir}/init/${sql_file}":
ensure => present,

View file

@ -0,0 +1,3 @@
CREATE SCHEMA roundcubemail;
CREATE USER 'roundcube'@'%' IDENTIFIED BY '<%= @roundcube_password %>';
GRANT ALL PRIVILEGES ON roundcubemail.* TO 'roundcube'@'%' IDENTIFIED BY '<%= @roundcube_password %>';