]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/geodns/recipes/default.rb
Add support for distributing gdnsd configuration via rsync
[chef.git] / cookbooks / geodns / recipes / default.rb
index a2134457ffab3fe5ba7fe3838a982c1c31f4de7b..9f7c100c5b6b0f8eff17db8f455b6564b7442383 100644 (file)
@@ -29,6 +29,12 @@ execute "geoipdate" do
   not_if { ::File.exist?("/var/lib/GeoIP/GeoLite2-Country.mmdb") }
 end
 
+directory "/etc/gdnsd/config.d" do
+  owner "nobody"
+  group "nogroup"
+  mode 0o755
+end
+
 template "/etc/gdnsd/config" do
   source "config.erb"
   owner "root"
@@ -45,10 +51,6 @@ template "/etc/gdnsd/zones/geo.openstreetmap.org" do
   notifies :restart, "service[gdnsd]"
 end
 
-service "systemd-resolved" do
-  action [:disable, :stop]
-end
-
 service "gdnsd" do
   action [:enable, :start]
   supports :status => true, :restart => true, :reload => true