diff options
author | Matt Taggart <taggart@riseup.net> | 2014-05-01 14:07:53 -0700 |
---|---|---|
committer | Matt Taggart <taggart@riseup.net> | 2015-04-16 21:08:48 +0000 |
commit | ec8169eadc16fde4a8019b67f4966d2b119cb765 (patch) | |
tree | efd518f7da5aa2e4a5563ac535571184257965f5 /manifests/agent/config.pp | |
parent | 6547ba79591886544af4eaab88b65215d579d857 (diff) |
create an sshuser parameter, so we can determine when we need to use sudo in the agent authorized_keys command
Diffstat (limited to 'manifests/agent/config.pp')
-rw-r--r-- | manifests/agent/config.pp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/manifests/agent/config.pp b/manifests/agent/config.pp index 58e3b1e..b00329b 100644 --- a/manifests/agent/config.pp +++ b/manifests/agent/config.pp @@ -9,6 +9,7 @@ class check_mk::agent::config ( $user, $method = 'xinetd', $generate_sshkey = false, + $sshuser = undef ) { if $use_cache { $server = "${server_dir}/check_mk_caching_agent" @@ -39,15 +40,17 @@ class check_mk::agent::config ( if $authfile { # if authfile is overridden, pass it through check_mk::agent::generate_sshkey { 'check_mk_key': - keydir => $keydir, - authdir => $authdir, - authfile => $authfile + keydir => $keydir, + authdir => $authdir, + authfile => $authfile, + sshuser => $sshuser } } else { # otherwise don't check_mk::agent::generate_sshkey { 'check_mk_key': keydir => $keydir, - authdir => $authdir + authdir => $authdir, + sshuser => $sshuser } } } |