Puppet Class: confdroid_nagios::params

Summary

Class holds all parameters for the confdroid_nagios module and is inherited by all classes except defines.

Overview

confdroid_nagios::params.pp Module name: confdroid_nagios Author: 12ww1160 (12ww1160@confdroid.com)

Parameters:

  • ng_nagios_server (String) (defaults to: 'nagios.example.net')

    The hostname or IP address of the Nagios server. This will determine the installation selection and the of the clients to connect to the Nagios server.

  • ng_reqpackages_server (Array) (defaults to: ['nagios','nagios-devel'])

    An array of packages to be installed on the Nagios server.

  • ng_reqpackages_client (Array) (defaults to: ['net-snmp-utils','nagios-plugins','nagios-plugins-all','nagios-plugins-nrpe','nagios-common'])

    An array of packages to be installed on the Nagios clients.

  • ng_pkg_ensure (String) (defaults to: 'present')

    The ensure value for all packages. Default is ‘present’.

  • ng_user (String) (defaults to: 'nagios')

    The name of the Nagios user to be created on the Nagios server. Default is ‘nagios’.

  • ng_u_comment (String) (defaults to: 'Nagios User')

    The comment field for the Nagios user. Default is ‘Nagios User’.

  • ng_u_groups (String) (defaults to: 'nagios')

    The group(s) to which the Nagios user should be added. Default is ‘nagios’.

  • ng_u_shell (String) (defaults to: '/sbin/nologin')

    The login shell for the Nagios user. Default is ‘/sbin/nologin’.

  • ng_u_home (String) (defaults to: '/home/nagios')

    The home directory for the Nagios user. Default is ‘/home/nagios’.

  • ng_u_uid (Integer) (defaults to: 1004)

    The user ID for the Nagios user. Default is 1004.

  • ng_include_nrpe (Boolean) (defaults to: true)

    Whether to include the NRPE client on the Nagios clients. Default is true.



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'manifests/params.pp', line 26

class confdroid_nagios::params (

# main
  String $ng_nagios_server     = 'nagios.example.net',
  Array $ng_reqpackages_server = ['nagios','nagios-devel'],
  Array $ng_reqpackages_client = ['net-snmp-utils','nagios-plugins','nagios-plugins-all','nagios-plugins-nrpe','nagios-common'],
  String $ng_pkg_ensure        = 'present',
  Boolean $ng_include_nrpe     = true,

# user
  String $ng_user              = 'nagios',
  String $ng_u_comment         = 'Nagios User',
  String $ng_u_groups          = 'nagios',
  String $ng_u_shell           = '/sbin/nologin',
  String $ng_u_home            = '/home/nagios',
  Integer $ng_u_uid            = 1004,

) {
# Default facts
  $fqdn                     = $facts['networking']['fqdn']
  $domain                   = $facts['networking']['domain']
  $os_name                  = $facts['os']['name']
  $os_release               = $facts['os']['release']['major']

# service
  $ng_nagios_service          = 'nagios'

# directories
  $ng_main_dir                = '/etc/nagios'
  $ng_conf_d_dir              = "${ng_main_dir}/conf.d"
  $ng_objects_dir             = "${ng_main_dir}/objects"
  $ng_private_dir             = "${ng_main_dir}/private"
  $ng_usr_incl                = '/usr/include/nagios'
  $ng_lib_dir                 = '/usr/lib64/nagios'
  $ng_log_dir                 = '/var/log/nagios'
  $ng_log_archives            = "${ng_log_dir}/archives"
  $ng_spool_dir               = '/var/spool/nagios'
  $ng_usr_share               = '/usr/share/nagios'
  $ng_share_html              = "${ng_usr_share}/html"
  $ng_run_dir                 = '/var/run/nagios'
  $ng_cmd_dir                 = "${ng_spool_dir}/cmd"
  $ng_checkresults_dir        = "${ng_spool_dir}/checkresults"

# includes must be last
  include confdroid_nagios::main::config
}