From cd99b5b90f8096e0c444aa923692342881346998 Mon Sep 17 00:00:00 2001 From: varac Date: Wed, 5 Feb 2014 17:22:06 +0100 Subject: fixed leftover in agent.pp, linted --- manifests/agent.pp | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'manifests') diff --git a/manifests/agent.pp b/manifests/agent.pp index 6383ab9..f25c714 100644 --- a/manifests/agent.pp +++ b/manifests/agent.pp @@ -23,14 +23,13 @@ class check_mk::agent ( include check_mk::agent::service } 'ssh': { - if ( $host_tags != '' ) { - $tags = "${host_tags}|${use_ssh_tag}" - } else { - $tags = $use_ssh_tag + if ( $host_tags != '' ) { + $tags = "${host_tags}|${use_ssh_tag}" + } else { + $tags = $use_ssh_tag + } } - } else { - $tags = $host_tags - include check_mk::agent::service + default: {} } class { 'check_mk::agent::install': @@ -42,15 +41,15 @@ class check_mk::agent ( method => $method } class { 'check_mk::agent::config': - ip_whitelist => $ip_whitelist, - port => $port, - server_dir => $server_dir, - homedir => $homedir, - use_cache => $use_cache, - user => $user, + ip_whitelist => $ip_whitelist, + port => $port, + server_dir => $server_dir, + homedir => $homedir, + use_cache => $use_cache, + user => $user, method => $method, generate_sshkey => $generate_sshkey, - require => Class['check_mk::agent::install'], + require => Class['check_mk::agent::install'], } if ( $register_agent ) { -- cgit v1.2.3