Skip to content

Commit

Permalink
Add debian 7, fedora and opensuse-13.2 with ssh versions
Browse files Browse the repository at this point in the history
for old chef versions where autodetection does not work
  • Loading branch information
artem-sidorenko committed Jan 26, 2017
1 parent d9e6205 commit 6256b93
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libraries/devsec_ssh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,20 @@ def guess_ssh_version
return 6.6 if version >= 14.04
when 'debian'
return 6.6 if version >= 8
return 6.0 if version >= 7
return 5.3 if version <= 6
end
when 'rhel'
return 6.6 if version >= 7
return 5.3 if version >= 6
when 'fedora'
return 7.3 if version >= 25
return 7.2 if version >= 24
when 'suse'
case platform
when 'opensuse'
return 6.6 if version >= 13.2
end
end
Chef::Log.info("Unknown platform #{node['platform']} with version #{node['platform_version']} and family #{node['platform_family']}. Assuming ssh version #{FALLBACK_SSH_VERSION}")
FALLBACK_SSH_VERSION
Expand Down

0 comments on commit 6256b93

Please sign in to comment.