From: wuwx Date: Fri, 25 Jan 2013 18:25:03 +0000 (+0800) Subject: working with ip6tables support X-Git-Tag: 0.1.0~3^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a2502eb334edf4ae818300d3e29cc5147ce07cb0;p=puppet-modules%2Fpuppetlabs-firewall.git working with ip6tables support --- diff --git a/lib/puppet/provider/firewall/ip6tables.rb b/lib/puppet/provider/firewall/ip6tables.rb index f063e38..5759920 100644 --- a/lib/puppet/provider/firewall/ip6tables.rb +++ b/lib/puppet/provider/firewall/ip6tables.rb @@ -17,10 +17,18 @@ Puppet::Type.type(:firewall).provide :ip6tables, :parent => :iptables, :source = has_feature :pkttype optional_commands({ - :iptables => '/sbin/ip6tables', - :iptables_save => '/sbin/ip6tables-save', + :ip6tables => '/sbin/ip6tables', + :ip6tables_save => '/sbin/ip6tables-save', }) + def self.iptables(*args) + ip6tables(*args) + end + + def self.iptables_save(*args) + ip6tables_save(*args) + end + @resource_map = { :burst => "--limit-burst", :destination => "-d",