Puppet Class: nagios::params

Inherited by:
nagios
nagios::server
Defined in:
manifests/params.pp

Overview

Nagios::Params

Params pattern for nagios module



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
# File 'manifests/params.pp', line 4

class nagios::params {
  case $osfamily {
    'RedHat': {
      $apache_conf_dir = '/etc/httpd/conf.d'
      $service = 'nagios'
      $packages = [$service,'nagios-plugins','nagios-plugins-all']
      $apache_group = "apache"
      $nagios_group = 'nagios'
    }
    'Debian': {
      # https://tickets.puppetlabs.com/browse/MODULES-3116
      # $apache_conf_dir = '/etc/apache2/conf-available/'
      $apache_conf_dir = '/etc/apache2/conf.d'
      $service = 'nagios3'
      $packages = [$service, 'monitoring-plugins']
      $apache_group = "www-data"
      $nagios_group = 'nagios'
    }
    default: {
      notify { "module ${module_name} doesn't support ${osfamily} yet":}
    }
  }
  $nagios_conf_dir = "/etc/${service}"
  $htpasswd = "${nagios_conf_dir}/nagios.htpasswd"
  $nagios_cfg_file = "${nagios_conf_dir}/nagios.cfg"
  $port = 80
}