summaryrefslogtreecommitdiff
path: root/puppet/modules/shorewall/manifests/rules/managesieve.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-06-14 21:12:38 +0200
committervarac <varacanero@zeromail.org>2016-06-14 21:12:38 +0200
commit9be18eb2681eb5c9047782eaf4e0c6b8c03ce6e6 (patch)
tree580a084d2bd33df62542e003092e27e068245356 /puppet/modules/shorewall/manifests/rules/managesieve.pp
parented9efc368356bf7ae2330f4f28bc34cc04009b17 (diff)
git subrepo clone --force https://leap.se/git/puppet_shorewall puppet/modules/shorewall
subrepo: subdir: "puppet/modules/shorewall" merged: "06e89ed" upstream: origin: "https://leap.se/git/puppet_shorewall" branch: "master" commit: "06e89ed" git-subrepo: version: "0.3.0" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "cb2995b"
Diffstat (limited to 'puppet/modules/shorewall/manifests/rules/managesieve.pp')
-rw-r--r--puppet/modules/shorewall/manifests/rules/managesieve.pp30
1 files changed, 22 insertions, 8 deletions
diff --git a/puppet/modules/shorewall/manifests/rules/managesieve.pp b/puppet/modules/shorewall/manifests/rules/managesieve.pp
index 63fafcb6..ce1c321f 100644
--- a/puppet/modules/shorewall/manifests/rules/managesieve.pp
+++ b/puppet/modules/shorewall/manifests/rules/managesieve.pp
@@ -1,11 +1,25 @@
-class shorewall::rules::managesieve {
+# manage managesieve ports
+class shorewall::rules::managesieve(
+ $legacy_port = false,
+) {
+ shorewall::rule {
+ 'net-me-tcp_managesieve':
+ source => 'net',
+ destination => '$FW',
+ proto => 'tcp',
+ destinationport => '4190',
+ order => 260,
+ action => 'ACCEPT';
+ }
+ if $legacy_port {
shorewall::rule {
- 'net-me-tcp_managesieve':
- source => 'net',
- destination => '$FW',
- proto => 'tcp',
- destinationport => '2000',
- order => 260,
- action => 'ACCEPT';
+ 'net-me-tcp_managesieve_legacy':
+ source => 'net',
+ destination => '$FW',
+ proto => 'tcp',
+ destinationport => '2000',
+ order => 260,
+ action => 'ACCEPT';
}
+ }
}