aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-03-20 14:34:02 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-03-20 14:34:02 -0300
commit0bd0063088f478a223c48f65cdc8961a5a18a679 (patch)
tree8316980535879932057694eddf80726323e7b038
parentdf01ef71c776fe1d43e05741f7d0bf4dc3d26ced (diff)
downloadpuppet-nodo-0bd0063088f478a223c48f65cdc8961a5a18a679.tar.gz
puppet-nodo-0bd0063088f478a223c48f65cdc8961a5a18a679.tar.bz2
Allowing physical nodes to define their munin port
-rw-r--r--manifests/firewall.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/firewall.pp b/manifests/firewall.pp
index 4c53772..6aea13d 100644
--- a/manifests/firewall.pp
+++ b/manifests/firewall.pp
@@ -120,12 +120,17 @@ class firewall {
order => '103',
}
+ $munin_port = $node_munin_port ? {
+ '' => "4900",
+ default => "$node_munin_port",
+ }
+
shorewall::rule { "munin":
action => 'ACCEPT',
source => 'net',
destination => '$FW',
proto => 'tcp',
- destinationport => "4900",
+ destinationport => "$munin_port",
ratelimit => '-',
order => "104",
}