diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-03-20 14:34:02 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-03-20 14:34:02 -0300 |
commit | 0bd0063088f478a223c48f65cdc8961a5a18a679 (patch) | |
tree | 8316980535879932057694eddf80726323e7b038 /manifests/firewall.pp | |
parent | df01ef71c776fe1d43e05741f7d0bf4dc3d26ced (diff) | |
download | puppet-nodo-0bd0063088f478a223c48f65cdc8961a5a18a679.tar.gz puppet-nodo-0bd0063088f478a223c48f65cdc8961a5a18a679.tar.bz2 |
Allowing physical nodes to define their munin port
Diffstat (limited to 'manifests/firewall.pp')
-rw-r--r-- | manifests/firewall.pp | 7 |
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", } |