Class: ForemanOmaha::FactParser
- Inherits:
-
FactParser
- Object
- FactParser
- ForemanOmaha::FactParser
- Defined in:
- app/services/foreman_omaha/fact_parser.rb
Instance Method Summary collapse
- #architecture ⇒ Object
- #certname ⇒ Object
- #domain ⇒ Object
- #environment ⇒ Object
- #ipmi_interface ⇒ Object
- #model ⇒ Object
- #operatingsystem ⇒ Object
- #support_interfaces_parsing? ⇒ Boolean
Instance Method Details
#architecture ⇒ Object
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 |
#certname ⇒ Object
28 |
# File 'app/services/foreman_omaha/fact_parser.rb', line 28 def certname; end |
#domain ⇒ Object
24 |
# File 'app/services/foreman_omaha/fact_parser.rb', line 24 def domain; end |
#environment ⇒ Object
20 |
# File 'app/services/foreman_omaha/fact_parser.rb', line 20 def environment; end |
#ipmi_interface ⇒ Object
26 |
# File 'app/services/foreman_omaha/fact_parser.rb', line 26 def ipmi_interface; end |
#model ⇒ Object
22 |
# File 'app/services/foreman_omaha/fact_parser.rb', line 22 def model; end |
#operatingsystem ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/services/foreman_omaha/fact_parser.rb', line 5 def 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
30 31 32 |
# File 'app/services/foreman_omaha/fact_parser.rb', line 30 def support_interfaces_parsing? false end |