Version information
released Aug 26th 2014
Start using this module
Add this module to your Puppetfile:
mod 'thias-geoip', '0.1.2'
Learn more about managing modules with a PuppetfileDocumentation
thias/geoip — version 0.1.2 Aug 26th 2014
puppet-geoip
Overview
Install any of the GeoIP database files.
geoip::conf
: Class to manageGeoIP.conf
with your MaxMind account info.geoip::file
: Definition to install any GeoIP database file.
There is no magic here, you need to have the Geo*.dat
files available on
your puppetmaster somewhere, and reference them.
You can use geoip::conf
on your puppetmaster and create a cron job which
will update databases regularly.
Examples
Set defaults in site.pp
:
Geoip::File {
path => '/usr/local/share',
source_path => 'puppet:///modules/mymodule/GeoIP',
}
For a node where nginx will have its geoip module enabled :
geoip::file { 'GeoIP.dat':
before => Service['nginx'],
}
For a node which will be downloading updated files from MaxMind directly
using the geoipupdate
script :
class { 'geoip::conf':
userid => '12345',
licensekey => 'abcdefg12345',
productids => 'GeoIP2-Country 106',
group => 'wheel',
mode => '0640',
}
2014-08-26 - 0.1.2
- Allow to change owner/group/mode of conf file.
- Update README.
2013-05-24 - 0.1.1
- Minor cosmetic updates.
- Update README and use markdown.
- Document the geoip::conf definition.
2013-04-08 - 0.1.0
- Add geoip::conf class to configure the geoipupdate program.
- Add geoip::common for the main GeoIP package.
- Change to 2 space indent.
2012-07-19 - 0.0.1
- Initial module.
Copyright (C) 2011-2013 Matthias Saou Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.