-if node[:networking][:resolved]
- service "systemd-resolved" do
- action [:enable, :start]
- end
-
- directory "/etc/systemd/resolved.conf.d" do
- owner "root"
- group "root"
- mode 0o755
- end
-
- template "/etc/systemd/resolved.conf.d/99-chef.conf" do
- source "resolved.conf.erb"
- owner "root"
- group "root"
- mode 0o644
- notifies :restart, "service[systemd-resolved]"
- end
+service "systemd-resolved" do
+ action [:enable, :start]
+end