aboutsummaryrefslogtreecommitdiff
path: root/manifests/rules/munin.pp
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2012-11-11 23:10:20 +0100
committerintrigeri <intrigeri@boum.org>2012-11-11 23:10:20 +0100
commit8080f1a892a69dc171187c8165d7e81f5b5b512d (patch)
tree6e610ec18aaa13f7797eedd08b03c852e49d8cfb /manifests/rules/munin.pp
parent911cc18e594bb5a3ab642ebb24615a0447050c32 (diff)
parent5052233d92e97263eab292408ed2602db0836d98 (diff)
downloadpuppet-shorewall-8080f1a892a69dc171187c8165d7e81f5b5b512d.tar.gz
puppet-shorewall-8080f1a892a69dc171187c8165d7e81f5b5b512d.tar.bz2
Merge remote-tracking branch 'riseup/master' into tmp
Conflicts: manifests/init.pp
Diffstat (limited to 'manifests/rules/munin.pp')
-rw-r--r--manifests/rules/munin.pp12
1 files changed, 8 insertions, 4 deletions
diff --git a/manifests/rules/munin.pp b/manifests/rules/munin.pp
index 0a026b0..0c86abe 100644
--- a/manifests/rules/munin.pp
+++ b/manifests/rules/munin.pp
@@ -1,8 +1,12 @@
-class shorewall::rules::munin {
- shorewall::params { 'MUNINPORT': value => $munin_port ? { '' => 4949, default => $munin_port } }
- shorewall::params { 'MUNINCOLLECTOR': value => $munin_collector ? { '' => '127.0.0.1', default => $munin_collector } }
+class shorewall::rules::munin(
+ $munin_port = '4949',
+ $munin_collector = '127.0.0.1',
+ $collector_source = 'net'
+){
+ shorewall::params { 'MUNINPORT': value => $munin_port }
+ shorewall::params { 'MUNINCOLLECTOR': value => join($munin_collector,',') }
shorewall::rule{'net-me-munin-tcp':
- source => 'net:$MUNINCOLLECTOR',
+ source => "${collector_source}:\$MUNINCOLLECTOR",
destination => '$FW',
proto => 'tcp',
destinationport => '$MUNINPORT',