2020-04-13 07:53:40 +00:00
|
|
|
# this node runs only seafile. Seafile and the mysql server are not
|
|
|
|
# managed by bundlewrap.
|
|
|
|
|
|
|
|
nodes['htz-cloud.sewfile'] = {
|
2020-08-18 13:27:55 +00:00
|
|
|
'bundles': {
|
2020-04-13 07:53:40 +00:00
|
|
|
'seafile',
|
2021-03-27 13:03:33 +00:00
|
|
|
'zfs',
|
2020-08-18 13:27:55 +00:00
|
|
|
},
|
2020-06-01 09:04:51 +00:00
|
|
|
'groups': {
|
2023-05-20 10:19:46 +00:00
|
|
|
'debian-bullseye',
|
2020-06-01 09:04:51 +00:00
|
|
|
'webserver',
|
|
|
|
},
|
2020-04-13 07:53:40 +00:00
|
|
|
'metadata': {
|
2020-09-20 16:35:35 +00:00
|
|
|
'interfaces': {
|
|
|
|
'eth0': {
|
2020-11-09 14:16:29 +00:00
|
|
|
'ips': {
|
2020-10-27 17:15:01 +00:00
|
|
|
'116.203.205.248',
|
2020-11-09 14:16:29 +00:00
|
|
|
'2a01:4f8:c0c:c71b::1/64',
|
2020-09-20 16:35:35 +00:00
|
|
|
},
|
|
|
|
'gateway4': '172.31.1.1',
|
|
|
|
'gateway6': 'fe80::1',
|
|
|
|
},
|
2021-04-24 06:53:20 +00:00
|
|
|
'ens10': {
|
|
|
|
'ips': {
|
|
|
|
'172.19.137.3/32',
|
|
|
|
},
|
|
|
|
'routes': {
|
|
|
|
# VPN
|
2024-02-25 18:14:13 +00:00
|
|
|
'172.19.128.0/20': {
|
2021-04-24 06:53:20 +00:00
|
|
|
'via': '172.19.137.1',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2020-09-20 16:35:35 +00:00
|
|
|
},
|
2020-11-13 12:36:12 +00:00
|
|
|
'backups': {
|
|
|
|
'paths': {
|
|
|
|
'/mnt/seafile-data',
|
2021-03-27 12:49:23 +00:00
|
|
|
'/var/tmp/mysqldumps',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'backup-client': {
|
|
|
|
'pre-hooks': {
|
|
|
|
'mysqldump': \
|
|
|
|
'test -d /var/tmp/mysqldumps || mkdir -p /var/tmp/mysqldumps\n'\
|
|
|
|
'rm /var/tmp/mysqldumps/*.sql\n'\
|
|
|
|
'mysqldump --databases ccnet_db > /var/tmp/mysqldumps/ccnet_db.sql\n'\
|
|
|
|
'mysqldump --databases seafile_db > /var/tmp/mysqldumps/seafile_db.sql\n'\
|
|
|
|
'mysqldump --databases seahub_db > /var/tmp/mysqldumps/seahub_db.sql\n',
|
2020-11-13 12:36:12 +00:00
|
|
|
},
|
|
|
|
},
|
2020-11-30 05:54:50 +00:00
|
|
|
'icinga_options': {
|
2021-04-10 13:05:29 +00:00
|
|
|
'pretty_name': 'sewfile.franzi.business',
|
2020-11-30 05:54:50 +00:00
|
|
|
'vars.notification.sms': False,
|
|
|
|
},
|
2020-06-01 09:35:56 +00:00
|
|
|
'nginx': {
|
|
|
|
'vhosts': {
|
|
|
|
'sewfile.franzi.business': {
|
2021-03-30 19:26:25 +00:00
|
|
|
'max_body_size': '0',
|
2020-06-01 09:35:56 +00:00
|
|
|
'extras': True,
|
2020-11-10 10:26:49 +00:00
|
|
|
'website_check_path': '/accounts/login/',
|
|
|
|
'website_check_string': 'Username',
|
2020-06-01 09:35:56 +00:00
|
|
|
},
|
2020-06-01 08:26:37 +00:00
|
|
|
},
|
|
|
|
},
|
2020-08-30 08:32:54 +00:00
|
|
|
'vm': {
|
|
|
|
'cpu': 1,
|
|
|
|
'ram': 2,
|
2021-03-27 13:03:33 +00:00
|
|
|
},
|
|
|
|
'zfs': {
|
|
|
|
'pools': {
|
2021-08-17 16:09:51 +00:00
|
|
|
'tank': {
|
|
|
|
'when_creating': {
|
|
|
|
'config': [{
|
|
|
|
'devices': {'/dev/sdb'},
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
},
|
2021-03-27 13:03:33 +00:00
|
|
|
},
|
|
|
|
'datasets': {
|
|
|
|
'tank/mysql': {
|
|
|
|
'mountpoint': '/var/lib/mysql',
|
|
|
|
},
|
|
|
|
'tank/seafile-data': {
|
|
|
|
'mountpoint': '/mnt/seafile-data',
|
2021-07-17 17:40:41 +00:00
|
|
|
'needed_by': {
|
|
|
|
'bundle:seafile',
|
|
|
|
},
|
2021-03-27 13:03:33 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2020-04-13 07:53:40 +00:00
|
|
|
},
|
|
|
|
}
|