aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xymon
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2016-01-06 23:56:11 +0100
committerOlivier Blin <dev@blino.org>2016-01-06 23:56:11 +0100
commit7b3b5e0bbd1774de97332225f1ad44a04d511dee (patch)
tree2eaf8ddef792693bffd56472d989df8b5f224a4b /modules/xymon
parent8a3380f002f4d547cef3a93f5231cb47c54caa2b (diff)
downloadpuppet-7b3b5e0bbd1774de97332225f1ad44a04d511dee.tar
puppet-7b3b5e0bbd1774de97332225f1ad44a04d511dee.tar.gz
puppet-7b3b5e0bbd1774de97332225f1ad44a04d511dee.tar.bz2
puppet-7b3b5e0bbd1774de97332225f1ad44a04d511dee.tar.xz
puppet-7b3b5e0bbd1774de97332225f1ad44a04d511dee.zip
xymon: fix client config file to use XYMONSERVERS for Mageia >= 5
Diffstat (limited to 'modules/xymon')
-rw-r--r--modules/xymon/templates/xymon-client4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/xymon/templates/xymon-client b/modules/xymon/templates/xymon-client
index 1635457c..6bbdd836 100644
--- a/modules/xymon/templates/xymon-client
+++ b/modules/xymon/templates/xymon-client
@@ -10,7 +10,11 @@
# or (multiple servers)
# HOBBITSERVERS="10.0.0.1 192.168.1.1"
+<% if scope.function_versioncmp([lsbdistrelease, '5']) >= 0 %>
+XYMONSERVERS="<%= server %>"
+<% else %>
HOBBITSERVERS="<%= server %>"
+<% end %>
# The defaults usually suffice for the rest of this file,
# but you can tweak the hostname that the client reports