Added support for Suse

This commit is contained in:
Phil Friderici 2013-10-16 11:29:11 +02:00
parent 23eab804a2
commit b6907bf14f
2 changed files with 14 additions and 1 deletions

View File

@ -12,6 +12,7 @@ This module has been tested to work on the following systems.
* EL 5
* EL 6
* SLES 11
===

View File

@ -88,8 +88,20 @@ class ssh (
'openssh-clients']
$default_sshd_config_subsystem_sftp = '/usr/libexec/openssh/sftp-server'
}
'Suse': {
$default_packages = 'openssh'
if $::architecture == 'x86_64' {
$default_sshd_config_subsystem_sftp = '/usr/lib64/ssh/sftp-server'
}
elsif $::architecture == 'i386' {
$default_sshd_config_subsystem_sftp = '/usr/lib/ssh/sftp-server'
}
else {
fail("ssh supports architecture x86_64 & i386 for Suse. Detected architecture is <${::architecture}>.")
}
}
default: {
fail("ssh supports osfamily RedHat. Detected osfamily is <${::osfamily}>.")
fail("ssh supports osfamily RedHat & Suse. Detected osfamily is <${::osfamily}>.")
}
}