Project

General

Profile

Actions

Bug #3030

closed

Facter isn't loaded, but is referenced in DB migrations etc.

Added by Dominic Cleal about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Urgent
Category:
Packaging
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The Facter library is no longer 'required' anywhere now that Puppet is no longer loaded due to #2414, but we still have quite a few references to it.

This causes DB migrations on a clean installation to fail:

uninitialized constant AddOwnerToHosts::Facter/var/lib/workspace/workspace/test_develop/database/mysql/ruby/1.8.7/db/migrate/20100419151910_add_owner_to_hosts.rb:12:in `up'

Other uses of it:

app/models/setting/auth.rb
app/models/setting/provisioning.rb
app/models/setting/general.rb
lib/tasks/reset_permissions.rake
db/migrate/20100628123400_add_internal_auth.rb
db/migrate/20100419151910_add_owner_to_hosts.rb

All of these should probably just require 'facter' until we can get rid of it too.


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #2414: Remove Puppet from Foreman coreClosedGreg Sutcliffe04/19/2013Actions
Actions

Also available in: Atom PDF