Class: ForemanOmaha::FactParser

Inherits:
FactParser
  • Object
show all
Defined in:
app/services/foreman_omaha/fact_parser.rb

Instance Method Summary collapse

Instance Method Details

#architectureObject



13
14
15
16
17
18
# File 'app/services/foreman_omaha/fact_parser.rb', line 13

def architecture
  name = nil
  name = 'x86_64' if facts['board'] == 'amd64-usr'
  name = 'arm64' if facts['board'] == 'arm64-usr'
  Architecture.where(:name => name).first_or_create unless name.nil?
end

#certnameObject



28
# File 'app/services/foreman_omaha/fact_parser.rb', line 28

def certname; end

#domainObject



24
# File 'app/services/foreman_omaha/fact_parser.rb', line 24

def domain; end

#environmentObject



20
# File 'app/services/foreman_omaha/fact_parser.rb', line 20

def environment; end

#ipmi_interfaceObject



26
# File 'app/services/foreman_omaha/fact_parser.rb', line 26

def ipmi_interface; end

#modelObject



22
# File 'app/services/foreman_omaha/fact_parser.rb', line 22

def model; end

#operatingsystemObject



5
6
7
8
9
10
11
# File 'app/services/foreman_omaha/fact_parser.rb', line 5

def operatingsystem
  args = { :name => os_name, :major => facts['osmajor'], :minor => facts['osminor'] }
  description = "#{os_name} #{facts['version']}"
  Coreos.where(args).first ||
    create_coreos_version(args.merge(:description => description,
                                     :release_name => facts['track']))
end

#support_interfaces_parsing?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'app/services/foreman_omaha/fact_parser.rb', line 30

def support_interfaces_parsing?
  false
end