Defined Type: nrpe::config

Defined in:
manifests/config.pp

Overview

Parameters:

  • log_facility (Any) (defaults to: 'daemon')
  • pid_file (Any) (defaults to: 'UNSET')
  • server_port (Any) (defaults to: '5666')
  • server_address (Any) (defaults to: 'UNSET')
  • nrpe_user (Any) (defaults to: 'UNSET')
  • nrpe_group (Any) (defaults to: 'UNSET')
  • allowed_hosts (Any) (defaults to: '127.0.0.1,')
  • dont_blame_nrpe (Any) (defaults to: '0')
  • command_prefix (Any) (defaults to: 'UNSET')
  • nrpedebug (Any) (defaults to: '0')
  • command_timeout (Any) (defaults to: '60')
  • connection_timeout (Any) (defaults to: '300')
  • allow_weak_random_seed (Any) (defaults to: 'UNSET')
  • includecfg (Any) (defaults to: 'UNSET')
  • include_dir (Any) (defaults to: 'UNSET')


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
37
38
39
40
41
42
43
44
45
46
47
# File 'manifests/config.pp', line 1

define nrpe::config(
  $log_facility='daemon',
  $pid_file='UNSET',
  $server_port='5666',
  $server_address='UNSET',
  $nrpe_user='UNSET',
  $nrpe_group='UNSET',
  $allowed_hosts='127.0.0.1,',
  $dont_blame_nrpe='0',
  $command_prefix='UNSET',
  $nrpedebug='0',
  $command_timeout='60',
  $connection_timeout='300',
  $allow_weak_random_seed='UNSET',
  $includecfg='UNSET',
  $include_dir='UNSET'
) {
  include nrpe::params

  $pid_file_real = $pid_file ? {
    'UNSET' => $nrpe::params::pid_file,
    default => $pid_file,
  }

  $nrpe_user_real = $nrpe_user ? {
    'UNSET' => $nrpe::params::nrpe_user,
    default => $nrpe_user,
  }

  $nrpe_group_real = $nrpe_group ? {
    'UNSET' => $nrpe::params::nrpe_group,
    default => $nrpe_group,
  }

  $include_dir_real = $include_dir ? {
    'UNSET' => $nrpe::params::confd,
    default => $include_dir,
  }

  file { $nrpe::params::conf:
    content => template('nrpe/nrpe.cfg.erb'),
    owner   => $nrpe::params::user,
    group   => $nrpe::params::group,
    mode    => '0644',
    notify  => Service['nrpe'];
  }
}