Compare commits
63 commits
testing-20
...
main
Author | SHA1 | Date | |
---|---|---|---|
da7be10d58 | |||
44e398a418 | |||
d903f4f90d | |||
ad13e65250 | |||
b63229092c | |||
4b3c189481 | |||
8d57b773a0 | |||
3c815b9a38 | |||
55cc71871f | |||
46f1330b5c | |||
d774349950 | |||
beff4242ac | |||
4a6d35b984 | |||
ec4e2bdb38 | |||
a1b7a03908 | |||
9f0eccdb3d | |||
f6cd170e6f | |||
e0f427fcc8 | |||
705479f29c | |||
e0e1d5148f | |||
8b216f6730 | |||
434cd6d1e4 | |||
b3c42225e1 | |||
cbb291be47 | |||
76e110ab90 | |||
96632b111b | |||
74343d15ef | |||
0046349756 | |||
|
98158e1be5 | ||
78bc2b3f7e | |||
26ee034887 | |||
d891874202 | |||
c11e95f5fe | |||
9596f9d210 | |||
e57349f011 | |||
02578640a9 | |||
c9bdb766eb | |||
9425d56716 | |||
b2d3b80f37 | |||
d67cc24318 | |||
efd05971b1 | |||
8dd5534b0f | |||
d24fa23262 | |||
84fc07cffe | |||
5b68f26771 | |||
dc59842fe8 | |||
a91bb85313 | |||
5f0c24865f | |||
8ee75b0601 | |||
62670483c1 | |||
ace56103fc | |||
4afec74a34 | |||
d4d998cf81 | |||
9794b03d44 | |||
45a44789a4 | |||
4201f18ce6 | |||
8057a2fa22 | |||
6cfa2b3da7 | |||
ee6887bfeb | |||
5a04dcdd0f | |||
8927f194d9 | |||
04e4592f4c | |||
45989b8d3d |
2 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||
|
|
3
templates/mariadb/05-roundcube.sql.erb
Normal file
3
templates/mariadb/05-roundcube.sql.erb
Normal 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 %>';
|
Loading…
Add table
Reference in a new issue