From ab8c11c0bd4dec03fac6de86b6f668888f141499 Mon Sep 17 00:00:00 2001 From: Sophie Schiller Date: Tue, 4 Jan 2022 14:40:05 +0100 Subject: [PATCH 1/2] htz-hel/backup-sophie add new node --- nodes/htz-hel/backup-sophie.py | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 nodes/htz-hel/backup-sophie.py diff --git a/nodes/htz-hel/backup-sophie.py b/nodes/htz-hel/backup-sophie.py new file mode 100644 index 0000000..9c64dd5 --- /dev/null +++ b/nodes/htz-hel/backup-sophie.py @@ -0,0 +1,50 @@ +nodes['htz-hel.backup-sophie'] = { + 'hostname': 'backup.sophies-kitchen.eu', + 'bundles': { + 'zfs', + }, + 'groups': { + 'debian-bullseye', + }, + 'metadata': { + 'apt': { + 'packages': { + 'borgbackup': {}, + }, + }, + '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, + }, + 'zfs': { + 'datasets': { + 'tank/ejgwthink': { + 'mountpoint': '/mnt/backups/ejgwthink', + }, + }, + 'pools': { + 'tank': { + 'when_creating': { + 'config': [{ + 'devices': {'/dev/sdb'}, + }], + }, + }, + }, + }, + }, +} -- 2.39.5 From e654a0b46eeec6510f62efd6d88494117f971980 Mon Sep 17 00:00:00 2001 From: Sophie Schiller Date: Tue, 4 Jan 2022 14:59:37 +0100 Subject: [PATCH 2/2] fix indentation --- nodes/htz-hel/backup-sophie.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nodes/htz-hel/backup-sophie.py b/nodes/htz-hel/backup-sophie.py index 9c64dd5..fb3198b 100644 --- a/nodes/htz-hel/backup-sophie.py +++ b/nodes/htz-hel/backup-sophie.py @@ -7,10 +7,10 @@ nodes['htz-hel.backup-sophie'] = { 'debian-bullseye', }, 'metadata': { - 'apt': { - 'packages': { - 'borgbackup': {}, - }, + 'apt': { + 'packages': { + 'borgbackup': {}, + }, }, 'backups': { 'exclude_from_backups': True, -- 2.39.5