From bec1c1f513bea40f88f00c54c2d8136737d9de88 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 21 Aug 2020 08:26:58 +0100 Subject: [PATCH] Remove cleanup code for old GeoIP configuration --- cookbooks/geoipupdate/recipes/default.rb | 22 ---------------------- 1 file changed, 22 deletions(-) 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 -- 2.39.5