From 6292350bd033b49022db208c0912ce6a0b97b1f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C3=A9cureuil?= Date: Tue, 11 Apr 2017 00:13:14 +0200 Subject: Use better and fix for xymon on mga > 5, thanks blino --- modules/xymon/manifests/client.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/xymon/manifests/client.pp b/modules/xymon/manifests/client.pp index 890430c6..50b1ec53 100644 --- a/modules/xymon/manifests/client.pp +++ b/modules/xymon/manifests/client.pp @@ -8,8 +8,10 @@ class xymon::client { } service { $service: - hasstatus => false, - status => "${::lib_dir}/xymon/client/runclient.sh status", + if versioncmp($::lsbdistrelease, '5') < 0 { + hasstatus => false, + status => "${::lib_dir}/xymon/client/runclient.sh status", + } require => Package['xymon-client'], } -- cgit v1.2.1