Project

General

Profile

Actions

Refactor #24154

closed

Refactor facts module to work with facter 3.x

Added by Lukas Zapletal almost 6 years ago. Updated about 1 year ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Facts
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

We currently use facter 2 (from EPEL), switching to facter 3.x does not work as facter 3 uses own Ruby. We will perhaps need to spawn new process.

https://github.com/theforeman/smart-proxy/blob/develop/modules/facts/facts_plugin.rb


Related issues 1 (0 open1 closed)

Related to Discovery - Refactor #24153: Refactor fdi to work with facter 4.xResolvedActions
Actions #1

Updated by Lukas Zapletal almost 6 years ago

Actions #2

Updated by Ewoud Kohl van Wijngaarden almost 6 years ago

Facter 3 still provides ruby bindings but on RPM systems the Puppet AIO install has a Provides: facter. That facter installs Ruby bindings for the bundled ruby version rather than the system ruby. When EPEL is not available but Puppet AIO is, then you don't get the ruby bindings for the system ruby.

Actions #3

Updated by Lukas Zapletal almost 6 years ago

Or as Ewoud said "we can also make facter from our repos to be based on system Ruby". That would do it as well.

Actions #4

Updated by Ewoud Kohl van Wijngaarden about 1 year ago

  • Category changed from Puppet to Facts
  • Status changed from New to Rejected

For what it's worth: Facter 4 is written in Ruby again, so this should no longer be an issue.

Actions

Also available in: Atom PDF