summaryrefslogtreecommitdiff
path: root/manifests/service/horde_login.pp
blob: 6cab59e9cb5b3d1c08a17cf482fee7f4f41c1495 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# a horde login check
define nagios::service::horde_login(
  $password,
  $url,
  $username = $name,
  $ensure   = 'present',
){
  nagios::service{
    "horde_${name}":
      ensure => $ensure;
  }

  if $ensure != 'absent' {
    Nagios::Service["horde_${name}"]{
      check_command => "check_horde_login!${url}!${username}!${password}",
    }
  }
}