]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/geodns/recipes/default.rb
Don't disable systemd-resolved on geodns machines
[chef.git] / cookbooks / geodns / recipes / default.rb
index 925b47c4297fd95010165e2e18b1517a55d5b415..0e20e2a26c140c4e1804a2567de46ea2975dbf83 100644 (file)
 #
 
 package %w[
-  geoip-database-contrib
+  geoipupdate
   gdnsd
 ]
 
+execute "geoipdate" do
+  command "geoipupdate"
+  user "root"
+  group "root"
+  not_if { ::File.exist?("/var/lib/GeoIP/GeoLite2-Country.mmdb") }
+end
+
 template "/etc/gdnsd/config" do
   source "config.erb"
   owner "root"