Skip to content

thias/puppet-geoip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet-geoip

Overview

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.

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

About

Puppet GeoIP module

Resources

License

Stars

Watchers

Forks

Packages

No packages published