X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b8a8aabcb8c98a61b0c712268eb0fc1ef1d56af7..0044078ddc06dac65be8e6405e3bb0f54d63d5b7:/cookbooks/geoipupdate/recipes/default.rb diff --git a/cookbooks/geoipupdate/recipes/default.rb b/cookbooks/geoipupdate/recipes/default.rb index 0c4a84c9c..58bf40d8b 100644 --- a/cookbooks/geoipupdate/recipes/default.rb +++ b/cookbooks/geoipupdate/recipes/default.rb @@ -21,9 +21,7 @@ include_recipe "apt" license_keys = data_bag_item("geoipupdate", "license-keys") -package "geoipupdate" do - action [:install, :upgrade] -end +package "geoipupdate" template "/etc/GeoIP.conf" do source "GeoIP.conf.erb" @@ -37,7 +35,7 @@ execute "geoipdate" do command "geoipupdate" user "root" group "root" - not_if { node[:geoipupdate][:editions].all? { |edition| ::File.exist?("/usr/share/GeoIP/#{edition}.mmdb") } } + not_if { ENV.key?("TEST_KITCHEN") || node[:geoipupdate][:editions].all? { |edition| ::File.exist?("/usr/share/GeoIP/#{edition}.mmdb") } } end directory "/var/lib/GeoIP" do