Skip to content

Instantly share code, notes, and snippets.

@kokuyouwind
Last active August 29, 2015 14:02
Show Gist options
  • Save kokuyouwind/223380dc9b5188755ce6 to your computer and use it in GitHub Desktop.
Save kokuyouwind/223380dc9b5188755ce6 to your computer and use it in GitHub Desktop.
service "iptables" do
supports :status => true, :restart => true, :reload => true
action [ :enable, :start ]
end
template "/etc/sysconfig/iptables" do
source "iptables.erb"
owner "root"
group "root"
notifies :reload, "service[iptables]"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment