From 21ce79ac2849907a01c17459f18e4d5b1c870400 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 25 Jun 2018 20:40:12 +0100 Subject: [PATCH] Disable systemd-resolved on geodns machines --- cookbooks/geodns/recipes/default.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cookbooks/geodns/recipes/default.rb b/cookbooks/geodns/recipes/default.rb index 925b47c42..250f148c4 100644 --- a/cookbooks/geodns/recipes/default.rb +++ b/cookbooks/geodns/recipes/default.rb @@ -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 -- 2.43.2