munin.pp 566 Bytes
Newer Older
1
class shorewall::rules::munin(
mh's avatar
mh committed
2
  $munin_port = '4949',
3
  $munin_collector = ['127.0.0.1'],
mh's avatar
mh committed
4
  $collector_source = 'net'
5 6
){
    shorewall::params { 'MUNINPORT': value => $munin_port }
7
    shorewall::params { 'MUNINCOLLECTOR': value => join(any2array($munin_collector),',') }
Marcel Haerry's avatar
Marcel Haerry committed
8
    shorewall::rule{'net-me-munin-tcp':
9
        source          => "${collector_source}:\$MUNINCOLLECTOR",
Marcel Haerry's avatar
Marcel Haerry committed
10 11 12 13 14 15 16
        destination     => '$FW',
        proto           => 'tcp',
        destinationport => '$MUNINPORT',
        order           => 240,
        action          => 'ACCEPT';
    }
}