Project

General

Profile

Actions

Feature #5507

closed

I would like to have the ability to specify which fact is used for updating the IP address of a host.

Added by Martin Hovmöller almost 10 years ago. Updated almost 7 years ago.

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

Description

The ipaddress fact isn't reliable in what IP address it actually picks. If several VLANs are available, it picks the IP of the VLAN with the lowest number, which might not be the correct one.
To fix this, I have created a custom fact that looks at the default route and picks the IP of the interface used there, which is most likely correct in every case ever.

However, foreman doesn't care about this of course, and still uses the IP of the ipaddress fact to update IP's, which leads to a bunch of servers having wrong IP's in foreman in our environment.

I would like to be able to resolve this by choosing which fact foreman looks at to determine the IP of a host.


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #3554: Enable provisioning on non-primary interfaceResolved11/01/2013Actions
Actions #1

Updated by Dominic Cleal almost 10 years ago

  • Category set to Facts
Actions #2

Updated by Dominic Cleal almost 10 years ago

  • Related to Feature #3554: Enable provisioning on non-primary interface added
Actions #3

Updated by Anonymous almost 7 years ago

  • Status changed from New to Feedback

Is this fixed by the networking and multi-NIC improvements in 1.8+?

Actions

Also available in: Atom PDF