X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0c5a97135908a0b4bb755d57773b42d70586f03f..2f0b6f10a1269e4a0a3ae8897d6fda10dd14fb4d:/cookbooks/networking/recipes/default.rb diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index 253ca8f9a..c24686d0b 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -236,7 +236,7 @@ if node[:networking][:wireguard][:enabled] } end - search(:node, "roles:mail") do |server| + search(:node, "roles:mail OR roles:prometheus") do |server| allowed_ips = server.interfaces(:role => :internal).map do |interface| "#{interface[:network]}/#{interface[:prefix]}" end @@ -428,7 +428,6 @@ template "/etc/shorewall/policy" do end template "/etc/shorewall/rules" do - action :nothing source "shorewall-rules.erb" owner "root" group "root" @@ -437,16 +436,12 @@ template "/etc/shorewall/rules" do notifies :restart, "service[shorewall]" end -notify_group "shorewall-rules" do - action :run - notifies :create, "template[/etc/shorewall/rules]" -end - if node[:networking][:firewall][:enabled] service "shorewall" do action [:enable, :start] supports :restart => true status_command "shorewall status" + ignore_failure true end else service "shorewall" do @@ -570,7 +565,6 @@ unless node.interfaces(:family => :inet6).empty? end template "/etc/shorewall6/rules" do - action :nothing source "shorewall-rules.erb" owner "root" group "root" @@ -579,16 +573,12 @@ 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 - if node[:networking][:firewall][:enabled] service "shorewall6" do action [:enable, :start] supports :restart => true status_command "shorewall6 status" + ignore_failure true end else service "shorewall6" do