Puppet Class: icinga::event_handlers::raid

Defined in:
modules/icinga/manifests/event_handlers/raid.pp

Overview

Class: icinga::event_handlers::raid

Sets up icinga RAID event handler

Parameters:



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
37
38
39
40
41
# File 'modules/icinga/manifests/event_handlers/raid.pp', line 4

class icinga::event_handlers::raid (
    String $icinga_user,
    String $icinga_group,
){
    include ::passwords::phabricator

    class { '::phabricator::bot':
        username => 'ops-monitoring-bot',
        token    => $passwords::phabricator::ops_monitoring_bot_token,
        owner    => $icinga_user,
        group    => $icinga_group,
    }

    package { 'python-phabricator':
        ensure => 'present',
    }

    file { '/usr/lib/nagios/plugins/eventhandlers/raid_handler':
        source  => 'puppet:///modules/icinga/raid_handler.py',
        owner   => 'root',
        group   => 'root',
        mode    => '0755',
        require => [
            File['/etc/phabricator_ops-monitoring-bot.conf'],
            Package['icinga'],
        ],
    }

    nagios_common::check_command::config { 'raid_handler':
        ensure     => present,
        content    => template('icinga/event_handlers/raid_handler.cfg.erb'),
        config_dir => '/etc/icinga',
        owner      => $icinga_user,
        group      => $icinga_group,
        require    => File['/usr/lib/nagios/plugins/eventhandlers/raid_handler'],
        notify     => Service['icinga'],
    }
}