diff --git a/README.md b/README.md index 253e566..4f67661 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ This module has been tested to work on the following systems. * EL 5 * EL 6 + * SLES 11 === diff --git a/manifests/init.pp b/manifests/init.pp index f502a6d..fc8c4e1 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -88,8 +88,22 @@ class ssh ( 'openssh-clients'] $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: { - fail("ssh supports osfamily RedHat. Detected osfamily is <${::osfamily}>.") + fail("ssh supports osfamilies RedHat and Suse. Detected osfamily is <${::osfamily}>.") } }