From 1c75011f2509264f5e0a4afbad811470d77099ae Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 24 Aug 2009 16:04:00 -0300 Subject: Changing default values for some traffic shapping defintions / updating changelog --- manifests/init.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'manifests') diff --git a/manifests/init.pp b/manifests/init.pp index 20093e9..c083dd0 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -7,6 +7,7 @@ # at https://reductivelabs.com/trac/puppet/wiki/AqueosShorewall # # Changes: +# * added support for traffic shapping: http://www.shorewall.net/traffic_shaping.htm # * added extension_script define: http://shorewall.net/shorewall_extension_scripts.htm # * FHS Layout: put configuration in /var/lib/puppet/modules/shorewall and # adjust CONFIG_PATH @@ -204,7 +205,7 @@ class shorewall { # See http://www.shorewall.net/3.0/traffic_shaping.htm managed_file { tcdevices: } - define tcdevices($in_bandwidth, $out_bandwidth, $options = '-', $redirected_interfaces = '', $order='100'){ + define tcdevices($in_bandwidth, $out_bandwidth, $options = '', $redirected_interfaces = '', $order='100'){ entry { "tcdevices.d/${order}-${title}": line => "${name} ${in_bandwidth} ${out_bandwidth} ${options} ${redirected_interfaces}", } @@ -212,7 +213,7 @@ class shorewall { # See http://www.shorewall.net/3.0/traffic_shaping.htm managed_file { tcrules: } - define tcrules($source, $destination, $protocol = 'all', $ports, $client_ports = '-', $order='1'){ + define tcrules($source, $destination, $protocol = 'all', $ports, $client_ports = '', $order='1'){ entry { "tcrules.d/${order}-${title}": line => "# ${name}\n${order} ${source} ${destination} ${protocol} ${ports} ${client_ports}", } -- cgit v1.2.3