Commit 648ed33c authored by mh's avatar mh
Browse files

support multiple sources

parent e7534f60
# dispatch munin rules # dispatch munin rules
class firewall::rules::munin( class firewall::rules::munin (
Array[Stdlib::IP::Address::V4] $collector = [], Array[Stdlib::IP::Address::V4] $collector = [],
Array[Stdlib::IP::Address::V6] $collector6 = [], Array[Stdlib::IP::Address::V6] $collector6 = [],
Stdlib::Port $port = 4949, Stdlib::Port $port = 4949,
Enum['loc','net'] $collector_source = 'net', Array[Enum['loc','net']] $collector_source = ['net'],
){ ) {
include firewall include firewall
if $firewall::use_nftables { if $firewall::use_nftables {
if !empty($collector) { if !empty($collector) {
...@@ -20,7 +20,7 @@ class firewall::rules::munin( ...@@ -20,7 +20,7 @@ class firewall::rules::munin(
} }
} }
} else { } else {
class{'shorewall::rules::munin': class { 'shorewall::rules::munin':
munin_port => $port, munin_port => $port,
munin_collector => $collector, munin_collector => $collector,
munin_collector6 => $collector6, munin_collector6 => $collector6,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment