nagios: Add support for Kerberos KDC service target.
This commit is contained in:
parent
71a89cd122
commit
37e36b3aae
4 changed files with 120 additions and 1 deletions
|
@ -303,6 +303,15 @@ class nagios::server::manual inherits nagios::common {
|
|||
require => Package["nagios"],
|
||||
before => Service["nagios"],
|
||||
}
|
||||
file { "${nagios::common::libdir}/check_kdc":
|
||||
ensure => present,
|
||||
mode => "0755",
|
||||
owner => "root",
|
||||
group => "root",
|
||||
source => "puppet:///modules/nagios/check_kdc",
|
||||
require => Package["nagios"],
|
||||
before => Service["nagios"],
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -198,6 +198,18 @@ class nagios::target::jabber inherits nagios::target {
|
|||
}
|
||||
|
||||
|
||||
# Configure kerberos kdc service target.
|
||||
#
|
||||
class nagios::target::kdc($principal, $keytab="/etc/nagios/nagios.keytab") inherits nagios::target {
|
||||
|
||||
@@nagios::service { "${::homename}_kdc":
|
||||
command => "check_kdc!-P ${principal} -k ${keytab}",
|
||||
description => "Kerberos KDC",
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
# Configure ldap service target.
|
||||
#
|
||||
class nagios::target::ldap inherits nagios::target {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue