17 lines
391 B
Ruby
17 lines
391 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Facts
|
|
module Openbsd
|
|
class Sshalgorithmkey
|
|
FACT_NAME = 'ssh.*key'
|
|
TYPE = :legacy
|
|
|
|
def call_the_resolver
|
|
facts = []
|
|
result = Facter::Resolvers::Ssh.resolve(:ssh)
|
|
result.each { |ssh| facts << Facter::ResolvedFact.new("ssh#{ssh.name.to_sym}key", ssh.key, :legacy) }
|
|
facts
|
|
end
|
|
end
|
|
end
|
|
end
|