Merge pull request #15 from Phil-Friderici/sles_support

Added support for Suse
This commit is contained in:
Garrett Honeycutt 2013-10-17 13:33:37 -07:00
commit e796537601
2 changed files with 16 additions and 1 deletions

View File

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

View File

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