From 0db7f5c149d0529f9566dcc96acfb064178d281a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 25 Jan 2013 18:37:45 -0200 Subject: Fixing plugin path for debian --- manifests/plugin.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/manifests/plugin.pp b/manifests/plugin.pp index d32606b..6d849fd 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -4,7 +4,10 @@ define nagios::plugin( ){ file{$name: path => $::hardwaremodel ? { - 'x86_64' => "/usr/lib64/nagios/plugins/${name}", + 'x86_64' => $::operatingsystem ? { + 'debian' => "/usr/lib/nagios/plugins/${name}", + default => "/usr/lib64/nagios/plugins/${name}", + }, default => "/usr/lib/nagios/plugins/${name}", }, ensure => $ensure, -- cgit v1.2.3