1 2 3 4 5
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] end end