Bug #13051

Support uniqueid on FreeBSD; support hostuuid on FreeBSD (but should be generalized)

Added by Garrett Wollman over 1 year ago. Updated over 1 year ago.

Status:Needs DecisionStart date:03/09/2012
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:library
Target version:-
Keywords: Affected Facter version:1.6.6
Branch:

Description

Modern machines come with a burned-in UUID, which some people use for tracking in the same way that the burned-in MAC address is often used. In FreeBSD this is accessible via a sysctl; on other systems you may need to run dmidecode to suck it out of the DMI data. Windows cares about it a lot as well.

In addition, FreeBSD supports hostids, although there is no hostid(1) command (you have to use sysctl kern.hostid).

Support both of these for FreeBSD.

uniqueid.patch Magnifier (1.11 KB) Garrett Wollman, 03/09/2012 03:02 pm

uniqueid.patch Magnifier (2.63 KB) Garrett Wollman, 03/12/2012 03:00 pm

History

#1 Updated by Garrett Wollman over 1 year ago

New patch, moves hostuuid to a separate source file and adds unit tests for both uniqueid and hostuuid on FreeBSD.

#2 Updated by Ken Barber over 1 year ago

  • Category set to library
  • Status changed from Unreviewed to Needs Decision

Hi Garrett,

Thanks for the patch. Any chance of getting this as a pull request in git?

ken.

#3 Updated by Garrett Wollman over 1 year ago

I’m not a github user so the activation energy for that is fairly high.

Also available in: Atom PDF