diff --git a/libvirt/manifests/init.pp b/libvirt/manifests/init.pp index 8c83869..0cfbf88 100644 --- a/libvirt/manifests/init.pp +++ b/libvirt/manifests/init.pp @@ -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, + } + +}