aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xymon
diff options
context:
space:
mode:
authorNicolas Lécureuil <neoclust@mageia.org>2017-04-11 00:03:25 +0200
committerNicolas Lécureuil <neoclust@mageia.org>2017-04-11 00:03:25 +0200
commit4abac349e9e317f8c1c4b4fefeab6113220acfd9 (patch)
tree7db097490ab9a8dc069182725896bbaea70733df /modules/xymon
parent13d9ee92709d0e875be46d92b501f26fb3d14253 (diff)
downloadpuppet-4abac349e9e317f8c1c4b4fefeab6113220acfd9.tar
puppet-4abac349e9e317f8c1c4b4fefeab6113220acfd9.tar.gz
puppet-4abac349e9e317f8c1c4b4fefeab6113220acfd9.tar.bz2
puppet-4abac349e9e317f8c1c4b4fefeab6113220acfd9.tar.xz
puppet-4abac349e9e317f8c1c4b4fefeab6113220acfd9.zip
runclient.sh do not exist on mga >= 5
Diffstat (limited to 'modules/xymon')
-rw-r--r--modules/xymon/manifests/client.pp10
1 files changed, 6 insertions, 4 deletions
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