chr4-cookbooks / iptables-ng

Cookbook to maintain iptables rules and policies on different platforms, respecting the way the os handles these settings.
GNU General Public License v3.0
38 stars 33 forks source link

Add support for Debian 8 (Jessie) #43

Closed ichilton closed 9 years ago

ichilton commented 9 years ago

The cookbook currently doesn't work on Debian 8 (Jessie), because they've renamed the service from iptables-persistant to netfilter-persistant.

chr4 commented 9 years ago

Hey, thank your for your contribution! I'll merge this, and release a new version after all tests run through. Feel free to help me adapt the kitchen.yml and stuff :)

chr4 commented 9 years ago

There's not Jessie version available (Bento). I'll release this fix beforehand, and leave this issue open until tests are included.

ichilton commented 9 years ago

Hi!

Looks like there is now! - https://github.com/chef/bento/blob/master/debian-8.1-amd64.json

Ian

chr4 commented 9 years ago

Thanks! Unfortunately, Jessie doesn't seem to be supported by other parts of Chef yet?

I'm getting this error when running kitchen:

         1) Error:
       iptables-ng::lwrp_chain_create_default#test_0002_should enable iptables serices:
       Chef::Exceptions::Override: You must override load_current_resource in #<Chef::Provider::Service:0x0000000baa9500>
           /opt/chef/embedded/apps/chef/lib/chef/provider.rb:95:in `load_current_resource'

       3 tests, 5 assertions, 0 failures, 1 errors, 0 skips

I'm not really finding anything useful, beside that it might be an error that the underlying system is not yet (fully) supported by Chef. Any suggestions?