Sha256: 1622cad35d4b967effb879c187c5df7ac00c9638ede8558c79fc70a9b91554fd
Contents?: true
Size: 835 Bytes
Versions: 9
Compression:
Stored size: 835 Bytes
Contents
# frozen_string_literal: true module Facts module Solaris class Ldom FACT_NAME = 'ldom' def initialize @log = Facter::Log.new(self) end def call_the_resolver fact_value = { domainchassis: resolve(:chassis_serial), domaincontrol: resolve(:control_domain), domainname: resolve(:domain_name), domainrole: { control: resolve(:role_control), impl: resolve(:role_impl), io: resolve(:role_io), root: resolve(:role_root), service: resolve(:role_service) }, domainuuid: resolve(:domain_uuid) } Facter::ResolvedFact.new(FACT_NAME, fact_value) end def resolve(key) Facter::Resolvers::Solaris::Ldom.resolve(key) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems