Puppet Class: geoip::config::ge311
- Defined in:
- manifests/config/ge311.pp
Overview
This class is creating a GeoIP.conf configuration file for geoipupdate versions >= 3.1.1.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'manifests/config/ge311.pp', line 13
class geoip::config::ge311 (
String $accountid,
String $licensekey,
Array[String] $editionids = ['GeoLite2-ASN','GeoLite2-City','GeoLite2-Country'],
Optional[Stdlib::Absolutepath] $database_directory = undef,
Optional[String] $host = undef,
Optional[String] $proxy = undef,
Optional[String] $proxy_user_password = undef,
Optional[Boolean] $preserve_file_times = undef,
Optional[String] $lock_file = undef,
) {
$cfg_ensure = $geoip::ensure ? {
/present/ => 'file',
default => $geoip::ensure,
}
file { $geoip::config_path:
ensure => $cfg_ensure,
content => epp('geoip/GeoIP.conf.ge311.epp'),
mode => '0640',
group => 0,
owner => 0,
}
}
|