]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/ssh/templates/sshd_config.erb
generate TLSA record for our mailserver ports
[dsa-puppet.git] / modules / ssh / templates / sshd_config.erb
index 90bc532b671f4bc03595740ab1bd3cf80a0b3935..2d179de877109b8b9f2b510b827876bb418eb6fe 100644 (file)
@@ -5,8 +5,6 @@
 Port 22
 <%= extraports = case fqdn
                         when "ravel.debian.org" then "Port 443"
-                        when "gluck.debian.org" then "Port 443"
-                        when "agnesi.debian.org" then "Port 2260"
                  end
 extraports
 %>
@@ -77,6 +75,10 @@ AcceptEnv LANG LC_*
 Subsystem sftp /usr/lib/openssh/sftp-server
 
 UsePAM yes
+<% if %w{squeeze}.include?(scope.lookupvar('::lsbdistcodename')) %>
 AuthorizedKeysFile /etc/ssh/userkeys/%u
 AuthorizedKeysFile2 /var/lib/misc/userkeys/%u
+<% else %>
+AuthorizedKeysFile /etc/ssh/userkeys/%u /var/lib/misc/userkeys/%u
+<% end %>
 PasswordAuthentication no