]> git.openstreetmap.org Git - chef.git/commitdiff
Add a link to GeoIP database in /etc/gdnsd/geoip
authorTom Hughes <tom@compton.nu>
Mon, 11 Nov 2024 08:00:39 +0000 (08:00 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 11 Nov 2024 08:03:08 +0000 (08:03 +0000)
cookbooks/geodns/recipes/default.rb

index a50b711411b461253de52123f894e3f3784bf230..90ae979becdf1344caaf7e2845c2f62ab3a0e1d0 100644 (file)
@@ -27,6 +27,10 @@ package %w[
   gdnsd
 ]
 
   gdnsd
 ]
 
+link "/etc/gdnsd/geoip/GeoLite2-Country.mmdb" do
+  to "#{node[:geoipupdate][:directory]}/GeoLite2-Country.mmdb"
+end
+
 directory "/etc/gdnsd/config.d" do
   owner "nobody"
   group "nogroup"
 directory "/etc/gdnsd/config.d" do
   owner "nobody"
   group "nogroup"