chef-cookbooks / iptables

Development repository for Chef Cookbook iptables

Home Page:https://supermarket.chef.io/cookbooks/iptables

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deprecated default recipe does a lot more than resources

koertkuipers opened this issue · comments

the default recipe now says its deprecated, and it says we should change to using the resources.

usually when this is the case you take a look inside the default recipe and you see one or at most a few resources from the cookbook being called, e.g. the recipe can indeed be trivially replaced by the resources.

but that doesn't seem to be the case here. the recipe is doing quite a few things outside of just using the resources. so it it not clear to me how this cookbook expects me to change from the recipe to the resources. what is the suggested path here to proceed?

All the recipe is doing is installing packages and setting up the service.
Replace with iptables_packages and iptables_service resources.

My read of koertkuipers' question is that the default recipe itself should be showing the resource usage as a transitional form. But it's not: its got a dire (misspelled) warning about deprecation and 60+ lines of cookbook.