2020-08-18 13:27:55 +00:00
|
|
|
defaults = {
|
|
|
|
'apt': {
|
|
|
|
'packages': {
|
|
|
|
'libvirt-clients': {},
|
|
|
|
'libvirt-daemon-system': {},
|
2021-05-23 10:24:00 +00:00
|
|
|
'netcat-openbsd': {}, # for virt-manager
|
2020-11-13 13:47:40 +00:00
|
|
|
'qemu-utils': {},
|
2021-05-23 10:24:00 +00:00
|
|
|
'qemu-kvm': {},
|
2020-11-13 13:47:40 +00:00
|
|
|
'qemu-system-x86': {},
|
2020-04-11 09:25:24 +00:00
|
|
|
},
|
2020-08-18 13:27:55 +00:00
|
|
|
},
|
2020-11-21 19:58:55 +00:00
|
|
|
'icinga2_api': {
|
|
|
|
'vmhost': {
|
|
|
|
'services': {
|
2020-12-21 08:50:15 +00:00
|
|
|
'LIBVIRT PROCESS': {
|
|
|
|
'command_on_monitored_host': '/usr/lib/nagios/plugins/check_procs -C libvirtd -c 1:',
|
|
|
|
},
|
2020-11-21 19:58:55 +00:00
|
|
|
'QEMU VM STATUS': {
|
|
|
|
'command_on_monitored_host': 'sudo /usr/local/share/icinga/plugins/check_vm_status',
|
2020-11-22 07:24:44 +00:00
|
|
|
'vars.notification.mail': True,
|
2020-11-21 19:58:55 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2020-08-18 13:27:55 +00:00
|
|
|
}
|
2021-05-23 10:24:00 +00:00
|
|
|
|
|
|
|
if node.has_bundle('zfs'):
|
|
|
|
defaults['apt']['packages']['libvirt-daemon-driver-storage-zfs'] = {}
|