Permalink
Browse files

COOK-641 - RHEL/CentOS iptables cookbook is broken; can't builtd a te…

…mplate
  • Loading branch information...
1 parent 8cd8a93 commit 1f9ef867bcc74cfdb9e58777b945dbf013d9bed7 Dave Esposito committed with jtimberman Jul 14, 2011
Showing with 6 additions and 7 deletions.
  1. +6 −7 recipes/default.rb
View
@@ -34,17 +34,16 @@
end
case node[:platform]
-when "redhat", "centos"
- iptables_save_file = "/etc/sysconfig/iptables"
when "ubuntu", "debian"
iptables_save_file = "/etc/iptables/general"
-end
-template "/etc/network/if-pre-up.d/iptables_load" do
- source "iptables_load.erb"
- mode 0755
- variables :iptables_save_file => iptables_save_file
+ template "/etc/network/if-pre-up.d/iptables_load" do
+ source "iptables_load.erb"
+ mode 0755
+ variables :iptables_save_file => iptables_save_file
+ end
end
+
iptables_rule "all_established"
iptables_rule "all_icmp"

0 comments on commit 1f9ef86

Please sign in to comment.