xymon::server::install : Install Xymon server package.

This commit is contained in:
gardouille 2015-02-20 11:42:31 +01:00
parent 9896558d73
commit 749c64a936
3 changed files with 17 additions and 11 deletions

View File

@ -44,6 +44,8 @@ class xymon::params {
$srv_download_url = undef
$srv_new_version = '4.3.17'
$srv_package_name = undef
$srv_pkg_ensure = 'present'
$srv_pkg_provider = 'dpkg'
}
default: {

View File

@ -27,6 +27,8 @@ class xymon::server (
$download_url = $xymon::params::srv_download_url,
$new_version = $xymon::params::srv_new_version,
$package_name = $xymon::params::srv_package_name,
$pkg_ensure = $xymon::params::srv_pkg_ensure,
$pkg_provider = $xymon::params::srv_pkg_provider,
) inherits xymon::params {
if ! defined(Class['::xymon::client']) {

View File

@ -20,12 +20,14 @@ class xymon::server::install {
cwd => $xymon::server::download_dir,
creates => "${xymon::server::download_dir}/${xymon::server::preconfig::pkg_name}",
}
#->
->
# Install Xymon server package
#package { $xymon::server::package_name:
#ensure => present,
#require => [ Package[$xymon::server::dep_pkg_name], Class['::xymon::server'] ],
#}
package { 'xymon-server':
ensure => $xymon::server::pkg_ensure,
provider => $xymon::server::pkg_provider,
source => "${xymon::server::download_dir}/${xymon::server::preconfig::pkg_name}",
}
} # Private class: xymon::server::install