From 64752269a4068c823d8ca0d19db852631e7d9dd2 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 25 Feb 2016 18:20:07 +0100 Subject: check-mk's mk_job depends on the time package --- puppet/modules/site_check_mk/manifests/agent.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'puppet/modules/site_check_mk') 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': } -> -- cgit v1.2.3 From 0206d426bd51aa4805915f6e23b53d5fdb40d738 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 25 Feb 2016 18:23:38 +0100 Subject: fix typo in last commit --- puppet/modules/site_check_mk/manifests/agent.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'puppet/modules/site_check_mk') diff --git a/puppet/modules/site_check_mk/manifests/agent.pp b/puppet/modules/site_check_mk/manifests/agent.pp index 5dc4eeff..8d8ab814 100644 --- a/puppet/modules/site_check_mk/manifests/agent.pp +++ b/puppet/modules/site_check_mk/manifests/agent.pp @@ -17,7 +17,7 @@ class site_check_mk::agent { method => 'ssh', homedir => '/etc/nagios/check_mk', register_agent => false, - requires => Package['time'] + require => Package['time'] } -> class { 'site_check_mk::agent::mrpe': } -> -- cgit v1.2.3