# 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': }
#
# 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",