Puppet Class: dumps::web::rsync::nginxlogs

Defined in:
modules/dumps/manifests/web/rsync/nginxlogs.pp

Overview

Parameters:

  • dest (Any) (defaults to: undef)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'modules/dumps/manifests/web/rsync/nginxlogs.pp', line 1

class dumps::web::rsync::nginxlogs (
    $dest   = undef,
)
{
    require_package('rsync')

    $rsync_args = '-rt --perms --chmod=go+r --bwlimit=50000'
    cron { 'rsync_nginxlogs':
        ensure      => 'present',
        user        => 'root',
        minute      => 55,
        hour        => 4,
        command     => "/usr/bin/rsync ${rsync_args} /var/log/nginx/*.gz ${dest}",
        environment => 'MAILTO=ops-dumps@wikimedia.org',
    }
}