xymon::client::install : Install the recommends and suggests packages

for hobbit-plugins package (from Debian) + correct warnings from puppet
lint.
This commit is contained in:
gardouille 2015-02-16 18:24:46 +01:00
parent 2cd9b88c6c
commit 647b4a816d
4 changed files with 10 additions and 2 deletions

View File

@ -38,6 +38,7 @@ class xymon::client (
$main_cfg_path = $xymon::params::cli_main_cfg_path,
$main_cfg_tpl = $xymon::params::cli_main_cfg_tpl,
$list_server = $xymon::params::list_server,
$plugin_sug_pkg_name = $xymon::params::plugin_sug_pkg_name,
$plugin_download_url = $xymon::params::plugin_download_url,
$plugin_pkg_name = $xymon::params::plugin_pkg_name,
$plugin_pkg_source = $xymon::params::plugin_pkg_source,

View File

@ -19,13 +19,13 @@ class xymon::client::config {
->
file { $xymon::client::service_path:
ensure => present,
mode => 0754,
mode => '0754',
content => template($xymon::client::service_tpl),
notify => Service[$xymon::client::service_name],
}
# Client Configuration
file { "${xymon::client::main_cfg_path}":
file { $xymon::client::main_cfg_path:
ensure => present,
content => template($xymon::client::main_cfg_tpl),
notify => Service[$xymon::client::service_name],

View File

@ -46,6 +46,12 @@ class xymon::client::install {
ensure => $xymon::client::plugin_pkg_ensure,
provider => $xymon::client::plugin_pkg_provider,
source => "${xymon::client::download_dir}/${xymon::client::plugin_pkg_name}",
require => Package['xymon-client'],
}
->
# Suggests packages
package { $xymon::client::plugin_sug_pkg_name:
ensure => $xymon::client::plugin_pkg_ensure,
}
} # Private class: xymon::client::install

View File

@ -32,6 +32,7 @@ class xymon::params {
$plugin_pkg_source = 'puppet:///modules/xymon/client/hobbit-plugins_20141201_all_gardouille.deb'
$plugin_pkg_ensure = 'present'
$plugin_pkg_provider = 'dpkg'
$plugin_sug_pkg_name = [ 'dctrl-tools', 'libsort-naturally-perl', 'libyaml-tiny-perl', 'lsb-release', 'lsof', 'debsums', 'fping', 'liblist-moreutils-perl', 'libsysadm-install-perl', 'libtimedate-perl', 'dphys-config' ]
}