Puppet Class: geoip
- Defined in:
- manifests/init.pp
Overview
The geoip module installs tools and databases GeoIP resolution from MaxMind.
You may replace userid and licensekey with your subscription and add the productids you want to sync. Leaving these options on default will allow you to sync all free available databases. With database_directory the destination directory of the databases can be set, protocol, proxy* and *_verification may only be needed in the case your host needs some specific proxy settings to get to the internet.
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'manifests/init.pp', line 40
class geoip (
Enum['present', 'absent'] $ensure = 'present',
Array[String] $packages = ['mmdb-bin', 'geoipupdate'],
String $package_ensure = 'latest',
Stdlib::Absolutepath $config_path = '/etc/GeoIP.conf',
Enum['lt311','ge311'] $config_version = 'lt311',
Hash $config = {},
Boolean $manage_service = true,
Enum['unit', 'dropin'] $systemd_config = 'unit',
String $service_user = 'root',
String $service_group = 'root',
Stdlib::Absolutepath $update_path = '/usr/bin/geoipupdate',
String $service_name = 'geoip_update',
Array[String] $update_timers = [],
Integer $update_scatter = 1800,
) {
contain geoip::install
contain geoip::config
contain geoip::service
Class['geoip::install']
-> Class['geoip::config']
~> Class['geoip::service']
}
|