From 1bb1a9430b2ab6bfd5665463446568d22faa6907 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 18 Feb 2012 14:11:23 +0000 Subject: split xymon::client in a separate file, and make it puppet-lint compliant --- modules/xymon/manifests/client.pp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 modules/xymon/manifests/client.pp (limited to 'modules/xymon/manifests/client.pp') diff --git a/modules/xymon/manifests/client.pp b/modules/xymon/manifests/client.pp new file mode 100644 index 00000000..a4cf6c21 --- /dev/null +++ b/modules/xymon/manifests/client.pp @@ -0,0 +1,17 @@ +class xymon::client { + package { 'xymon-client': } + + service { 'xymon-client': + hasstatus => false, + status => '/usr/lib64/xymon/client/runclient.sh status', + require => Package['xymon-client'], + } + + # TODO replace with a exported ressource + $server = extlookup('hobbit_server','x') + file { '/etc/sysconfig/xymon-client': + content => template('xymon/xymon-client'), + notify => Service['xymon-client'], + require => Package['xymon-client'], + } +} -- cgit v1.2.1