aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xymon/manifests/server.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/xymon/manifests/server.pp')
-rw-r--r--modules/xymon/manifests/server.pp28
1 files changed, 5 insertions, 23 deletions
diff --git a/modules/xymon/manifests/server.pp b/modules/xymon/manifests/server.pp
index dff50430..b6c269cf 100644
--- a/modules/xymon/manifests/server.pp
+++ b/modules/xymon/manifests/server.pp
@@ -1,36 +1,18 @@
class xymon::server {
package { ['xymon','fping']: }
- if versioncmp($::lsbdistrelease, '5') < 0 {
- service { 'xymon':
- hasstatus => false,
- status => "su xymon -c '${::lib_dir}/xymon/server/hobbit.sh status'",
- require => Package['xymon'],
- }
- }
-
File {
group => 'xymon',
require => Package['xymon'],
notify => Exec['service xymon reload'],
}
- if versioncmp($::lsbdistrelease, '5') < 0 {
- file {
- # Define hosts and web view layout, and lists tests to be run against
- # host by e.g. network tests from xymon server
- '/etc/xymon/bb-hosts':
- content => template('xymon/bb-hosts');
- }
- } else {
- file {
- # Define hosts and web view layout, and lists tests to be run against
- # host by e.g. network tests from xymon server
- '/etc/xymon/hosts.cfg':
- content => template('xymon/bb-hosts');
- }
- }
file {
+ # Define hosts and web view layout, and lists tests to be run against
+ # host by e.g. network tests from xymon server
+ '/etc/xymon/hosts.cfg':
+ content => template('xymon/bb-hosts');
+
# Environment variables user by hobbitd,hobbitlaunch,hobbitd_rrd,CGIs
# and bbgen (which generates the static html pages)
# hobbitlaunch (started by init script) may need to be restarted for