add custom fact, providing ssh_version
This commit is contained in:
parent
ae9cf81188
commit
03751baf8e
1 changed files with 5 additions and 0 deletions
5
lib/facter/ssh_version.rb
Normal file
5
lib/facter/ssh_version.rb
Normal 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
|
Loading…
Reference in a new issue