module-sshd/lib/facter/ssh_version.rb

6 lines
161 B
Ruby
Raw Normal View History

2014-11-22 00:18:15 +01:00
Facter.add("ssh_version") do
setcode do
ssh_version = Facter::Util::Resolution.exec('ssh -V 2>&1 1>/dev/null').chomp.split(' ')[0].split('_')[1]
2014-11-22 00:18:15 +01:00
end
end