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:
parent
2cd9b88c6c
commit
647b4a816d
@ -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,
|
||||
|
@ -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],
|
||||
|
@ -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
|
||||
|
@ -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' ]
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user