crowbar/barclamp-provisioner — pull request #211 by ociuhandu (2013-10-09 13:51:33+00:00)
Title: Fix DHCP IP address assignment when multiple nics are present [1/1]

When multiple ethernet adapters are present, a host file is created in /etc/dhcp3/hosts.d/ for each interface. All these files contain the same IP address (node management address).

* Added condition in update_nodes.rb to set IP address only for the boot interface
* Added condition in dhcp template to deny boot if no IP is set (see update_nodes.rb)

On Windows nodes we rely on DHCP for IP address assignment, as opposed to Linux where the IP address is set statically uppon installation. Assigning the same IP address for all interfaces leads to unpredictable behavior between reboots. The IP address is assigned to the first interface that completes the DHCP handshake, and we rely on the interface for a series of checks.

.../cookbooks/dhcp/templates/default/host.conf.erb | 4 +++
chef/cookbooks/provisioner/recipes/update_nodes.rb | 32 +++++++++++---------
2 files changed, 22 insertions(+), 14 deletions(-)

Crowbar-Pull-ID: a753d22fc919b2fbf2464394bfac35589e6ab997

Crowbar-Release: pebbles