module-sshd/lib/facter/ssh_version.rb
2014-11-21 18:18:15 -05:00

5 lines
149 B
Ruby

Facter.add("ssh_version") do
setcode do
ssh_version = Facter::Util::Resolution.exec('ssh -V 2>&1').chomp.split(' ')[0].split('_')[1]
end
end