X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/180337b36894830831cd75d053af4bd3c9bc9288..ad6b3f72b1b2bb9c7184f3badc87193b4e57aba0:/cookbooks/geoipupdate/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/geoipupdate/recipes/default.rb b/cookbooks/geoipupdate/recipes/default.rb index 27d6478ae..fedae0011 100644 --- a/cookbooks/geoipupdate/recipes/default.rb +++ b/cookbooks/geoipupdate/recipes/default.rb @@ -21,19 +21,6 @@ include_recipe "apt" license_keys = data_bag_item("geoipupdate", "license-keys") -package "geoip-database" do - action :purge -end - -package "geoip-database-contrib" do - action :purge -end - -package "geoipupdate" do - action :purge - only_if { ::File.exist?("/etc/cron.d/geoipupdate") } -end - package "geoipupdate" template "/etc/GeoIP.conf" do @@ -51,10 +38,6 @@ execute "geoipupdate" do not_if { ENV.key?("TEST_KITCHEN") || node[:geoipupdate][:editions].all? { |edition| ::File.exist?("/usr/share/GeoIP/#{edition}.mmdb") } } end -systemd_service "geoipdate" do - action :delete -end - systemd_service "geoipupdate" do description "Update GeoIP databases" user "root" @@ -76,8 +59,3 @@ end service "geoipupdate.timer" do action [:enable, :start] end - -directory "/var/lib/GeoIP" do - action :delete - recursive true -end