notifies :restart, "service[systemd-resolved]", :immediately
end
+if node[:filesystem][:by_mountpoint][:"/etc/resolv.conf"]
+ execute "umount-resolve-conf" do
+ command "umount -c /etc/resolv.conf"
+ end
+end
+
link "/etc/resolv.conf" do
to "../run/systemd/resolve/stub-resolv.conf"
- not_if { ENV["TEST_KITCHEN"] }
end
zones = {}
action [:enable, :start]
supports :restart => true
status_command "shorewall status"
+ ignore_failure true
end
else
service "shorewall" do
action [:disable, :stop]
supports :restart => true
status_command "shorewall status"
+ ignore_failure true
end
end
action [:enable, :start]
supports :restart => true
status_command "shorewall6 status"
+ ignore_failure true
end
else
service "shorewall6" do
action [:disable, :stop]
supports :restart => true
status_command "shorewall6 status"
+ ignore_failure true
end
end