-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
BogdanIrimie
committed
Aug 25, 2020
1 parent
a2737ea
commit 0e9c397
Showing
32 changed files
with
591 additions
and
273 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
module Facts | ||
module Aix | ||
class Sshalgorithmkey | ||
FACT_NAME = 'ssh.*key' | ||
TYPE = :legacy | ||
|
||
def call_the_resolver | ||
facts = [] | ||
result = Facter::Resolvers::SshResolver.resolve(:ssh) | ||
result.each { |ssh| facts << Facter::ResolvedFact.new("ssh#{ssh.name.to_sym}key", ssh.key, :legacy) } | ||
facts | ||
end | ||
end | ||
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,20 @@ | ||
# frozen_string_literal: true | ||
|
||
module Facts | ||
module Aix | ||
class SshfpAlgorithm | ||
FACT_NAME = 'sshfp_.*' | ||
TYPE = :legacy | ||
|
||
def call_the_resolver | ||
facts = [] | ||
result = Facter::Resolvers::SshResolver.resolve(:ssh) | ||
result.each do |ssh| | ||
facts << Facter::ResolvedFact.new("sshfp_#{ssh.name.to_sym}", | ||
"#{ssh.fingerprint.sha1} \n #{ssh.fingerprint.sha256}", :legacy) | ||
end | ||
facts | ||
end | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
module Facts | ||
module Freebsd | ||
class Sshalgorithmkey | ||
FACT_NAME = 'ssh.*key' | ||
TYPE = :legacy | ||
|
||
def call_the_resolver | ||
facts = [] | ||
result = Facter::Resolvers::SshResolver.resolve(:ssh) | ||
result.each { |ssh| facts << Facter::ResolvedFact.new("ssh#{ssh.name.to_sym}key", ssh.key, :legacy) } | ||
facts | ||
end | ||
end | ||
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,20 @@ | ||
# frozen_string_literal: true | ||
|
||
module Facts | ||
module Freebsd | ||
class SshfpAlgorithm | ||
FACT_NAME = 'sshfp_.*' | ||
TYPE = :legacy | ||
|
||
def call_the_resolver | ||
facts = [] | ||
result = Facter::Resolvers::SshResolver.resolve(:ssh) | ||
result.each do |ssh| | ||
facts << Facter::ResolvedFact.new("sshfp_#{ssh.name.to_sym}", | ||
"#{ssh.fingerprint.sha1} \n #{ssh.fingerprint.sha256}", :legacy) | ||
end | ||
facts | ||
end | ||
end | ||
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
module Facts | ||
module Solaris | ||
class Sshalgorithmkey | ||
FACT_NAME = 'ssh.*key' | ||
TYPE = :legacy | ||
|
||
def call_the_resolver | ||
facts = [] | ||
result = Facter::Resolvers::SshResolver.resolve(:ssh) | ||
result.each { |ssh| facts << Facter::ResolvedFact.new("ssh#{ssh.name.to_sym}key", ssh.key, :legacy) } | ||
facts | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.