Puppet module to install geoip data files from MaxMind.
MaxMind's downloadable data does not appear to be versioned and since puppet cannot determine whether a file has been changed via http this module requires a copy of the desired data set to be provided and versioned on a local web server. This module looks for files in the form of - in the $source location.
Each data file can have its source and version definied individually or they can be defined globally by setting version and source as class parameters.
Global definitions:
class { geoip: source => 'http://myserver.example.com/geoip/, version => '20130402' } geoip::file { 'GeoCityLite.dat': } geoip::file { 'GeoIp.dat': }
Per file definition:
geoip::file { 'GeoCityLite.dat': source => 'http://myserver.example.com/geoip/city/', version => '20120101' } geoip::file { 'GeoIp.dat': source => 'http://bobshome.example.com/~bob/, version => '1.2-pre3' }
Released under the Apache 2.0 licence
- Fork it
- Create a topic branch
- Improve/fix (with spec tests)
- Push new topic branch
- Submit a PR