From f3b849dd66db15f18bf331fcbcd506ae69b11ab6 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Mon, 8 Jul 2013 15:48:48 +0300 Subject: [PATCH] libvirt: Restart iptables only if a virbr interface exists --- libvirt/manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt/manifests/init.pp b/libvirt/manifests/init.pp index 0cfbf88..348efda 100644 --- a/libvirt/manifests/init.pp +++ b/libvirt/manifests/init.pp @@ -117,7 +117,7 @@ class libvirt::kvm inherits libvirt::client { notify => Service["libvirtd"], } - if defined(Service["iptables"]) { + if $::interfaces =~ /virbr[0-9]/ and defined(Service["iptables"]) { $iptables = Service["iptables"] } else { $iptables = undef