add custom fact, providing ssh_version

This commit is contained in:
Micah Anderson 2014-11-21 18:18:15 -05:00
parent ae9cf81188
commit 03751baf8e

View file

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