]> gitweb.fluxo.info Git - puppet-shorewall.git/commitdiff
Allow not setting up masquerading in libvirt::host.
authorintrigeri <intrigeri@boum.org>
Sat, 9 Feb 2013 15:35:45 +0000 (16:35 +0100)
committerintrigeri <intrigeri@boum.org>
Sat, 9 Feb 2013 15:35:45 +0000 (16:35 +0100)
manifests/rules/libvirt/host.pp

index ac5f045c4695b0072770138b36b10814ee65dbc3..fe7820cf378a5f07153663f18d5000a6b979c1bc 100644 (file)
@@ -45,10 +45,12 @@ class shorewall::rules::libvirt::host (
     }
   }
 
-  shorewall::masq {
-    "masq-${masq_iface}":
-      interface => "$masq_iface",
-      source => '10.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.168.0.0/16';
+  if $masq_iface {
+    shorewall::masq {
+      "masq-${masq_iface}":
+        interface => "$masq_iface",
+        source => '10.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.168.0.0/16';
+    }
   }
 
 }