Sha256: 78ab0446bc7ec1d50ca2efab699f47291a3a0a4ac003f148b33ab05cbb54d3d7

Contents?: true

Size: 507 Bytes

Versions: 6

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Sles
    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

Version Path
facter-4.0.20 lib/facts/sles/sshfp_algorithm.rb
facter-4.0.19 lib/facts/sles/sshfp_algorithm.rb
facter-4.0.18 lib/facts/sles/sshfp_algorithm.rb
facter-4.0.17 lib/facts/sles/sshfp_algorithm.rb
facter-4.0.16 lib/facts/sles/sshfp_algorithm.rb
facter-4.0.15 lib/facts/sles/sshfp_algorithm.rb