From: Ken Barber Date: Sat, 16 Jul 2011 19:45:00 +0000 (+0200) Subject: (#6) - added action property to type for future provider support. X-Git-Tag: v0.0.1~20 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=e47fc639a68a650545327d1ee3ee55d234e943c9;p=puppet-modules%2Fpuppetlabs-firewall.git (#6) - added action property to type for future provider support. --- diff --git a/lib/puppet/type/firewall.rb b/lib/puppet/type/firewall.rb index 3438c2b..2ba12e5 100644 --- a/lib/puppet/type/firewall.rb +++ b/lib/puppet/type/firewall.rb @@ -44,6 +44,12 @@ Puppet::Type.newtype(:firewall) do newvalues(/^\d+[a-zA-Z0-9\s\-_]+$/) end + newparam(:action) do + desc "Action to perform on this rule." + newvalues(:accept, :reject, :drop) + defaultto :accept + end + # Generic matching properties newproperty(:source, :array_matching => :all) do desc "The source IP address to match. Accepts a string or array."