Puppet Class: nagios_common::user_macros

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

Overview

Class: nagios_common::user_macros

Defines $USERn$ macros for nagios compatible implementations

Parameters

ensure

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

config_dir

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

owner

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

group

The group which should own the config file. 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
33
# File 'modules/nagios_common/manifests/user_macros.pp', line 20

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