diff options
author | Michael Scherer <misc@mageia.org> | 2012-02-18 14:11:23 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-02-18 14:11:23 +0000 |
commit | 1bb1a9430b2ab6bfd5665463446568d22faa6907 (patch) | |
tree | 7dc30bd164504019798d00a2c865193f8302d174 /modules/xymon | |
parent | f248ed40be7652b388487681dab1cc3d6053c615 (diff) | |
download | puppet-1bb1a9430b2ab6bfd5665463446568d22faa6907.tar puppet-1bb1a9430b2ab6bfd5665463446568d22faa6907.tar.gz puppet-1bb1a9430b2ab6bfd5665463446568d22faa6907.tar.bz2 puppet-1bb1a9430b2ab6bfd5665463446568d22faa6907.tar.xz puppet-1bb1a9430b2ab6bfd5665463446568d22faa6907.zip |
split xymon::client in a separate file, and make it puppet-lint compliant
Diffstat (limited to 'modules/xymon')
-rw-r--r-- | modules/xymon/manifests/client.pp | 17 | ||||
-rw-r--r-- | modules/xymon/manifests/init.pp | 18 |
2 files changed, 17 insertions, 18 deletions
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'], + } +} diff --git a/modules/xymon/manifests/init.pp b/modules/xymon/manifests/init.pp index 1ed336de..657fc0fb 100644 --- a/modules/xymon/manifests/init.pp +++ b/modules/xymon/manifests/init.pp @@ -1,22 +1,4 @@ class xymon { - class 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'], - } - } - class server { package { ["xymon","fping"]: } |