Forge Home


29,953 latest version

1.9 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.2 (latest)
  • 0.1.1
  • 0.0.1
released Aug 26th 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'thias-geoip', '0.1.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add thias-geoip
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install thias-geoip --version 0.1.2

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Tags: rhel, geoip, centos


thias/geoip — version 0.1.2 Aug 26th 2014



Install any of the GeoIP database files.

  • geoip::conf : Class to manage GeoIP.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.


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',