nagios: Allow using same source file multiple times in nagios::target::nrpe::service define.

This commit is contained in:
Timo Makinen 2014-12-10 23:24:46 +02:00
parent 5ae56bdf73
commit 9fd72f3147

View file

@ -525,7 +525,7 @@ define nagios::target::nrpe::service($source=undef,
$description = $service
}
if $source {
if $source and !defined(File["${nagios::common::libdir}/${binary}"]) {
file { "${nagios::common::libdir}/${binary}":
ensure => present,
source => $source,