Added validation to nrpe.pp's parameters.

This commit is contained in:
Nick Chappell 2014-09-06 18:04:15 -07:00
parent a12585bc7c
commit 3f37faa3b6

View file

@ -14,11 +14,15 @@ class icinga2::nrpe (
$nrpe_allowed_hosts = $icinga2::params::nrpe_allowed_hosts
) inherits icinga2::params {
#Do some validation of the parameters that are passed in:
validate_string($nrpe_log_facility)
validate_array($nrpe_allowed_hosts)
#Apply our classes in the right order. Use the squiggly arrows (~>) to ensure that the
#class left is applied before the class on the right and that it also refreshes the
#class on the right.
class {'icinga2::nrpe::install':} ~>
class {'icinga2::nrpe::config':} ~>
class {'icinga2::nrpe::service':}
}
}