cookbook 'geolite2', '= 2.0.0'
geolite2 (4) Versions 2.0.0 Follow0
Download GeoLite2 databases
cookbook 'geolite2', '= 2.0.0', :supermarket
knife supermarket install geolite2
knife supermarket download geolite2
geolite2 cookbook
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
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog
and this project adheres to Semantic Versioning.
[2.0.0] - 2020-02-16
Make use of MaxMind account license key so as to download databases.
Added
- Added
license_key
attribute togeolite2_city_database
andgeolite2_country_database
resources.
[1.0.0] - 2019-04-28
First appearance in public.
Added
- Upload the cookbook to Chef Supermarket.
Collaborator Number Metric
2.0.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
2.0.0 failed this metric
FC066: Ensure chef_version is set in metadata: geolite2/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
2.0.0 passed this metric
Testing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.0.0 failed this metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
2.0.0 failed this metric
FC066: Ensure chef_version is set in metadata: geolite2/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
2.0.0 passed this metric
Testing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.0.0 failed this metric
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
2.0.0 passed this metric
Testing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
2.0.0 failed this metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number