summaryrefslogtreecommitdiff
path: root/puppet/modules/sshd/lib/facter/ssh_version.rb
blob: 51d8a00ff99a74c063306684539f0dcf96d54d52 (plain)
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