From 0bd0063088f478a223c48f65cdc8961a5a18a679 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 20 Mar 2010 14:34:02 -0300 Subject: Allowing physical nodes to define their munin port --- manifests/firewall.pp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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", } -- cgit v1.2.3