diff options
author | Michael Scherer <misc@mageia.org> | 2012-02-18 17:17:11 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-02-18 17:17:11 +0000 |
commit | e1c05f96c54b04188928728c583e160134aa4080 (patch) | |
tree | 790cc9264224ec53d6415ba407b551b0b9d3da0c /modules/xymon | |
parent | fbdc32b7a21a7f330f04d62f8d3fcb3966f6daf6 (diff) | |
download | puppet-e1c05f96c54b04188928728c583e160134aa4080.tar puppet-e1c05f96c54b04188928728c583e160134aa4080.tar.gz puppet-e1c05f96c54b04188928728c583e160134aa4080.tar.bz2 puppet-e1c05f96c54b04188928728c583e160134aa4080.tar.xz puppet-e1c05f96c54b04188928728c583e160134aa4080.zip |
split xymon::server in a separate class too
Diffstat (limited to 'modules/xymon')
-rw-r--r-- | modules/xymon/manifests/init.pp | 46 | ||||
-rw-r--r-- | modules/xymon/manifests/server.pp | 46 |
2 files changed, 46 insertions, 46 deletions
diff --git a/modules/xymon/manifests/init.pp b/modules/xymon/manifests/init.pp index 657fc0fb..9b609048 100644 --- a/modules/xymon/manifests/init.pp +++ b/modules/xymon/manifests/init.pp @@ -1,48 +1,2 @@ class xymon { - class server { - package { ["xymon","fping"]: } - - service { xymon: - hasstatus => false, - status => "su xymon -c '/usr/lib64/xymon/server/hobbit.sh status'", - require => Package['xymon'], - } - - File { - group => xymon, - require => Package["xymon"], - notify => Exec["service xymon reload"], - } - - file { - # 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 - # changes here, for hobbitd_rrd (e.g. TEST2RRD), it is sufficient to - # kill hobbitd_rrd, hobbitlaunch will respawn it - '/etc/xymon/hobbitserver.cfg': content => template("xymon/hobbitserver.cfg"); - - # 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"); - - # Defines thresholds for test data reported by clients, e.g. load - # disk, procs, ports, memory, as well as those which require some - # configuration server side to the client: files, msgs, - '/etc/xymon/hobbit-clients.cfg': content => template("xymon/hobbit-clients.cfg"); - - # Configuration for the xymon clients, which log files to process etc. - '/etc/xymon/client-local.cfg': content => template("xymon/client-local.cfg"); - - # Used for alerting, changes should be taken into effect immediately - '/etc/xymon/hobbit-alerts.cfg': content => template("xymon/hobbit-alerts.cfg"); - } - - # Most changes should take effect immediately, but sometimes threshold - # changes take effect sooner if hobbit is HUPd - exec { "service xymon reload": - refreshonly => true, - require => Package["xymon"], - } - } } diff --git a/modules/xymon/manifests/server.pp b/modules/xymon/manifests/server.pp new file mode 100644 index 00000000..00a2bf23 --- /dev/null +++ b/modules/xymon/manifests/server.pp @@ -0,0 +1,46 @@ +class xymon::server { + package { ['xymon','fping']: } + + 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'], + } + + file { + # 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 + # changes here, for hobbitd_rrd (e.g. TEST2RRD), it is sufficient to + # kill hobbitd_rrd, hobbitlaunch will respawn it + '/etc/xymon/hobbitserver.cfg': content => template('xymon/hobbitserver.cfg'); + + # 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'); + + # Defines thresholds for test data reported by clients, e.g. load + # disk, procs, ports, memory, as well as those which require some + # configuration server side to the client: files, msgs, + '/etc/xymon/hobbit-clients.cfg': content => template('xymon/hobbit-clients.cfg'); + + # Configuration for the xymon clients, which log files to process etc. + '/etc/xymon/client-local.cfg': content => template('xymon/client-local.cfg'); + + # Used for alerting, changes should be taken into effect immediately + '/etc/xymon/hobbit-alerts.cfg': content => template('xymon/hobbit-alerts.cfg'); + } + + # Most changes should take effect immediately, but sometimes threshold + # changes take effect sooner if hobbit is HUPd + exec { 'service xymon reload': + refreshonly => true, + require => Package['xymon'], + } +} |