diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-01-29 14:42:10 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-01-29 14:42:10 -0200 |
commit | b669231b3bac4bfa8081b75d774752c155c5d493 (patch) | |
tree | eb3d76fa707a4edca5e0e7498eeec2bc344e048d /manifests | |
parent | 2bbe0fa0257fbb73a72f0bb5ec6d94539755c82b (diff) | |
download | puppet-nodo-b669231b3bac4bfa8081b75d774752c155c5d493.tar.gz puppet-nodo-b669231b3bac4bfa8081b75d774752c155c5d493.tar.bz2 |
Adding icecast firewall rules
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 7f17331..f04efda 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -168,7 +168,8 @@ class nodo::vserver inherits nodo { #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 { @@ -308,6 +309,28 @@ class nodo::vserver inherits nodo { 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', + } + } } } } |