Just to add to this: the same problem exists with IPv6 even on a single interface (at least it did last time I checked, which was a number of versions ago), especially with privacy extensions enabled.
To be fair, it is a hard problem to solve.
Our values: Privacy, Liberty, Justice
Has anyone found a straightforward way to force Ohai to use a specific interface’s IP address as the “main” ip address for the Chef node? All our server’s are multi-homed (have 2-3 interfaces). Chef is currently picking the IP of an interface that should not be considered the main interface for the node. From what I found so far, Ohai references the order of the routes to determine which interface IP to select…?