diff options
| -rw-r--r-- | manifests/rules/libvirt/host.pp | 10 | 
1 files changed, 6 insertions, 4 deletions
diff --git a/manifests/rules/libvirt/host.pp b/manifests/rules/libvirt/host.pp index ac5f045..fe7820c 100644 --- a/manifests/rules/libvirt/host.pp +++ b/manifests/rules/libvirt/host.pp @@ -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'; +    }    }  }  | 
