X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/5fae0fc5594d33b38966e604b5cf600144bc1eb9..e49218f4d5a297a8a5ccf5998df62ce4e66e6a65:/cookbooks/networking/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index d85f2ebbd..c195251e6 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -343,6 +343,7 @@ template "/etc/shorewall/policy" do end template "/etc/shorewall/rules" do + action :nothing source "shorewall-rules.erb" owner "root" group "root" @@ -351,6 +352,11 @@ template "/etc/shorewall/rules" do 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 @@ -464,6 +470,7 @@ unless node.interfaces(:family => :inet6).empty? end template "/etc/shorewall6/rules" do + action :nothing source "shorewall-rules.erb" owner "root" group "root" @@ -472,6 +479,11 @@ unless node.interfaces(:family => :inet6).empty? 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