end
template "/etc/shorewall/rules" do
+ action :nothing
source "shorewall-rules.erb"
owner "root"
group "root"
notifies :restart, "service[shorewall]"
end
+notify_group "shorewall-rules" do
+ action :run
+ notifies :create, "template[/etc/shorewall/rules]"
+end
+
service "shorewall" do
action [:enable, :start]
supports :restart => true
end
template "/etc/shorewall6/rules" do
+ action :nothing
source "shorewall-rules.erb"
owner "root"
group "root"
notifies :restart, "service[shorewall6]"
end
+ notify_group "shorewall6-rules" do
+ action :run
+ notifies :create, "template[/etc/shorewall6/rules]"
+ end
+
service "shorewall6" do
action [:enable, :start]
supports :restart => true