diff options
author | Olivier Blin <dev@blino.org> | 2015-11-22 01:55:04 +0100 |
---|---|---|
committer | Olivier Blin <dev@blino.org> | 2015-11-30 01:32:43 +0100 |
commit | 4ea01996296a668431f932c290ed9bee79776c05 (patch) | |
tree | 8debac623e0663440465a11858557091d78a22a2 | |
parent | ef7743c51e52ae5e142d592c6dae5df97f79194e (diff) | |
download | puppet-4ea01996296a668431f932c290ed9bee79776c05.tar puppet-4ea01996296a668431f932c290ed9bee79776c05.tar.gz puppet-4ea01996296a668431f932c290ed9bee79776c05.tar.bz2 puppet-4ea01996296a668431f932c290ed9bee79776c05.tar.xz puppet-4ea01996296a668431f932c290ed9bee79776c05.zip |
xymon: use xymon service name instead of xymon-client on Mageia >= 5
-rw-r--r-- | modules/xymon/manifests/client.pp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/xymon/manifests/client.pp b/modules/xymon/manifests/client.pp index 551d5775..890430c6 100644 --- a/modules/xymon/manifests/client.pp +++ b/modules/xymon/manifests/client.pp @@ -1,7 +1,13 @@ class xymon::client { package { 'xymon-client': } - service { 'xymon-client': + if versioncmp($::lsbdistrelease, '5') < 0 { + $service = 'xymon-client' + } else { + $service = 'xymon' + } + + service { $service: hasstatus => false, status => "${::lib_dir}/xymon/client/runclient.sh status", require => Package['xymon-client'], @@ -11,7 +17,7 @@ class xymon::client { $server = extlookup('hobbit_server','x') file { '/etc/sysconfig/xymon-client': content => template('xymon/xymon-client'), - notify => Service['xymon-client'], + notify => Service[$service], require => Package['xymon-client'], } } |