libvirt: Restart libvirtd with iptables to fix NAT network rules

This commit is contained in:
Ossi Salmi 2013-07-05 17:24:47 +03:00
parent 2a2a04c879
commit 21e730ef4a

View file

@ -117,9 +117,16 @@ class libvirt::kvm inherits libvirt::client {
notify => Service["libvirtd"], notify => Service["libvirtd"],
} }
service { "libvirtd": if defined(Service["iptables"]) {
ensure => running, $iptables = Service["iptables"]
enable => true, } else {
$iptables = undef
} }
}
service { "libvirtd":
ensure => running,
enable => true,
subscribe => $iptables,
}
}