From: Tom Hughes Date: Mon, 25 Jun 2018 19:40:12 +0000 (+0100) Subject: Disable systemd-resolved on geodns machines X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/21ce79ac2849907a01c17459f18e4d5b1c870400 Disable systemd-resolved on geodns machines --- 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