From 67b86978085e263f1887b27c3bef3cf3e197a377 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Tue, 4 Jan 2022 15:18:41 +0100 Subject: [PATCH] add htz-hel.backup-kunsi --- nodes/htz-hel/backup-kunsi.py | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 nodes/htz-hel/backup-kunsi.py diff --git a/nodes/htz-hel/backup-kunsi.py b/nodes/htz-hel/backup-kunsi.py new file mode 100644 index 0000000..40a921a --- /dev/null +++ b/nodes/htz-hel/backup-kunsi.py @@ -0,0 +1,37 @@ +nodes['htz-hel.backup-kunsi'] = { + 'hostname': '2a01:4f9:6b:2d99::1337', + 'bundles': { + 'backup-server', + 'dm-crypt', + 'zfs', + }, + 'groups': { + 'debian-bullseye', + }, + 'metadata': { + 'apt': { + 'unattended-upgrades': { + # requires manual apply after reboot to unlock dm-crypt + # devices + 'reboot-enabled': False, + }, + }, + 'interfaces': { + 'ens18': { + 'ips': { + '2a01:4f9:6b:2d99::1337/64', + }, + 'gateway6': '2a01:4f9:6b:2d99::2', + }, + }, + 'backups': { + # This is the backup target. + 'exclude_from_backups': True, + }, + 'backup-server': { + 'encrypted-devices': { + '/dev/sdb1': bwpass.password('bw/backup-kunsi/encryption-passphrase'), + }, + }, + }, +}