bundlewrap/nodes/htz-hel/backup-sophie.py

73 lines
1.9 KiB
Python
Raw Permalink Normal View History

2022-01-04 13:40:05 +00:00
nodes['htz-hel.backup-sophie'] = {
'hostname': 'backup.sophies-kitchen.eu',
'bundles': {
2022-01-04 16:29:27 +00:00
'backup-server',
2022-01-04 13:40:05 +00:00
'zfs',
},
'groups': {
'debian-bullseye',
},
'metadata': {
2022-01-04 13:59:37 +00:00
'apt': {
'packages': {
'mosh': {},
2022-01-04 13:59:37 +00:00
'borgbackup': {},
},
2022-01-04 16:29:27 +00:00
'unattended-upgrades': {
# requires manual apply after reboot to unlock dm-crypt
# devices
'reboot_enabled': False,
2022-01-04 16:29:27 +00:00
},
2022-01-04 13:40:05 +00:00
},
'backups': {
'exclude_from_backups': True,
},
'interfaces': {
'ens18': {
'ips': {
'2a01:4f9:6b:2d99::c0c0:a/64',
},
'gateway6': '2a01:4f9:6b:2d99::2',
},
},
'icinga_options': {
'pretty_name': 'backup.sophies-kitchen.eu',
},
'vm': {
'cpu': 4,
'ram': 8,
},
2022-01-04 16:29:27 +00:00
'backup-server': {
'zfs-base': 'tank/backups',
},
'nftables': {
'rules': {
'50-sophie-misc': [
'inet filter input udp dport { 60000-61000 } accept',
'inet filter input tcp dport 5201 accept',
],
},
},
2022-01-04 13:40:05 +00:00
'zfs': {
'datasets': {
'tank/ejgwthink': {
'mountpoint': '/mnt/backups/ejgwthink',
},
'tank/moto-sophie': {
'mountpoint': '/mnt/backups/moto-sophie',
},
2022-01-04 16:29:27 +00:00
'tank/backups': {},
2022-01-04 13:40:05 +00:00
},
'pools': {
'tank': {
'when_creating': {
'config': [{
'devices': {'/dev/sdb'},
}],
},
},
},
},
},
}