projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa7eaf6
)
Disable systemd-resolved on geodns machines
author
Tom Hughes
<tom@compton.nu>
Mon, 25 Jun 2018 19:40:12 +0000
(20:40 +0100)
committer
Tom Hughes
<tom@compton.nu>
Mon, 25 Jun 2018 19:40:12 +0000
(20:40 +0100)
cookbooks/geodns/recipes/default.rb
patch
|
blob
|
history
diff --git
a/cookbooks/geodns/recipes/default.rb
b/cookbooks/geodns/recipes/default.rb
index 925b47c4297fd95010165e2e18b1517a55d5b415..250f148c453120cc2747d8275b846aa48b36ae31 100644
(file)
--- 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