From f7a053a17acb29c88db15c2aecf2a6e8118067b4 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 24 Jan 2013 21:38:53 -0200 Subject: Using in_bandwidth and out_bandwidth as parameters at firewall class --- manifests/subsystems/firewall.pp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'manifests/subsystems') 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", -- cgit v1.2.3