aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xymon
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-24 23:47:43 +0000
committerMichael Scherer <misc@mageia.org>2011-02-24 23:47:43 +0000
commit5e1118756dc5fcec937b0bcc91d9fd16c5b1585f (patch)
treebc81cd1495c6d949ae03a388c58687f0e2586042 /modules/xymon
parentecce0d65642bf86d6ec15f0a0d291a97cba4ba92 (diff)
downloadpuppet-5e1118756dc5fcec937b0bcc91d9fd16c5b1585f.tar
puppet-5e1118756dc5fcec937b0bcc91d9fd16c5b1585f.tar.gz
puppet-5e1118756dc5fcec937b0bcc91d9fd16c5b1585f.tar.bz2
puppet-5e1118756dc5fcec937b0bcc91d9fd16c5b1585f.tar.xz
puppet-5e1118756dc5fcec937b0bcc91d9fd16c5b1585f.zip
add missing template file, and do not hardcode the hobbit server ( to test it on vm )
Diffstat (limited to 'modules/xymon')
-rw-r--r--modules/xymon/manifests/init.pp2
-rw-r--r--modules/xymon/templates/xymon-client22
2 files changed, 24 insertions, 0 deletions
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"
+