#Nodo::vserver::munin <| tag == $name |>
# Define a vserver instance
- define instance($context, $ensure = 'running', $proxy = false, $puppetmaster = false, $gitd = false, $munin = 'client') {
+ define instance($context, $ensure = 'running', $proxy = false, $puppetmaster = false, $gitd = false,
+ $munin = 'client', $icecast = false, $sound = false) {
# set instance id
if $context < 9 {
order => '307',
}
}
+
+ if $icecast {
+ shorewall::rule { 'icecast-1':
+ action => 'DNAT',
+ source => 'net',
+ destination => "fw:192.168.0.$context:8000",
+ proto => 'tcp',
+ destinationport => '8000',
+ ratelimit => '-',
+ order => '308',
+ }
+
+ shorewall::rule { 'icecast-2':
+ action => 'DNAT',
+ source => '$FW',
+ destination => "vm:192.168.0.$context:8000",
+ proto => 'tcp',
+ destinationport => '8000',
+ ratelimit => '-',
+ order => '309',
+ }
+ }
}
}
}