debops / ansible-dhcpd

Install and configure ISC DHCP Server
GNU General Public License v3.0
22 stars 15 forks source link

Support of multiple MAC addresses for host declaration and a little fix to failover #10

Closed redrampage closed 9 years ago

redrampage commented 9 years ago

Hello, I've run into some problems with static DHCP reservations on bonded interfaces:

So I wrote a small patch to support assignment of multiple MACs to a single host. It creates a separate host statements for each MAC(because dhcpd wants them to be unique). If no 'option host-name' is specified in 'host.options' - it is added. This is made for compatibility with 'use-host-decl-names on' dhcpd option.

Also there is a small patch for failover configuration which allows usage of hostnames in inventory file.

redrampage commented 9 years ago

Oops, upstream diverged a bit too much. Will recreate this PR.

drybjed commented 9 years ago

Changes look interesting, waiting for new PR. :-)