summaryrefslogtreecommitdiff
path: root/puppet/modules/sshd/lib/facter
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/sshd/lib/facter')
m---------puppet/modules/sshd0
-rw-r--r--puppet/modules/sshd/lib/facter/ssh_version.rb5
2 files changed, 5 insertions, 0 deletions
diff --git a/puppet/modules/sshd b/puppet/modules/sshd
deleted file mode 160000
-Subproject 76f4f872f81209a52df2205fd88b5619df58f00
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