bundlewrap/nodes/wb.offsite-backups.py
2021-10-30 20:59:54 +02:00

72 lines
1.8 KiB
Python

{
'hostname': '192.168.178.20',
'groups': [
'debian-11',
'monitored',
'raspberry-pi',
],
'bundles': [
'dm-crypt',
'smartctl',
'wireguard',
'zfs',
],
'metadata': {
'id': '23b898bd-203b-42d5-8150-cdb459915d77',
'network': {
'internal': {
'interface': 'eth0',
'ipv4': '192.168.178.20/24',
'gateway4': '192.168.178.1',
},
},
'users': {
'root': {
'authorized_users': {
'root@home.backups',
},
},
},
'systemd': {
'services': {
'wpa_supplicant.service': {
'enabled': False,
'running': False,
},
},
},
'wireguard': {
'my_ip': '172.30.0.4/32',
's2s': {
'htz.mails': {
'allowed_ips': [
'10.0.0.0/24',
'10.0.2.0/24',
'10.0.9.0/24',
'10.0.10.0/24',
'10.0.11.0/24',
],
},
},
},
'dm-crypt': {
'tank': {
'device': '/dev/disk/by-id/ata-TOSHIBA_MG06ACA10TE_61C0A1B1FKQE',
},
},
'smartctl': {
'/dev/disk/by-id/ata-TOSHIBA_MG06ACA10TE_61C0A1B1FKQE': {
'apm': 1,
},
},
'zfs': {
'pools': {
'tank': {
'devices': [
'/dev/mapper/tank',
],
},
},
},
},
}