ghoneycutt / puppet-module-ssh

Puppet module to manage SSH
Other
34 stars 184 forks source link

Restore SFTP functionality for SLE12 #369

Closed anders-larsson closed 2 years ago

anders-larsson commented 2 years ago

This restores SFTP subsystem path for SLE12.

Changed the logic to use versioncmp so all future versions of SLE will continue to use the new location (until it changes again...)

anders-larsson commented 2 years ago

Created because it was broken in #331 however it looks like SLES12 is no longer supported1 by its vendor.

EDIT: SLES is still supported until 2027 however SLED is not!

anders-larsson commented 2 years ago

Ugh. Now it should be back to where it was before and including #331. server_bits is set to undef on SLES15 and newer while set to 1024 on SLES12 and older.

ghoneycutt commented 2 years ago

Hi @anders-larsson this module is going through some big changes by our friend @Phil-Friderici so I will defer to him when this should get merged.

Phil-Friderici commented 2 years ago

@anders-larsson These details have been moved into hiera in the v4 branch \o/ The values were transfered from the latest v3 branch.

When I do understand you correct that means that SLED/SLES 12 also needs /usr/lib/ssh/sftp-server instead of /usr/lib64/ssh/sftp-server ?

Please see the moved data here

anders-larsson commented 2 years ago

@anders-larsson These details have been moved into hiera in the v4 branch \o/ The values were transfered from the latest v3 branch.

When I do understand you correct that means that SLED/SLES 12 also needs /usr/lib/ssh/sftp-server instead of /usr/lib64/ssh/sftp-server ?

Please see the moved data here

That's correct. Everything 12 and newer should use /usr/lib/ssh/sftp-server

Phil-Friderici commented 2 years ago

Fixed in v4 with https://github.com/ghoneycutt/puppet-module-ssh/pull/373/commits/44a5ba7871f1a146e721ee1fee872fed1fc23188

Phil-Friderici commented 2 years ago

I don't think there will be another v3 release. So if you are ok to have this fix in the upcoming v4 release you can close this PR :)