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"],
|
notify => Service["libvirtd"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if defined(Service["iptables"]) {
|
||||||
|
$iptables = Service["iptables"]
|
||||||
|
} else {
|
||||||
|
$iptables = undef
|
||||||
|
}
|
||||||
|
|
||||||
service { "libvirtd":
|
service { "libvirtd":
|
||||||
ensure => running,
|
ensure => running,
|
||||||
enable => true,
|
enable => true,
|
||||||
|
subscribe => $iptables,
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue