Puppet Class: nagios_common::notification_commands

Defined in:
modules/nagios_common/manifests/notification_commands.pp

Overview

Class: nagios_common::notificationcommands

Notification commands, to notify people by email/sms

ensure

present or absent, to make the definition present or absent. Defaults to present

config_dir

The base directory to put configuration directory in. Defaults to '/etc/icinga/'

owner

The user which should own the check config files. Defaults to 'icinga'

group

The group which should own the check config files. Defaults to 'icinga'

irc_dir_path

Directory containing files that are used by ircecho to echo notifications to IRC

Parameters:

  • ensure (Any) (defaults to: present)
  • config_dir (Any) (defaults to: '/etc/icinga')
  • owner (Any) (defaults to: 'icinga')
  • group (Any) (defaults to: 'icinga')
  • irc_dir_path (Any) (defaults to: '/var/log/icinga')


24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'modules/nagios_common/manifests/notification_commands.pp', line 24

class nagios_common::notification_commands(
    $ensure = present,
    $config_dir = '/etc/icinga',
    $owner = 'icinga',
    $group = 'icinga',
    $irc_dir_path = '/var/log/icinga',
) {
    file { "${config_dir}/notification_commands.cfg":
        ensure  => $ensure,
        content => template('nagios_common/notification_commands.cfg.erb'),
        owner   => $owner,
        group   => $group,
    }
}