chef-cookbooks / iptables

Development repository for Chef Cookbook iptables
https://supermarket.chef.io/cookbooks/iptables
Apache License 2.0
102 stars 141 forks source link

COOK-1883 : Cookbook iptables has unstated perl requirement #2

Closed gene1wood closed 11 years ago

gene1wood commented 11 years ago

http://tickets.opscode.com/browse/COOK-1883

The cookbook "iptables" creates and executes the /usr/sbin/rebuild-iptables perl script. The cookbook, however, doesn't ensure that perl is installed. For systems that didn't happen to already have perl installed, the iptables cookbook fails with the somewhat confusing error message :

[2012-11-11T08:36:30-08:00] FATAL: Errno::ENOENT: execute[rebuild-iptables] (iptables::default line 22) had an error: Errno::ENOENT: No such file or directory - /usr/sbin/rebuild-iptables

I've fixed this bug by adding the perl requirement and tested it. Feel free to test and merge my pull request