Sha256: 15e621ce78116bb5a01b32766101f7f3df789812488d516756f231a239517c66
Contents?: true
Size: 633 Bytes
Versions: 7
Compression:
Stored size: 633 Bytes
Contents
module Katello class RhsmFactParser < ::FactParser def architecture name = facts['lscpu.architecture'] name = "x86_64" if name == "amd64" Architecture.find_or_create_by_name name unless name.blank? end def model if facts['virt::is_guest'] == "true" name = facts['lscpu::hypervisor_vendor'] else name = facts['dmi::system::product_name'] end ::Model.find_or_create_by_name(name.strip) unless name.blank? end #reqiured to be defined, even if they return nil def operatingsystem end def domain end def environment end end end
Version data entries
7 entries across 7 versions & 1 rubygems