From 9fd72f31474e44586380d4d27bba4734826d1e8c Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Wed, 10 Dec 2014 23:24:46 +0200 Subject: [PATCH] nagios: Allow using same source file multiple times in nagios::target::nrpe::service define. --- nagios/manifests/target.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nagios/manifests/target.pp b/nagios/manifests/target.pp index f5fa5af..f01d77c 100644 --- a/nagios/manifests/target.pp +++ b/nagios/manifests/target.pp @@ -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,