]> git.openstreetmap.org Git - chef.git/blob - cookbooks/geoipupdate/attributes/default.rb
Make the GeoIP database directory vary with the OS version
[chef.git] / cookbooks / geoipupdate / attributes / default.rb
1 default[:geoipupdate][:account] = "149244"
2 default[:geoipupdate][:editions] = %w[GeoLite2-ASN GeoLite2-City GeoLite2-Country]
3 default[:geoipupdate][:directory] = if node[:lsb][:release].to_f < 22.04
4                                       "/usr/share/GeoIP"
5                                     else
6                                       "/var/lib/GeoIP"
7                                     end
8
9 default[:apt][:sources] |= ["maxmind"]