Puppet Class: udp2log::rsyncd

Defined in:
modules/udp2log/manifests/rsyncd.pp

Overview

Class udp2log::rsyncd

Sets up an rsync daemon to allow statistics and analytics servers to copy logs off of a udp2log host.

Parameters:

$path        - path to udp2log logrotated archive directory
$allow_hosts - IP address of host from which to allow rsync

Parameters:

  • path (Any) (defaults to: '/var/log/udp2log/archive')
  • hosts_allow (Any) (defaults to: ['stat1007.eqiad.wmnet'])


11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'modules/udp2log/manifests/rsyncd.pp', line 11

class udp2log::rsyncd(
        $path        = '/var/log/udp2log/archive',
        $hosts_allow = ['stat1007.eqiad.wmnet']
) {

    class { 'rsync::server':
        # We don't want rsyncs to saturate udp2log host NICs.
        # Limit to 500M / sec.
        rsync_opts => ['--bwlimit 512000'],
    }

    rsync::server::module { 'udp2log':
        comment     => 'udp2log log files',
        path        => $path,
        read_only   => 'yes',
        hosts_allow => $hosts_allow,
        auto_ferm   => true,
    }
}