and we need this now
[mirror/dsa-puppet.git] / modules / ssh / templates / sshd_config.erb
index 6cf1f9c..0bc6efb 100644 (file)
@@ -76,6 +76,10 @@ AcceptEnv LANG LC_*
 Subsystem sftp /usr/lib/openssh/sftp-server
 
 UsePAM yes
+<% if nodeinfo.has_key?('wheezy') and nodeinfo['wheezy'] %>
+AuthorizedKeysFile /etc/ssh/userkeys/%u /var/lib/misc/userkeys/%u
+<% else %>
 AuthorizedKeysFile /etc/ssh/userkeys/%u
 AuthorizedKeysFile2 /var/lib/misc/userkeys/%u
+<% end %>
 PasswordAuthentication no