aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/manifests/monitoring/external_service.pp
blob: 027dad892ecefdfb34af6300a6bdd26b084c304f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
define profile::monitoring::external_service (
  Optional[String] $type   = undef,
  Optional[Hash]   $master = {},
) {
  include profile::monitoring::params
  $service_description = $title

  nagios_service { $service_description:
    service_description => $service_description,
    host_name           => $::profile::monitoring::params::service_local["host_name"],
    use                 => $::profile::monitoring::params::service_types[$type],
    target              => $::profile::monitoring::params::services_for_master,
    *                   => $master,
  }

}