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"],
}
service { "libvirtd":
ensure => running,
enable => true,
if defined(Service["iptables"]) {
$iptables = Service["iptables"]
} else {
$iptables = undef
}
}
service { "libvirtd":
ensure => running,
enable => true,
subscribe => $iptables,
}
}