Project

General

Profile

Feature #5507

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 about 5 years ago. Updated about 2 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
Facts
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
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

Related to Foreman - Feature #3554: Enable provisioning on non-primary interfaceResolved2013-11-01

History

#1 Updated by Dominic Cleal about 5 years ago

  • Category set to Facts

#2 Updated by Dominic Cleal about 5 years ago

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

#3 Updated by Michael Moll about 2 years ago

  • Status changed from New to Feedback

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

Also available in: Atom PDF