Sha256: 27a35d301c0cbd875c14322f284dc43d19769b9153f10ae96def31e606e94e70
Contents?: true
Size: 506 Bytes
Versions: 11
Compression:
Stored size: 506 Bytes
Contents
# frozen_string_literal: true module Facts module Linux 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
Version data entries
11 entries across 11 versions & 1 rubygems