Closed phessler closed 10 years ago
Needless to say, this is a rather critical bug for us.
Hi,
this is not a bug. The typical behaviour of chef resources is that they are not deleted when the code is removed. The proper way to deal with your problem is to add the following to your recipe (the same as with other resources, like file, template, user etc):
iptables_ng_rule 'http' do
action :delete
end
Let me know if this works for you.
Additionally, when I remove a rule, it is not deleted from the ruleset.
I'm sorry, I dont' quite understand what you mean with this. Can you explain this in some more detail?
Huh. That is a surprising behaviour of Chef for me. Ok, thanks.
I removed the LWRP entry from my rule, and it stayed on the test system.
That makes sense now.
Ok, please close this with NOTABUG, and SUBMITTERISADUMBASS ;).
No worries :) Thanks for using my cookbook!
Version 2.0.0, downloaded from the Chef Cookbook site.
I made a change to a rule name, and the previous rule still existed.
From:
To:
I now have two copies of allowing port 80.
Additionally, when I remove a rule, it is not deleted from the ruleset.