From 80322f255030846d27a2997807046fdbe1ffbb2a Mon Sep 17 00:00:00 2001 From: varac Date: Mon, 15 Jul 2013 09:27:27 +0200 Subject: ssh support for agent --- manifests/agent.pp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'manifests/agent.pp') diff --git a/manifests/agent.pp b/manifests/agent.pp index e3442f0..5a7eaf8 100644 --- a/manifests/agent.pp +++ b/manifests/agent.pp @@ -10,8 +10,16 @@ class check_mk::agent ( $workspace = '/root/check_mk', $agent_package_name = 'check_mk-agent', $agent_logwatch_package_name = 'check_mk-agent-logwatch', - + $use_ssh = false, + $use_ssh_tag = 'ssh' ) { + + if ( $use_ssh == true ) { + $tags = "$host_tags|$use_ssh_tag" + } else { + $tags = $host_tags + } + class { 'check_mk::agent::install': version => $version, filestore => $filestore, @@ -25,10 +33,11 @@ class check_mk::agent ( server_dir => $server_dir, use_cache => $use_cache, user => $user, + use_ssh => $use_ssh, require => Class['check_mk::agent::install'], } include check_mk::agent::service @@check_mk::host { $::fqdn: - host_tags => $host_tags, + host_tags => $tags, } } -- cgit v1.2.3