Compare commits

..

64 commits

Author SHA1 Message Date
1a41a66355
Allow calendar servers to talk to db 2025-04-04 12:31:19 +02:00
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
55cc71871f
Create dirs 2025-03-25 19:08:44 +01:00
46f1330b5c
Disable bruteforce 2025-03-25 19:07:38 +01:00
d774349950
Disable bruteforce 2025-03-25 19:07:34 +01:00
beff4242ac
Merge branch 'main' into stable 2025-03-14 14:37:25 +01:00
4a6d35b984
Merge branch 'main' into stable 2025-03-10 14:50:17 +01:00
ec4e2bdb38
Merge branch 'main' into stable 2025-02-28 12:50:14 +01:00
a1b7a03908
Merge branch 'main' into stable 2025-02-28 12:18:49 +01:00
9f0eccdb3d
Merge branch 'main' into stable 2025-02-28 12:07:30 +01:00
f6cd170e6f
Merge branch 'main' into stable 2025-02-27 12:53:52 +01:00
e0f427fcc8
Merge branch 'main' into stable 2025-02-27 11:20:37 +01:00
705479f29c
Merge branch 'main' into stable 2025-02-27 11:12:20 +01:00
e0e1d5148f
Merge branch 'main' into stable 2025-02-26 12:37:44 +01:00
8b216f6730
Merge branch 'main' into stable 2025-02-26 12:33:24 +01:00
434cd6d1e4
Remove gss related manifests and config 2025-02-26 12:32:50 +01:00
b3c42225e1
Remove lookup related manifests and config 2025-02-26 12:32:39 +01:00
cbb291be47
Make sure we know where our backups are located 2025-02-25 20:21:40 +01:00
76e110ab90
Merge branch 'main' into stable 2025-02-20 17:00:35 +01:00
96632b111b
Containers changed names 2025-02-10 10:26:31 +01:00
74343d15ef
Allow long running check for scriptherder 2025-02-03 15:11:45 +01:00
0046349756
Merge branch 'main' into stable 2025-02-03 15:06:16 +01:00
Lars Delhage
98158e1be5
Remove recursive for mysql db dir 2025-01-20 12:29:01 +01:00
78bc2b3f7e
Multinode: Double book keeping
Unfortunatly we must do the same calcultions for multinode
2025-01-20 12:28:59 +01:00
26ee034887
Set expiration for multinode 2025-01-20 12:28:56 +01:00
d891874202
Add full_backup_retention 2025-01-20 12:28:53 +01:00
c11e95f5fe
Only run this on monitor hosts, as it takes a long time 2025-01-20 12:28:49 +01:00
9596f9d210
Multinode: Double book keeping
Unfortunatly we must do the same calcultions for multinode
2025-01-20 12:28:47 +01:00
e57349f011
Set expiration for multinode 2025-01-20 12:28:44 +01:00
02578640a9
Add full_backup_retention 2025-01-20 12:28:42 +01:00
c9bdb766eb
Run as root user 2025-01-20 12:28:39 +01:00
9425d56716
Multinode: Double book keeping
Unfortunatly we must do the same calcultions for multinode
2025-01-20 12:28:37 +01:00
b2d3b80f37
Set expiration for multinode 2025-01-20 12:28:35 +01:00
d67cc24318
Add full_backup_retention 2025-01-20 12:28:32 +01:00
efd05971b1
SATOSA: Always have alwayshttps 2025-01-20 12:28:30 +01:00
8dd5534b0f
Multinode: Double book keeping
Unfortunatly we must do the same calcultions for multinode
2025-01-20 12:28:27 +01:00
d24fa23262
Set expiration for multinode 2025-01-20 12:28:24 +01:00
84fc07cffe
Add full_backup_retention 2025-01-20 12:28:21 +01:00
5b68f26771
Multinode: Double book keeping
Unfortunatly we must do the same calcultions for multinode
2025-01-20 12:28:19 +01:00
dc59842fe8
Set expiration for multinode 2025-01-20 12:28:16 +01:00
a91bb85313
Add full_backup_retention 2025-01-20 12:28:12 +01:00
5f0c24865f
added ability to set trashbin_retention_obligation and versions_retention_obligation in config.php 2025-01-20 12:28:09 +01:00
8ee75b0601
changed nft rules for proxysql - ipv6 2025-01-20 12:28:06 +01:00
62670483c1
changed nft rules for proxysql 2025-01-20 12:28:04 +01:00
ace56103fc
duplicate 2025-01-20 12:28:01 +01:00
4afec74a34
one more 2025-01-20 12:27:58 +01:00
d4d998cf81
Fix notify 2025-01-20 12:27:55 +01:00
9794b03d44
Can not redeclare class 2025-01-20 12:27:52 +01:00
45a44789a4
add back image 2025-01-20 12:27:50 +01:00
4201f18ce6
Fix path 2025-01-20 12:27:47 +01:00
8057a2fa22
convert config to use newer docker_compose class 2025-01-20 12:27:44 +01:00
6cfa2b3da7 Merge branch 'main' into stable 2024-12-24 16:10:24 +01:00
ee6887bfeb Fix redis name 2024-12-24 16:00:34 +01:00
5a04dcdd0f Add back proxysql networ 2024-12-24 16:00:20 +01:00
8927f194d9 Proxysql no longer has external network 2024-12-24 15:59:03 +01:00
04e4592f4c Revert "Use new uptime check"
This reverts commit 60fc3ef307.
2024-12-24 15:59:03 +01:00
45989b8d3d Use new uptime check 2024-12-24 15:59:03 +01:00
2 changed files with 8 additions and 2 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])
@ -33,8 +34,10 @@ define sunetdrive::db_type(
$ports = [3306, 4444, 4567, 4568]
if $location =~ /^multinode/ {
$from = $db_ip + $nextcloud_ip + $backup_ip + $backup_ipv6 + $db_ipv6 + $config['kube'] + $config['kube_v6']
} elsif $location == 'sunet-test' or $location == 'sunet-prod' {
} elsif $location == 'sunet-prod' {
$from = $db_ip + $nextcloud_ip + $backup_ip + $backup_ipv6 + $db_ipv6 + $config['imap'] + $config['imap_v6'] + $config['smtp'] + $config['smtp_v6'] + $config['webmail'] + $config['webmail_v6']
} elsif $location == 'sunet-test' {
$from = $db_ip + $nextcloud_ip + $backup_ip + $backup_ipv6 + $db_ipv6 + $config['imap'] + $config['imap_v6'] + $config['smtp'] + $config['smtp_v6'] + $config['webmail'] + $config['webmail_v6'] + $config['calendar'] + $config['calendar_v6']
} else {
$from = $db_ip + $nextcloud_ip + $backup_ip + $backup_ipv6 + $db_ipv6
}
@ -46,7 +49,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 %>';