From 4abac349e9e317f8c1c4b4fefeab6113220acfd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C3=A9cureuil?= Date: Tue, 11 Apr 2017 00:03:25 +0200 Subject: runclient.sh do not exist on mga >= 5 --- modules/xymon/manifests/client.pp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'modules/xymon') diff --git a/modules/xymon/manifests/client.pp b/modules/xymon/manifests/client.pp index 890430c6..6d0335ec 100644 --- a/modules/xymon/manifests/client.pp +++ b/modules/xymon/manifests/client.pp @@ -7,10 +7,12 @@ class xymon::client { $service = 'xymon' } - service { $service: - hasstatus => false, - status => "${::lib_dir}/xymon/client/runclient.sh status", - require => Package['xymon-client'], + if versioncmp($::lsbdistrelease, '5') < 0 { + service { $service: + hasstatus => false, + status => "${::lib_dir}/xymon/client/runclient.sh status", + require => Package['xymon-client'], + } } # TODO replace with a exported ressource -- cgit v1.2.1