class check_mk::agent ( $filestore = undef, $host_tags = undef, $ip_whitelist = undef, $port = '6556', $server_dir = '/usr/bin', $use_cache = false, $user = 'root', $version = undef, $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, 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, port => $port, 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 => $tags, } }