aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2013-02-09 16:35:45 +0100
committerintrigeri <intrigeri@boum.org>2013-02-09 16:35:45 +0100
commit27a5b24f613abac86e56d576393de19af3cc577e (patch)
tree8094359e8b2878e754f9124d419eb392154325d6
parent8d67336fc4a8cea5dcb733153d51881b8ffed560 (diff)
downloadpuppet-shorewall-27a5b24f613abac86e56d576393de19af3cc577e.tar.gz
puppet-shorewall-27a5b24f613abac86e56d576393de19af3cc577e.tar.bz2
Allow not setting up masquerading in libvirt::host.
-rw-r--r--manifests/rules/libvirt/host.pp10
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';
+ }
}
}