]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/resources/firewall_rule.rb
Process firewall_rule resources at compile time
[chef.git] / cookbooks / networking / resources / firewall_rule.rb
index 348272af7ccef03fda8ad50f9b2d9883e75627fd..e92681ec7601fc08364a6e3fd66f96459f47aed8 100644 (file)
@@ -30,9 +30,11 @@ property :proto, :kind_of => String, :required => true
 property :dest_ports, :kind_of => [String, Integer], :default => "-"
 property :source_ports, :kind_of => [String, Integer], :default => "-"
 property :rate_limit, :kind_of => String, :default => "-"
-property :connection_limit, :kind_of => String, :default => "-"
+property :connection_limit, :kind_of => [String, Integer], :default => "-"
 property :helper, :kind_of => String, :default => "-"
 
+property :compile_time, TrueClass, :default => true
+
 action :accept do
   add_rule :accept
 end
@@ -55,7 +57,7 @@ action_class do
       :dest_ports => new_resource.dest_ports.to_s,
       :source_ports => new_resource.source_ports.to_s,
       :rate_limit => new_resource.rate_limit,
-      :connection_limit => new_resource.connection_limit,
+      :connection_limit => new_resource.connection_limit.to_s,
       :helper => new_resource.helper
     }