summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorGabriel Filion <lelutin@gmail.com>2011-01-19 20:45:59 -0500
committerGabriel Filion <lelutin@gmail.com>2011-01-30 21:15:35 -0500
commit5bb61c2761210cff97b95c315fcc93c9c87e1c71 (patch)
treee1e09a5c23f4e07766f16b3d94095ff1986bfdaa /manifests
parent35768ed1e839ffa4c23d7a9ce06e8b34cec0228f (diff)
Fix ssh_authorized_key
When one uses the $name to define the user that should receive an SSH key, setting $user to a negative value, ssh_authorized_key currently creates the authorized_keys file under /home/.ssh/authorized_keys Fix this by changing ${user} to ${real_user} in the key's path. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Diffstat (limited to 'manifests')
-rw-r--r--manifests/ssh_authorized_key.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/ssh_authorized_key.pp b/manifests/ssh_authorized_key.pp
index bf188d8..575b654 100644
--- a/manifests/ssh_authorized_key.pp
+++ b/manifests/ssh_authorized_key.pp
@@ -22,7 +22,7 @@ define sshd::ssh_authorized_key(
undef,'': {
case $real_user {
'root': { $real_target = '/root/.ssh/authorized_keys' }
- default: { $real_target = "/home/${user}/.ssh/authorized_keys" }
+ default: { $real_target = "/home/${real_user}/.ssh/authorized_keys" }
}
}
default: {