rtkwlf / cookbook-simple-iptables

Simple Chef iptables cookbook
86 stars 63 forks source link

undefined method `weight' for Chef::Resource::SimpleIptablesRule #40

Closed robertomoutinho closed 10 years ago

robertomoutinho commented 10 years ago

9:
10: simple_iptables_rule "established" do 11: chain "INPUT" 12: rule "-m conntrack --ctstate ESTABLISHED,RELATED" 13: jump "ACCEPT" 14>> weight 1 15: end 16:
17: simple_iptables_rule "icmp" do 18: chain "INPUT" 19: rule "--proto icmp" 20: jump "ACCEPT" 21: weight 2 22: end 23:

[2014-05-22T15:05:13+00:00] ERROR: Running exception handlers [2014-05-22T15:05:13+00:00] ERROR: Exception handlers complete [2014-05-22T15:05:13+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [2014-05-22T15:05:13+00:00] ERROR: undefined method `weight' for Chef::Resource::SimpleIptablesRule

Experimenting with the examples provided at docs I stumbled upon this error...

is "weight" deprecated ?

Kasen commented 10 years ago

Do you have cookbook with version 0.6.0, which you downloaded from Chef community site? "Weight" was release in cookbook version 0.6.1. You may checkout it from github.

robertomoutinho commented 10 years ago

Ok. that was it. berkshelf = depends 'simple_iptables', '~> 0.6.0'