Sha256: bca7dab20a3b9d96d2d26ff426fd9c5030113b0be1fb32842d2b9c0f7ef6b3b6
Contents?: true
Size: 505 Bytes
Versions: 6
Compression:
Stored size: 505 Bytes
Contents
# frozen_string_literal: true module Facts module El 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
6 entries across 6 versions & 1 rubygems