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"
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