summaryrefslogtreecommitdiff
path: root/puppet/modules/site_nagios/manifests/add_service.pp
blob: 8d2a310b335f2404f205fd9354d0953ea4a41f64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
define site_nagios::add_service (
  $hostname, $ip_address, $openvpn_gw = '', $service) {

  case $service {
    'webapp': {
      nagios_service {
        "${name}_cert":
          use                 => 'generic-service',
          check_command       => 'check_https_cert',
          service_description => 'Website Certificate',
          host_name           => $hostname;
        "${name}_website":
          use                 => 'generic-service',
          check_command       => 'check_https',
          service_description => 'Website',
          host_name           => $hostname
      }
    }
    default:  {}
  }
}