xymon::client::config : Add a list of accepted packages not installed

from apt repositories (apt_no_repo_accept).
This commit is contained in:
gardouille 2015-02-16 18:38:55 +01:00
parent 647b4a816d
commit d0606df123
4 changed files with 19 additions and 6 deletions

View File

@ -44,6 +44,8 @@ class xymon::client (
$plugin_pkg_source = $xymon::params::plugin_pkg_source,
$plugin_pkg_ensure = $xymon::params::plugin_pkg_ensure,
$plugin_pkg_provider = $xymon::params::plugin_pkg_provider,
$apt_accept_path = $xymon::params::cli_apt_accept_path,
$apt_accept_tpl = $xymon::params::cli_apt_accept_tpl,
) inherits xymon::params {
validate_array($list_server)

View File

@ -5,20 +5,20 @@
class xymon::client::config {
File {
owner => root,
group => root,
mode => 0644,
ensure => present,
owner => root,
group => root,
mode => 0644,
}
## Xymon client
# Service initscript
file { $xymon::client::service_default_path:
ensure => present,
content => template($xymon::client::service_default_tpl),
notify => Service[$xymon::client::service_name],
}
->
file { $xymon::client::service_path:
ensure => present,
mode => '0754',
content => template($xymon::client::service_tpl),
notify => Service[$xymon::client::service_name],
@ -26,10 +26,15 @@ class xymon::client::config {
# Client Configuration
file { $xymon::client::main_cfg_path:
ensure => present,
content => template($xymon::client::main_cfg_tpl),
notify => Service[$xymon::client::service_name],
}
## Plugin
# Plugin APT Configuration
file { $xymon::client::apt_accept_path:
content => template($xymon::client::apt_accept_tpl),
notify => Service[$xymon::client::service_name],
}
} # Private class: xymon::client::config

View File

@ -33,6 +33,9 @@ class xymon::params {
$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' ]
# Configuration
$cli_apt_accept_path = '/etc/xymon/apt_no_repo_accept'
$cli_apt_accept_tpl = 'xymon/client/apt_no_repo_accept.erb'
}

View File

@ -0,0 +1,3 @@
xymon-client
hobbit-plugins
xymon