Closed aryabov18 closed 3 years ago
Hey There It looks like this is the first issue you've filed against the chef-cookbooks project. I'm here to offer you a bit of extra help to make sure we can quickly get back to you. Make sure you've filled out all the fields in our issue template. Make sure you've provided us with the version of chef-client you're running, your operating system and the version of the cookbook. If you're not using the most up to date version of the cookbook then please make sure to update first. Lots of things change between versions even if you're issue isn't listed in the changelog. Finally please give us a detailed description of the issue you're having. The more we know about what you're trying to do, what actually happens, and how you can reproduce the problem, the better.
If you're looking for more immediate troubleshooting help make sure to check out #general on the Chef Community Slack. There's plenty of folks there willing to lend a helping hand. Thanks for the first issue. We hope we can get back to you soon with a solution.
Hi,
I am closing this as it relates to an old version of the cookbook which has since been fundamentally changed. If you still have the issue with the latest version please could you open a new issue,
Thanks
Cookbook version
4.5.0
Chef-client version
14.7.17
Platform Details
CentOS Linux release 7.5.1804 (Core)
Scenario:
Store existing rules to the suffix template on installation. "/etc/sysconfig/iptables" -> /etc/iptables.d/suffix Then process them with newly added rules. However, rebuild-iptables can't read existing rules if they have extra chains, because of a mistake in a regular expression.
Steps to Reproduce:
store content of the /etc/iptables.d/suffix file to /etc/iptables.d/suffix file run cookbook or just /usr/sbin/rebuild-iptables
Expected Result:
newly created file /etc/sysconfig/iptables has correct syntax and successfully loaded via iptables-restore
Actual Result:
file /etc/sysconfig/iptables has two rows with ":node_exporter", and iptables-restore fails.
Possible fix for the issue: