Restart systemd-resolved immediately if the configuration changes
authorTom Hughes <tom@compton.nu>
Tue, 11 Feb 2020 11:12:04 +0000 (11:12 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 11 Feb 2020 11:12:31 +0000 (11:12 +0000)
cookbooks/networking/recipes/default.rb

index bd8517087e49913b6bda13b1df32d2ae3e8683d6..d9e264cd9c0dd3ece32ee5f53fcc73d1f8f8b4bd 100644 (file)
@@ -212,7 +212,7 @@ template "/etc/systemd/resolved.conf.d/99-chef.conf" do
   owner "root"
   group "root"
   mode 0o644
-  notifies :restart, "service[systemd-resolved]"
+  notifies :restart, "service[systemd-resolved]", :immediately
 end
 
 if node[:networking][:tcp_fastopen_key]