summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-02-25 18:20:07 +0100
committervarac <varacanero@zeromail.org>2016-02-25 18:20:07 +0100
commit64752269a4068c823d8ca0d19db852631e7d9dd2 (patch)
tree40fddceb58020405742b823c63492cd23ebedd9f
parent7478e1c4018406f424a5b1140f62970fef6e61f8 (diff)
check-mk's mk_job depends on the time package
-rw-r--r--puppet/modules/site_check_mk/manifests/agent.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/puppet/modules/site_check_mk/manifests/agent.pp b/puppet/modules/site_check_mk/manifests/agent.pp
index 589041eb..5dc4eeff 100644
--- a/puppet/modules/site_check_mk/manifests/agent.pp
+++ b/puppet/modules/site_check_mk/manifests/agent.pp
@@ -1,9 +1,14 @@
+# installs check-mk agent
class site_check_mk::agent {
$ssh_hash = hiera('ssh')
$pubkey = $ssh_hash['authorized_keys']['monitor']['key']
$type = $ssh_hash['authorized_keys']['monitor']['type']
+
+ # /usr/bin/mk-job depends on /usr/bin/time
+ ensure_packages('time')
+
class { 'site_apt::preferences::check_mk': } ->
class { 'check_mk::agent':
@@ -11,7 +16,8 @@ class site_check_mk::agent {
agent_logwatch_package_name => 'check-mk-agent-logwatch',
method => 'ssh',
homedir => '/etc/nagios/check_mk',
- register_agent => false
+ register_agent => false,
+ requires => Package['time']
} ->
class { 'site_check_mk::agent::mrpe': } ->