Puppet Class: nagios_common::timeperiods

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

Overview

Class: nagios_common::timeperiods

Custom notification timeperiods, used by notification commands

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'

Parameters:

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


20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'modules/nagios_common/manifests/timeperiods.pp', line 20

class nagios_common::timeperiods(
    $ensure = present,
    $config_dir = '/etc/icinga',
    $owner = 'icinga',
    $group = 'icinga',
) {
    file { "${config_dir}/timeperiods.cfg":
        ensure => $ensure,
        source => 'puppet:///modules/nagios_common/timeperiods.cfg',
        owner  => $owner,
        group  => $group,
    }
}