bundlewrap/nodes/sophie/rechenmonster.py

98 lines
3 KiB
Python
Raw Normal View History

2024-06-08 16:46:51 +00:00
nodes['sophie.rechenmonster'] = {
2022-02-18 21:18:27 +00:00
'hostname': '172.19.138.98',
'bundles': {
2022-02-18 21:18:27 +00:00
'basic',
'ipmitool',
'nfs-server',
'smartd',
'systemd',
'systemd-networkd',
'systemd-timers',
2022-02-18 21:18:27 +00:00
'telegraf',
'users',
'zfs',
},
2020-11-13 20:53:12 +00:00
'metadata': {
'interfaces': {
'br0': {
2020-11-13 20:53:12 +00:00
'ips': {
2022-02-18 21:18:27 +00:00
'172.19.138.98/24',
2020-11-13 20:53:12 +00:00
},
2022-02-18 21:18:27 +00:00
'gateway4': '172.19.138.1',
'ipv6_accept_ra': True,
2020-11-13 20:53:12 +00:00
},
},
2020-11-21 10:31:40 +00:00
'icinga_options': {
'exclude_from_monitoring': True,
},
'nfs-server': {
'shares': {
'/video': {
'172.19.138.0/24': 'ro,all_squash,anonuid=65534,anongid=65534,no_subtree_check',
},
},
},
'smartd': {
'disks': {
'/dev/disk/by-id/wwn-0x50025385a01e0795',
},
},
'systemd-networkd': {
'bonds': {
'bond0': {
'match': {
'enp5*',
},
},
},
'bridges': {
'br0': {
'match': {
'bond0',
},
},
},
},
2022-02-18 21:18:27 +00:00
'users': {
'sophie': {
'password': vault.decrypt('encrypt$gAAAAABiEAyiedXL6ZnvelOMumhcB73X72SXZhjS_G0EDYVK5-NQ3_J_0h1W1HkFBNe5tShGNmg88jUiULRBn5u2IoiRGiDrYg=='),
},
},
'zfs': {
'module_options': {
'zfs_arc_max_gb': 16,
},
'pools': {
'storage': {
'when_creating': {
'config': [
{
'type': 'raidz2',
'devices': {
'/dev/disk/by-id/scsi-35000c50057a2d787', # sda
'/dev/disk/by-id/scsi-35000c500579053bf', # sdb
'/dev/disk/by-id/scsi-35000c5005796c697', # sdc
'/dev/disk/by-id/scsi-35000c50057a1c55b', # sdd
'/dev/disk/by-id/scsi-35000c5005781a2e7', # sde
'/dev/disk/by-id/scsi-35000c5005795ce2b', # sdf
'/dev/disk/by-id/scsi-35000c50057a12fa3', # sdg
'/dev/disk/by-id/scsi-35000c50057a19aa3', # sdh
},
},
],
'ashift': 12,
},
},
},
'datasets': {
'storage/video': {
'mountpoint': '/video',
},
2024-06-09 08:21:08 +00:00
'storage/nas': {
'mountpoint': '/nas',
},
},
},
2020-11-13 20:53:12 +00:00
},
}