Puppet Class: diamond::collector::servicestats_lib

Defined in:
modules/diamond/manifests/collector/servicestats_lib.pp

Overview

support class, to be include'd multiple times



2
3
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
# File 'modules/diamond/manifests/collector/servicestats_lib.pp', line 2

class diamond::collector::servicestats_lib {
    diamond::collector { 'ServiceStats':
        source   => 'puppet:///modules/diamond/collector/servicestats.py',
        settings => {
          initsystem => $::initsystem,
        },
    }

    file { '/usr/share/diamond/collectors/servicestats/servicestats_lib.py':
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        source  => 'puppet:///modules/diamond/collector/servicestats_lib.py',
        require => Diamond::Collector['ServiceStats'],
    }

    file { '/etc/diamond/servicestats.d':
        ensure => directory,
        owner  => 'root',
        group  => 'root',
        mode   => '0444',
    }

    package { ['python-psutil', 'python-configparser']:
        before => Diamond::Collector['ServiceStats'],
    }
}