From 5e1118756dc5fcec937b0bcc91d9fd16c5b1585f Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 24 Feb 2011 23:47:43 +0000 Subject: add missing template file, and do not hardcode the hobbit server ( to test it on vm ) --- modules/xymon/manifests/init.pp | 2 ++ modules/xymon/templates/xymon-client | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 modules/xymon/templates/xymon-client (limited to 'modules') diff --git a/modules/xymon/manifests/init.pp b/modules/xymon/manifests/init.pp index b2a626d0..4da17da7 100644 --- a/modules/xymon/manifests/init.pp +++ b/modules/xymon/manifests/init.pp @@ -8,6 +8,8 @@ class xymon { ensure => running, path => '/etc/init.d/xymon-client', } + # TODO replace with a exported ressource + $server = extlookup('hobbit_server') file { '/etc/sysconfig/xymon-client': content => template("xymon/xymon-client"), } diff --git a/modules/xymon/templates/xymon-client b/modules/xymon/templates/xymon-client new file mode 100644 index 00000000..1635457c --- /dev/null +++ b/modules/xymon/templates/xymon-client @@ -0,0 +1,22 @@ +# Configure the Hobbit client settings. + +# You MUST set the list of Hobbit servers that this +# client reports to. +# It is good to use IP-adresses here instead of DNS +# names - DNS might not work if there's a problem. +# +# E.g. (a single Hobbit server) +# HOBBITSERVERS="192.168.1.1" +# or (multiple servers) +# HOBBITSERVERS="10.0.0.1 192.168.1.1" + +HOBBITSERVERS="<%= server %>" + +# The defaults usually suffice for the rest of this file, +# but you can tweak the hostname that the client reports +# data with, and the OS name used (typically needed only on +# RHEL or RHAS servers). + +# CLIENTHOSTNAME="" +# CLIENTOS="rhel3" + -- cgit v1.2.1