diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/agent.pp | 11 | ||||
-rw-r--r-- | manifests/agent/install.pp | 4 |
2 files changed, 12 insertions, 3 deletions
diff --git a/manifests/agent.pp b/manifests/agent.pp index b53882a..e3442f0 100644 --- a/manifests/agent.pp +++ b/manifests/agent.pp @@ -8,11 +8,16 @@ class check_mk::agent ( $user = 'root', $version = undef, $workspace = '/root/check_mk', + $agent_package_name = 'check_mk-agent', + $agent_logwatch_package_name = 'check_mk-agent-logwatch', + ) { class { 'check_mk::agent::install': - version => $version, - filestore => $filestore, - workspace => $workspace, + version => $version, + filestore => $filestore, + workspace => $workspace, + agent_package_name => $agent_package_name, + agent_logwatch_package_name => $agent_logwatch_package_name } class { 'check_mk::agent::config': ip_whitelist => $ip_whitelist, diff --git a/manifests/agent/install.pp b/manifests/agent/install.pp index c4dd712..1773ec4 100644 --- a/manifests/agent/install.pp +++ b/manifests/agent/install.pp @@ -2,6 +2,8 @@ class check_mk::agent::install ( $version, $filestore = '', $workspace, + $agent_package_name, + $agent_logwatch_package_name, ) { if ! defined(Package['xinetd']) { package { 'xinetd': @@ -43,10 +45,12 @@ class check_mk::agent::install ( else { package { 'check_mk-agent': ensure => present, + name => $agent_package_name, require => Package['xinetd'], } package { 'check_mk-agent-logwatch': ensure => present, + name => $agent_logwatch_package_name, require => Package['check_mk-agent'], } } |