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"
owner "root"
group "root"
- mode 0o644
+ mode "644"
variables :license_keys => license_keys
end
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