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