slash31 / geolite2-cookbook

Chef cookbook to download GeoLite2 Free databases from MaxMind

Home Page:https://supermarket.chef.io/cookbooks/geolite2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

geolite2 cookbook

Chef cookbook license
Chef cookbook to download GeoLite2 Free databases from MaxMind.

Prerequisites

MaxMind account license key is required in order to download GeoLite2 Free databases. Read more here.

Resources

geolite2_country_database

Download the latest GeoLite2 Country database

geolite2_country_database 'default' do
  license_key 'ABCD...'  # MaxMind account license key
end

geolite2_city_database

Download the latest GeoLite2 City database

geolite2_city_database 'default' do
  license_key 'ABCD...'  # MaxMind account license key
end

Helpers

# Get a full path to a GeoLite2 Country database
::ChefCookbook::GeoLite2.country_database(node, 'default')  # /etc/chef-geolite2/country_default/GeoLite2-Country.mmdb

# Get a full path to a GeoLite2 City database
::ChefCookbook::GeoLite2.city_database(node, 'default')  # /etc/chef-geolite2/city_default/GeoLite2-City.mmdb

License

MIT @ Alexander Pyatkin

About

Chef cookbook to download GeoLite2 Free databases from MaxMind

https://supermarket.chef.io/cookbooks/geolite2

License:MIT License


Languages

Language:Ruby 100.0%