Puppet Class: statistics::wmde

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

Overview

Licence AGPL version 3 or later

Class for running WMDE releated statistics & analytics scripts.

Parameters:

  • statsd_host (Any)
  • graphite_host (Any)
  • wmde_secrets (Any)
  • user (Any) (defaults to: 'analytics-wmde')

Author:

  • Addshore



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
31
32
33
34
35
36
37
# File 'modules/statistics/manifests/wmde.pp', line 6

class statistics::wmde(
    $statsd_host,
    $graphite_host,
    $wmde_secrets,
    $user  = 'analytics-wmde'
) {

    # The statistics module needs to be loaded before this one
    Class['::statistics'] -> Class['::statistics::wmde']

    $statistics_working_path = $::statistics::working_path

    $homedir = "${statistics_working_path}/analytics-wmde"

    # Scripts & systemd timers that generate data for graphite
    class { '::statistics::wmde::graphite':
        dir           => "${homedir}/graphite",
        user          => $user,
        statsd_host   => $statsd_host,
        graphite_host => $graphite_host,
        wmde_secrets  => $wmde_secrets,
        require       => User[$user],
    }

    # Wikidata concepts processing
    class { '::statistics::wmde::wdcm':
        dir     => "${homedir}/wdcm",
        user    => $user,
        require => User[$user],
    }

}