#
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"
notifies :restart, "service[gdnsd]"
end
-if node[:lsb][:release].to_f >= 18.04
- service "systemd-resolved" do
- action [:disable, :stop]
- end
+service "systemd-resolved" do
+ action [:disable, :stop]
end
service "gdnsd" do