diff options
author | Micah <micah@leap.se> | 2016-05-24 10:19:22 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-05-24 10:19:22 -0400 |
commit | 8166111831b79d426964440cd355d57ee33878f7 (patch) | |
tree | c51b0abbc9f5136c6ad8439a1423dfb88f61a0a2 /puppet/modules/sshd/lib/facter/ssh_version.rb | |
parent | 991f91c5cd53524b09d2d880569178cb455392f1 (diff) | |
parent | 823e83dfb47af1d023f5e4ca46078bbc4df72006 (diff) |
Merge commit '823e83dfb47af1d023f5e4ca46078bbc4df72006' as 'puppet/modules/sshd'
Diffstat (limited to 'puppet/modules/sshd/lib/facter/ssh_version.rb')
-rw-r--r-- | puppet/modules/sshd/lib/facter/ssh_version.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/puppet/modules/sshd/lib/facter/ssh_version.rb b/puppet/modules/sshd/lib/facter/ssh_version.rb new file mode 100644 index 00000000..51d8a00f --- /dev/null +++ b/puppet/modules/sshd/lib/facter/ssh_version.rb @@ -0,0 +1,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 |