Sha256: d12ef9c457fd4120fd0e39cfd39e47ee230d80ad2e5fbd5beb7ec2b045365f53
Contents?: true
Size: 508 Bytes
Versions: 14
Compression:
Stored size: 508 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
14 entries across 14 versions & 1 rubygems