xymon::server::install : Install Xymon dependencies.
This commit is contained in:
parent
4efcfeddf3
commit
e3b4ede749
|
@ -37,6 +37,10 @@ class xymon::params {
|
||||||
$cli_apt_accept_path = '/etc/xymon/apt_no_repo_accept'
|
$cli_apt_accept_path = '/etc/xymon/apt_no_repo_accept'
|
||||||
$cli_apt_accept_tpl = 'xymon/client/apt_no_repo_accept.erb'
|
$cli_apt_accept_tpl = 'xymon/client/apt_no_repo_accept.erb'
|
||||||
|
|
||||||
|
## Server
|
||||||
|
# Package
|
||||||
|
$srv_dep_pkg_name = [ 'debconf', 'libc-ares2', 'libc6', 'libldap-2.4-2', 'libpng12-0', 'librrd4', 'libssl1.0.0', 'perl' ]
|
||||||
|
$srv_package_name = 'xymon'
|
||||||
|
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
|
|
@ -22,16 +22,17 @@
|
||||||
# WTFPL <http://wtfpl.org/>
|
# WTFPL <http://wtfpl.org/>
|
||||||
#
|
#
|
||||||
class xymon::server (
|
class xymon::server (
|
||||||
|
$dep_pkg_name = $xymon::params::srv_dep_pkg_name,
|
||||||
|
$package_name = $xymon::params::srv_package_name,
|
||||||
) inherits xymon::params {
|
) inherits xymon::params {
|
||||||
|
|
||||||
|
|
||||||
if ! defined(Class['::xymon::client']) {
|
if ! defined(Class['::xymon::client']) {
|
||||||
class { '::xymon::client':
|
class { '::xymon::client':
|
||||||
service_enabled => false,
|
service_enabled => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#include '::xymon::server::install'
|
include '::xymon::server::install'
|
||||||
#include '::xymon::server::config'
|
#include '::xymon::server::config'
|
||||||
#include '::xymon::server::service'
|
#include '::xymon::server::service'
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
# == Class: xymon::server::install
|
||||||
|
#
|
||||||
|
# Install Xymon Server
|
||||||
|
#
|
||||||
|
class xymon::server::install {
|
||||||
|
|
||||||
|
## Packages
|
||||||
|
# Install dependencies¬
|
||||||
|
ensure_resource('package', $xymon::server::dep_pkg_name , {'ensure' => 'present'})
|
||||||
|
|
||||||
|
# Install Xymon server package
|
||||||
|
package { $xymon::server::package_name:
|
||||||
|
ensure => present,
|
||||||
|
require => [ Package[$xymon::server::dep_pkg_name], Class['::xymon::client'] ],
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
} # Private class: xymon::server::install
|
Loading…
Reference in New Issue