xymon::server::install : Install Xymon server package.
This commit is contained in:
parent
9896558d73
commit
749c64a936
@ -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: {
|
||||
|
@ -22,11 +22,13 @@
|
||||
# WTFPL <http://wtfpl.org/>
|
||||
#
|
||||
class xymon::server (
|
||||
$dep_pkg_name = $xymon::params::srv_dep_pkg_name,
|
||||
$download_dir = $xymon::params::srv_download_dir,
|
||||
$download_url = $xymon::params::srv_download_url,
|
||||
$new_version = $xymon::params::srv_new_version,
|
||||
$package_name = $xymon::params::srv_package_name,
|
||||
$dep_pkg_name = $xymon::params::srv_dep_pkg_name,
|
||||
$download_dir = $xymon::params::srv_download_dir,
|
||||
$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']) {
|
||||
|
@ -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'] ],
|
||||
#}
|
||||
->
|
||||
# Install Xymon server package
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user