aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystems')
-rw-r--r--manifests/subsystems/firewall.pp14
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",