diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-24 21:38:53 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-24 21:38:53 -0200 |
commit | f7a053a17acb29c88db15c2aecf2a6e8118067b4 (patch) | |
tree | f28b6e9660786179db126c5bf8ce0f9bbda15bbd /manifests/subsystems | |
parent | 03d488169df6d99f090ad89550e6b5a0fcff791e (diff) | |
download | puppet-nodo-f7a053a17acb29c88db15c2aecf2a6e8118067b4.tar.gz puppet-nodo-f7a053a17acb29c88db15c2aecf2a6e8118067b4.tar.bz2 |
Using in_bandwidth and out_bandwidth as parameters at firewall class
Diffstat (limited to 'manifests/subsystems')
-rw-r--r-- | manifests/subsystems/firewall.pp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/manifests/subsystems/firewall.pp b/manifests/subsystems/firewall.pp index 0bde7ba..d6f7644 100644 --- a/manifests/subsystems/firewall.pp +++ b/manifests/subsystems/firewall.pp @@ -1,6 +1,8 @@ # firewall definitions for physical servers class firewall( - $local_net = hiera('nodo::firewall::local_net', false), + $local_net = hiera('nodo::firewall::local_net', false), + $in_bandwidth = hiera('nodo::firewall::in_bandwidth', '2mbit'), + $out_bandwidth = hiera('nodo::firewall::out_bandwidth', '2mbit') ) { class { 'shorewall': } @@ -155,16 +157,6 @@ class firewall( # # Traffic shapping # - $in_bandwidth = $max_in_bandwidth ? { - '' => "2mbit", - default => "$max_in_bandwidth", - } - - $out_bandwidth = $max_out_bandwidth ? { - '' => "2mbit", - default => "$max_out_bandwidth", - } - shorewall::tcdevices { "eth0": in_bandwidth => "$in_bandwidth", out_bandwidth => "$out_bandwidth", |