2020-10-25 15:46:45 +00:00
|
|
|
# To be put into Colocation.
|
|
|
|
|
2020-11-08 14:05:17 +00:00
|
|
|
# To use the serial console in iRMC, set up grub as follows:
|
|
|
|
# GRUB_TIMEOUT=30
|
|
|
|
# GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0,115200 console=tty0"
|
|
|
|
# GRUB_TERMINAL=serial
|
|
|
|
# GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
|
|
|
|
|
2020-10-25 12:54:19 +00:00
|
|
|
nodes['rx300'] = {
|
|
|
|
'hostname': '172.19.138.26',
|
2020-10-25 15:46:45 +00:00
|
|
|
'bundles': {
|
2020-11-13 17:46:52 +00:00
|
|
|
'lldp', # TODO remove once this is no longer at home
|
2021-05-20 16:24:23 +00:00
|
|
|
'smartd',
|
2021-05-23 12:33:20 +00:00
|
|
|
'vmhost',
|
2020-10-25 15:46:45 +00:00
|
|
|
'zfs',
|
|
|
|
},
|
2020-11-21 09:55:09 +00:00
|
|
|
'groups': {
|
|
|
|
'debian-buster',
|
|
|
|
},
|
2020-10-25 15:46:45 +00:00
|
|
|
'metadata': {
|
2020-11-09 14:16:29 +00:00
|
|
|
'interfaces': {
|
2021-05-23 12:33:20 +00:00
|
|
|
'br0': {
|
2020-11-09 14:16:29 +00:00
|
|
|
'ips': {
|
|
|
|
'172.19.138.26/24',
|
|
|
|
},
|
|
|
|
'gateway4': '172.19.138.1',
|
|
|
|
},
|
|
|
|
},
|
2020-11-21 10:31:40 +00:00
|
|
|
'icinga_options': {
|
|
|
|
# TODO remove once this is no longer at home
|
2021-05-20 16:24:35 +00:00
|
|
|
'vars.notification.sms': False,
|
2020-11-21 10:31:40 +00:00
|
|
|
},
|
2020-11-13 11:59:06 +00:00
|
|
|
'backups': {
|
|
|
|
'exclude_from_backups': True,
|
|
|
|
},
|
2020-12-25 13:45:41 +00:00
|
|
|
'lldp': {
|
|
|
|
'hostname': 'rx300.kunbox.net',
|
|
|
|
},
|
2021-05-20 16:24:23 +00:00
|
|
|
'smartd': {
|
|
|
|
'disks': {
|
|
|
|
'/dev/nvme0',
|
|
|
|
},
|
|
|
|
},
|
2021-01-02 11:18:41 +00:00
|
|
|
'systemd-networkd': {
|
|
|
|
'bonds': {
|
|
|
|
'bond0': {
|
|
|
|
'match': {
|
|
|
|
'eth0',
|
|
|
|
'eth1',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-05-23 12:33:20 +00:00
|
|
|
'bridges': {
|
|
|
|
'br0': {
|
|
|
|
'match': {
|
|
|
|
'bond0',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-01-02 11:18:41 +00:00
|
|
|
},
|
2021-01-22 18:07:25 +00:00
|
|
|
'users': {
|
|
|
|
'kunsi': {
|
2021-05-23 12:33:20 +00:00
|
|
|
'groups': {
|
|
|
|
'libvirt',
|
|
|
|
},
|
2021-01-22 18:07:25 +00:00
|
|
|
'ssh_pubkey': {
|
|
|
|
# work laptop
|
|
|
|
'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPM68t1Ssf0c9dEkYOEXllUQ0aybPsW3aQAJuWpUHPlt',
|
|
|
|
'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICYst1HK+gJYhNxzqJGnz4iB73pa89Xz2yH+8wufOcsA',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2020-10-25 15:46:45 +00:00
|
|
|
'zfs': {
|
2020-10-25 15:49:36 +00:00
|
|
|
'module_options': {
|
|
|
|
'zfs_arc_max_mb': 16384, # 16GB
|
|
|
|
},
|
2020-10-25 15:46:45 +00:00
|
|
|
'pools': {
|
|
|
|
'tank': {
|
|
|
|
'raidz': {
|
|
|
|
'/dev/sda',
|
|
|
|
'/dev/sdb',
|
|
|
|
'/dev/sdc',
|
|
|
|
'/dev/sdd',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-05-23 12:33:20 +00:00
|
|
|
'datasets': {
|
|
|
|
'tank/libvirt': {
|
|
|
|
'mountpoint': '/var/lib/libvirt',
|
|
|
|
'compression': 'on',
|
|
|
|
},
|
|
|
|
},
|
2020-10-25 15:46:45 +00:00
|
|
|
},
|
|
|
|
'vm': {
|
|
|
|
'cpu': 32,
|
2021-05-20 15:51:50 +00:00
|
|
|
'ram': 256,
|
2020-10-25 15:46:45 +00:00
|
|
|
},
|
|
|
|
},
|
2020-10-25 12:54:19 +00:00
|
|
|
}
|