Puppet Class: geoip::data::puppet

Defined in:
modules/geoip/manifests/data/puppet.pp

Overview

Class geoip::data::puppet

Installs GeoIP database files from puppetmaster.

Parameters

$source - A valid puppet source directory. $data_directory - Where the data files should live.

Parameters:

  • source (Any) (defaults to: 'puppet:///volatile/GeoIP')
  • data_directory (Any) (defaults to: '/usr/share/GeoIP')


8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'modules/geoip/manifests/data/puppet.pp', line 8

class geoip::data::puppet(
  # lint:ignore:puppet_url_without_modules
  $source = 'puppet:///volatile/GeoIP',
  # lint:endignore
  $data_directory = '/usr/share/GeoIP',
)
{
  # recursively copy the $data_directory from $source.
  file { $data_directory:
    ensure    => directory,
    owner     => 'root',
    group     => 'root',
    mode      => '0644',
    source    => $source,
    recurse   => true,
    backup    => false,
    show_diff => false,
  }
}