Puppet Class: coal::common

Defined in:
modules/coal/manifests/common.pp

Overview

Class: coal::common

Coal

1) processes and stores NavTiming metrics (coal::processor)
2) Delivers metrics to performance.wikimedia.org (coal::web)

This file contains directives that are common to both parts



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
38
39
# File 'modules/coal/manifests/common.pp', line 9

class coal::common {
    # Clean up some things that used to make sense but don't any more
    user { 'coal':
        ensure => absent,
    }

    group { 'coal':
        ensure => absent,
    }

    file { '/usr/local/bin/coal':
        ensure => absent,
    }

    file { '/usr/local/bin/coal-web':
        ensure => absent,
    }

    # Make sure that scap target is there for all types.
    scap::target { 'performance/coal':
        service_name => 'coal',
        deploy_user  => 'deploy-service',
        sudo_rules   => [
            'ALL=(root) NOPASSWD: /usr/sbin/service uwsgi-coal start',
            'ALL=(root) NOPASSWD: /usr/sbin/service uwsgi-coal stop',
            'ALL=(root) NOPASSWD: /usr/sbin/service uwsgi-coal restart',
            'ALL=(root) NOPASSWD: /usr/sbin/service uwsgi-coal reload',
            'ALL=(root) NOPASSWD: /usr/sbin/service uwsgi-coal status'
        ]
    }
}