}
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
package "shorewall"
+systemd_service "shorewall-docker" do
+ service "shorewall"
+ dropin "docker"
+ exec_stop "/sbin/shorewall $OPTIONS stop"
+ notifies :restart, "service[shorewall]"
+end
+
template "/etc/default/shorewall" do
source "shorewall-default.erb"
owner "root"