28 lines
866 B
Python
28 lines
866 B
Python
defaults = {
|
|
'apt': {
|
|
'packages': {
|
|
'libvirt-clients': {},
|
|
'libvirt-daemon-system': {},
|
|
'netcat-openbsd': {}, # for virt-manager
|
|
'qemu-utils': {},
|
|
'qemu-kvm': {},
|
|
'qemu-system-x86': {},
|
|
},
|
|
},
|
|
'icinga2_api': {
|
|
'vmhost': {
|
|
'services': {
|
|
'LIBVIRT PROCESS': {
|
|
'command_on_monitored_host': '/usr/lib/nagios/plugins/check_procs -C libvirtd -c 1:',
|
|
},
|
|
'QEMU VM STATUS': {
|
|
'command_on_monitored_host': 'sudo /usr/local/share/icinga/plugins/check_vm_status',
|
|
'vars.notification.mail': True,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
if node.has_bundle('zfs'):
|
|
defaults['apt']['packages']['libvirt-daemon-driver-storage-zfs'] = {}
|