Permalink
Browse files

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

…mplate
  • Loading branch information...
1 parent 7246abc commit 95c4c83d01c5d37184f82c6dcd8e7658f4b243f1 Dave Esposito committed with jtimberman Jul 14, 2011
Showing with 6 additions and 7 deletions.
  1. +6 −7 iptables/recipes/default.rb
@@ -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 95c4c83

Please sign in to comment.