]> git.openstreetmap.org Git - chef.git/commitdiff
Disable systemd-resolved on geodns machines
authorTom Hughes <tom@compton.nu>
Mon, 25 Jun 2018 19:40:12 +0000 (20:40 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 25 Jun 2018 19:40:12 +0000 (20:40 +0100)
cookbooks/geodns/recipes/default.rb

index 925b47c4297fd95010165e2e18b1517a55d5b415..250f148c453120cc2747d8275b846aa48b36ae31 100644 (file)
@@ -38,6 +38,12 @@ template "/etc/gdnsd/zones/geo.openstreetmap.org" do
   notifies :restart, "service[gdnsd]"
 end
 
+if node[:lsb][:release].to_f >= 18.04
+  service "systemd-resolved" do
+    action [:disable, :stop]
+  end
+end
+
 service "gdnsd" do
   action [:enable, :start]
   supports :status => true, :restart => true, :reload => true