Project

General

Profile

Actions

Feature #9490

closed

Settings -> Discovered provide setting to specify fact to use for hostname

Added by Bryan Kearney almost 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Discovery plugin
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1186537
Description of problem:
RFE

Would like to be able to set the fact that is used for the hostname of the system. e.g. uuid, asset_tag, serialnumber, etc.. (or combination of tags.. nice to have.)

By default this is set in /opt/rh/../models/hosts/discovered.rb as:
fact_name = Setting[:discovery_fact] || 'macaddress'
hostname = facts[fact_name].try(:downcase).try(:gsub,/:/,'').try(:sub,/^/,'mac')

Issue is changing this fact changes the population of the macaddress on provisioning as well. Hostname setting should really be separate.

Version-Release number of selected component (if applicable): 6.0.7

How reproducible: Always

Steps to Reproduce:
1. Set discovery_fact to serialnumber
2. Serialnumber gets substituted for macaddress when provisioning.
3.

Actual results:
as above

Expected results:
have separate setting that allows these two values to be independent of one another.

Additional info:

Actions

Also available in: Atom PDF