libvirt: Restart libvirtd with iptables to fix NAT network rules
This commit is contained in:
parent
2a2a04c879
commit
21e730ef4a
1 changed files with 11 additions and 4 deletions
|
@ -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,
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue