diff options
| -rw-r--r-- | puppet/modules/site_check_mk/manifests/agent.pp | 8 | 
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': } -> | 
