-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ssh to ec2dd7a44939f0e620edc27e44a8f2287385e807
ec2dd7a44939f0e620edc27e44a8f2287385e807 new release v2.5.0 775210485034b91afa7680ee74742367c47bbcca sort keys in match block, fixes #76 2cdda7edda525f4cb6935cac954908150f79f56a remove Modulefile in favour of metadata.json bdd94b1b21dc5be94bb82f24be0793be597fbfea Merge pull request #96 from buzzdeee/fix_ed25519 1685f85ce5337c582c8eb0adbea1500d15415690 fix rspec version 1fd4316667b131674378de15eff39a58593db36b move .gemfile to Gemfile e4fccdc8d38072ff1f93921d461436869b3899e3 fix ed25519 handling. 966da3195e9555ad6294c9279c09781396dae38e Merge pull request #95 from robertdebock/master f1a0481f0a62bc6d6919948f474f8aa2ec01a48f Merge pull request #93 from voidus/multivalued_keys_docs 61736e013a4dfe7c23327ee23e3276b00840477e Merge pull request #92 from markasammut/master 34db056b2661e418e42c40bcb4507054853b7dad Merge pull request #89 from fraenki/freebsd_sftp ca751a6a761c8638351da79aed51a6e9ad1e6e53 Merge pull request #85 from oxilion/fixreadme 1737b61795e2f00ac1cdb008625478333ff99b09 Merge pull request #84 from gertvdijk/improve_hostkeys b1c2570d1e575e1bf289e5e816266b80e0240da8 Merge pull request #82 from soniah/master fd1a82a5005f8a246e835003e282ca036d70eb90 Merge pull request #80 from wonko21/master d65f75c264bc99d46b2a45fbab2dfc2ff01400bc Merge pull request #77 from buzzdeee/master c6076a10ae8c304bce485d151fe7d30231a02a1b Merge pull request #75 from kcampos/add_amazon_os e075e687ad7afdae1292742a42fec64919e886eb Merge pull request #72 from voidus/master 809b41b89c0bd310287cc614af384661fff210b0 Merge pull request #69 from kiddivouchers/version-facts c5562d3cc853665afa86e11221afab554afc5670 Removed a comma from the documentation. da8b7d113e1f1f54fe27342eb12bce6e07605589 Document array-valued options c9ac750c33d2f885c44bbafc8705fb84cf2ebe84 Merge pull request #1 from markasammut/patch-1 be8fc1e745e83793fbdbe8eeea58ae33a5ee682f added option to specify package version 823a4a23f3bb5812a3d7734823b0e56012c0d364 fix $sftp_server_path on FreeBSD be8d53c2ffac7c2db862157300d126362f5328df README.markdown: clarify match_block-config da1ec526223da7f8b4a40b7dcf97f162573d6774 Oops in ssh key type for ed25519. 0c398ead55ebbf22620f17e6590b3e877dddf3ef Purge removed host keys from knownhosts file and add ed25519 support. 9121fa1dd41a8263d8c928c645943564929644e1 add source 5cc565fbf7fd55401a8e45980b79157f4d1b5088 corrected ssh service call 71bfba9fe67383c87d01c51bb6188414bd86046a the "operatingsystem" fact for OpenSuSE is "OpenSuSE" not "Suse" 4f642ca479840e9e4bb20b369b574b702536d0a9 Add support for OpenBSD 1a607022542a8ab4a1ef7afe44fe9e70a21c72d3 Add support for Amazon OS 57d40094f67182ebc07a56d8795ac794b1c99d5b Fix wrapping of Ruby code for Ruby<1.9 f63ae3b0b15927625b06e7db093ac661743a9ecf Add explicit allow_virtual parameters db48e39678237629fec7efe8e8fb273aea32aec5 Add docs for version facts eb2d9fb3ea6540f633d3134dc4cf8a678affcf24 Don't use structured facts as Facter 2.0 is pretty new 31464c2891caecfe72176e23692f383dd574663a Change to structured fact providing breakdown of OpenSSH version 03399cdbc714c427b3ded8651d9a4bcd6513d736 Add facts to get SSH server/client version
- Loading branch information
Showing
17 changed files
with
208 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,3 @@ matrix: | |
env: PUPPET_GEM_VERSION="~> 2.6.0" | ||
notifications: | ||
email: false | ||
gemfile: .gemfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Facter.add("ssh_client_version_full") do | ||
setcode do | ||
version = Facter::Util::Resolution.exec('sshd -V 2>&1'). | ||
lines. | ||
to_a. | ||
select { |line| line.match(/^OpenSSH_/) }. | ||
first. | ||
rstrip | ||
|
||
version.gsub(/^OpenSSH_([^ ]+).*$/, '\1') | ||
end | ||
end | ||
|
||
Facter.add("ssh_client_version_major") do | ||
setcode do | ||
version = Facter.value('ssh_client_version_full') | ||
|
||
version.gsub(/^([0-9]+\.[0-9]+).*$/, '\1') | ||
end | ||
end | ||
|
||
Facter.add("ssh_client_version_release") do | ||
setcode do | ||
version = Facter.value('ssh_client_version_full') | ||
|
||
version.gsub(/^([0-9]+\.[0-9]+(?:\.[0-9]+)?).*$/, '\1') | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Facter.add("ssh_server_version_full") do | ||
setcode do | ||
# sshd doesn't actually have a -V option (hopefully one will be added), | ||
# by happy coincidence the usage information that is printed includes the | ||
# version number. | ||
version = Facter::Util::Resolution.exec('sshd -V 2>&1'). | ||
lines. | ||
to_a. | ||
select { |line| line.match(/^OpenSSH_/) }. | ||
first. | ||
rstrip | ||
|
||
version.gsub(/^OpenSSH_([^ ]+).*$/, '\1') | ||
end | ||
end | ||
|
||
Facter.add("ssh_server_version_major") do | ||
setcode do | ||
version = Facter.value('ssh_server_version_full') | ||
|
||
version.gsub(/^([0-9]+\.[0-9]+).*$/, '\1') | ||
end | ||
end | ||
|
||
Facter.add("ssh_server_version_release") do | ||
setcode do | ||
version = Facter.value('ssh_server_version_full') | ||
|
||
version.gsub(/^([0-9]+\.[0-9]+(?:\.[0-9]+)?).*$/, '\1') | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
class ssh ( | ||
$server_options = {}, | ||
$client_options = {}, | ||
$version = 'present', | ||
$storeconfigs_enabled = true | ||
) inherits ssh::params { | ||
class { 'ssh::server': | ||
storeconfigs_enabled => $storeconfigs_enabled, | ||
options => $server_options, | ||
ensure => $version, | ||
} | ||
|
||
class { 'ssh::client': | ||
storeconfigs_enabled => $storeconfigs_enabled, | ||
options => $client_options, | ||
ensure => $version, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
class ssh::knownhosts { | ||
Sshkey <<| |>> { | ||
ensure => present, | ||
} | ||
Sshkey <<| |>> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.