libvirt: Restart iptables only if a virbr interface exists
This commit is contained in:
parent
bd487b87f7
commit
f3b849dd66
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ class libvirt::kvm inherits libvirt::client {
|
||||||
notify => Service["libvirtd"],
|
notify => Service["libvirtd"],
|
||||||
}
|
}
|
||||||
|
|
||||||
if defined(Service["iptables"]) {
|
if $::interfaces =~ /virbr[0-9]/ and defined(Service["iptables"]) {
|
||||||
$iptables = Service["iptables"]
|
$iptables = Service["iptables"]
|
||||||
} else {
|
} else {
|
||||||
$iptables = undef
|
$iptables = undef
|
||||||
|
|
Loading…
Add table
Reference in a new issue