Puppet Class: prometheus

Defined in:
modules/prometheus/manifests/init.pp

Overview



1
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
29
30
31
32
# File 'modules/prometheus/manifests/init.pp', line 1

class prometheus {
    file { '/etc/apache2/prometheus.d':
        ensure => directory,
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
    }

    file { '/srv/prometheus':
        ensure  => directory,
        owner   => 'prometheus',
        group   => 'prometheus',
        recurse => true,
    }

    logrotate::conf { 'prometheus':
        ensure => present,
        source => 'puppet:///modules/prometheus/prometheus.logrotate.conf',
    }

    rsyslog::conf { 'prometheus':
        source   => 'puppet:///modules/prometheus/prometheus.rsyslog.conf',
        priority => 40,
    }

    # Provision LVM volumes (manually) https://phabricator.wikimedia.org/T163692
    file { '/usr/local/sbin/prometheus-provision-fs':
        ensure => present,
        mode   => '0555',
        source => 'puppet:///modules/prometheus/provision-fs.sh',
    }
}