Puppet Class: pybal

Defined in:
modules/pybal/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
33
34
35
36
# File 'modules/pybal/manifests/init.pp', line 1

class pybal {
    package { [ 'ipvsadm', 'pybal' ]:
        ensure => installed,
    }

    file { '/etc/default/pybal':
        mode    => '0555',
        owner   => 'root',
        group   => 'root',
        source  => 'puppet:///modules/pybal/default',
        require => Package['pybal'],
    }

    service { 'pybal':
        ensure  => running,
        enable  => true,
        require => File['/etc/default/pybal'],
    }

    rsyslog::conf { 'pybal':
        source   => 'puppet:///modules/pybal/pybal.rsyslog.conf',
        priority => 75,
        before   => Service['pybal'],
    }

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

    nrpe::monitor_service { 'pybal':
        description  => 'pybal',
        nrpe_command => '/usr/lib/nagios/plugins/check_procs -c 1:1 -u root -a /usr/sbin/pybal',
        notes_url    => 'https://wikitech.wikimedia.org/wiki/PyBal',
    }
}