]> gitweb.fluxo.info Git - puppet-shorewall.git/commitdiff
shorewall::rules::libvirt::host: adjust to changes in shorewall::mangle.
authorintrigeri <intrigeri@boum.org>
Thu, 16 Jul 2015 12:36:11 +0000 (12:36 +0000)
committerintrigeri <intrigeri@boum.org>
Thu, 16 Jul 2015 12:36:11 +0000 (12:36 +0000)
That is, make the resource's title more unique by including the destination
interface in it, and accordingly pass the desired action via the new,
dedicated parameter.

manifests/rules/libvirt/host.pp

index c226865952c09352af3f61c6a86eb447a1b7602c..dc3970d1c0faa2628d0ca5d758d993e176c5c679 100644 (file)
@@ -52,7 +52,8 @@ class shorewall::rules::libvirt::host (
   }
 
   if $accept_dhcp {
-    shorewall::mangle { 'CHECKSUM:T':
+    shorewall::mangle { "CHECKSUM:T_${vmz_iface}":
+      action          => 'CHECKSUM:T',
       source          => '-',
       destination     => $vmz_iface,
       proto           => 'udp',