From e47fc639a68a650545327d1ee3ee55d234e943c9 Mon Sep 17 00:00:00 2001 From: Ken Barber Date: Sat, 16 Jul 2011 21:45:00 +0200 Subject: [PATCH] (#6) - added action property to type for future provider support. --- lib/puppet/type/firewall.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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." -- 2.45.2