aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openssh/templates
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2017-09-24 11:48:52 +0100
committerPascal Terjan <pterjan@mageia.org>2017-09-24 11:48:52 +0100
commita84eb42fd2924999e274c28310e33109ab61cf00 (patch)
tree99afc11cd89c7d22d9387e8db4b41fce3d461c1b /modules/openssh/templates
parentb4eb32a03e22dfbccf7465944a13a4052fe03b5d (diff)
downloadpuppet-a84eb42fd2924999e274c28310e33109ab61cf00.tar
puppet-a84eb42fd2924999e274c28310e33109ab61cf00.tar.gz
puppet-a84eb42fd2924999e274c28310e33109ab61cf00.tar.bz2
puppet-a84eb42fd2924999e274c28310e33109ab61cf00.tar.xz
puppet-a84eb42fd2924999e274c28310e33109ab61cf00.zip
Make Mageia 6 fix more widely avaialable
Diffstat (limited to 'modules/openssh/templates')
-rw-r--r--modules/openssh/templates/sshd_config12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/openssh/templates/sshd_config b/modules/openssh/templates/sshd_config
index 039467a7..f6fff438 100644
--- a/modules/openssh/templates/sshd_config
+++ b/modules/openssh/templates/sshd_config
@@ -22,11 +22,11 @@
HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
-<% if @hostname == 'neru' then %>
+<% if scope.function_versioncmp([lsbdistrelease, '6']) < 0 -%>
+HostKey /etc/ssh/ssh_host_dsa_key
+<% else %>
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
-<% else %>
-HostKey /etc/ssh/ssh_host_dsa_key
<% end %>
# Lifetime and size of ephemeral version 1 server key
@@ -119,10 +119,10 @@ UsePrivilegeSeparation yes
#Banner none
# override default of no subsystems
-<% if @hostname == 'neru' then %>
-Subsystem sftp /usr/libexec/openssh/sftp-server
-<% else %>
+<% if scope.function_versioncmp([lsbdistrelease, '6']) < 0 -%>
Subsystem sftp <%= path_to_sftp %>/sftp-server
+<% else %>
+Subsystem sftp /usr/libexec/openssh/sftp-server
<% end %>
# Example of overriding settings on a per-user basis