nodes/aurto: add vm
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit

This commit is contained in:
Franzi 2021-05-23 14:33:20 +02:00
parent 17f3537d74
commit 24066d89a2
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 59 additions and 1 deletions

41
nodes/aurto.py Normal file
View file

@ -0,0 +1,41 @@
nodes['aurto'] = {
'hostname': '172.19.138.28',
'bundles': {
'lldp',
},
'groups': {
'arch',
},
'metadata': {
'icinga_options': {
#'exclude_from_monitoring': False,
'also_affected_by': {
'rx300',
},
},
'interfaces': {
'enp1s0': {
'ips': {
'172.19.138.28/24',
},
'gateway4': '172.19.138.1',
},
},
'sudo': {
'extra_configs': {
'50_aurto_passwordless': {
'%wheel ALL=(ALL) NOPASSWD: /usr/bin/arch-nspawn',
'%wheel ALL=(ALL) NOPASSWD: /usr/bin/pacsync aurto',
'%wheel ALL=(ALL) NOPASSWD:SETENV: /usr/bin/makechrootpkg',
},
},
},
'users': {
'kunsi': {
'groups': {
'wheel',
},
},
},
},
}

View file

@ -11,6 +11,7 @@ nodes['rx300'] = {
'bundles': {
'lldp', # TODO remove once this is no longer at home
'smartd',
'vmhost',
'zfs',
},
'groups': {
@ -18,7 +19,7 @@ nodes['rx300'] = {
},
'metadata': {
'interfaces': {
'bond0': {
'br0': {
'ips': {
'172.19.138.26/24',
},
@ -49,9 +50,19 @@ nodes['rx300'] = {
},
},
},
'bridges': {
'br0': {
'match': {
'bond0',
},
},
},
},
'users': {
'kunsi': {
'groups': {
'libvirt',
},
'ssh_pubkey': {
# work laptop
'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPM68t1Ssf0c9dEkYOEXllUQ0aybPsW3aQAJuWpUHPlt',
@ -73,6 +84,12 @@ nodes['rx300'] = {
},
},
},
'datasets': {
'tank/libvirt': {
'mountpoint': '/var/lib/libvirt',
'compression': 'on',
},
},
},
'vm': {
'cpu': 32,