Project

General

Profile

Refactor #23635

Optionally load facter

Added by Ewoud Kohl van Wijngaarden 6 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
Settings
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Facter is currently loaded in a few places. This is always to get the fqdn or domain which can be centralized to settings. It can then detect if those are already hardcoded. The benefit is that facter becomes optional.

Associated revisions

Revision c1f2c0bb (diff)
Added by Ewoud Kohl van Wijngaarden 6 months ago

Refs #23635 - Stop relying on facter

The inclusion of facter is technically optional since it's a bundler
group. In practice there are direct calls to it.

This change relies on a change in Foreman core to ensure SETTINGS[:fqdn]
is set.

The benefit is that you can explicitly set the FQDN in your settings
file and avoid the use of the host FQDN altogether. This has the benefit
of decoupling from the actual host you run Foreman on.

Revision a653e389 (diff)
Added by Ewoud Kohl van Wijngaarden 6 months ago

Fixes #23635 - Centralize use of facter

We have a bundler group for facter. That implies it's optional but
before this change it wasn't With this change it's only required if no
domain and fqdn are set. This is still the default so in most cases it's
no difference, but at least we have centralized all use of facter to one
place.

History

#1 Updated by The Foreman Bot 6 months ago

  • Assignee set to Ewoud Kohl van Wijngaarden
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5589 added

#2 Updated by Michael Moll 6 months ago

  • Legacy Backlogs Release (now unused) set to 353

#3 Updated by Ewoud Kohl van Wijngaarden 6 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#4 Updated by Ewoud Kohl van Wijngaarden 4 months ago

  • Triaged set to No
  • Category set to Settings

Also available in: Atom PDF