Puppet Class: statistics::aggregator

Defined in:
modules/statistics/manifests/aggregator.pp

Overview

Class statistics::aggregator

Handles projectcounts aggregation code



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'modules/statistics/manifests/aggregator.pp', line 4

class statistics::aggregator {
    Class['::statistics'] -> Class['::statistics::aggregator']

    $working_path     = "${::statistics::working_path}/aggregator"

    $script_path      = "${working_path}/scripts"
    $user             = $::statistics::user::username
    $group            = $::statistics::user::username

    file { $working_path:
        ensure => 'directory',
        owner  => $user,
        group  => $group,
        mode   => '0755',
    }

    git::clone { 'aggregator_code':
        ensure    => 'latest',
        directory => $script_path,
        origin    => 'https://gerrit.wikimedia.org/r/p/analytics/aggregator.git',
        owner     => $user,
        group     => $group,
        mode      => '0755',
        require   => File[$working_path],
    }

}