Skip to content

Commit

Permalink
COOK-641 - RHEL/CentOS iptables cookbook is broken; can't builtd a te…
Browse files Browse the repository at this point in the history
…mplate
  • Loading branch information
Dave Esposito authored and jtimberman committed Dec 21, 2011
1 parent 8cd8a93 commit 1f9ef86
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions recipes/default.rb
Expand Up @@ -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.