2020-11-21 19:58:55 +00:00
|
|
|
files = {
|
|
|
|
'/usr/local/share/icinga/plugins/check_vm_status': {
|
|
|
|
'mode': '0755',
|
|
|
|
},
|
|
|
|
}
|
2021-06-03 11:59:15 +00:00
|
|
|
|
2022-03-11 12:58:38 +00:00
|
|
|
if node.has_bundle('nftables') and node.has_bundle('apt'):
|
2021-06-03 11:59:15 +00:00
|
|
|
# libvirt on debian depends on either iptables or firewalld. Since
|
|
|
|
# we're managing firewall rules using bundlewrap, we don't want either
|
2022-03-11 12:58:38 +00:00
|
|
|
# of those to interfere. So we install firewalld, then ensure it is
|
2021-06-03 11:59:15 +00:00
|
|
|
# never running. After that, we ensure the bundlewrap managed rules
|
|
|
|
# are active.
|
|
|
|
svc_systemd['firewalld'] = {
|
|
|
|
'running': False,
|
|
|
|
'enabled': False,
|
|
|
|
'masked': True,
|
|
|
|
'needs': {
|
|
|
|
'pkg_apt:firewalld',
|
|
|
|
},
|
|
|
|
'needed_by': {
|
|
|
|
'svc_systemd:nftables',
|
|
|
|
},
|
|
|
|
'triggers': {
|
|
|
|
'svc_systemd:nftables:reload',
|
|
|
|
},
|
|
|
|
}
|
2022-03-11 12:58:38 +00:00
|
|
|
|
|
|
|
if node.has_bundle('pacman'):
|
2022-03-12 07:54:13 +00:00
|
|
|
svc_systemd['libvirtd'] = {
|
|
|
|
'running': None, # triggered via .socket
|
|
|
|
}
|
2022-03-11 12:58:38 +00:00
|
|
|
svc_systemd['virtlogd'] = {
|
2022-03-13 07:41:38 +00:00
|
|
|
'running': None, # triggered via .socket
|
2022-03-11 12:58:38 +00:00
|
|
|
'enabled': None, # triggered via .socket
|
|
|
|
}
|