[Infrastructures] managing dhcpd.conf

mason@schmitt.ca mason@schmitt.ca
Tue, 5 Jul 2005 19:17:41 -0700 (PDT)


>> Just wondering if anyone has done or knows of software that changes
>> dhcpd.conf files in a programmatic fashion.
>>
> If you have installs working in an automated fashion using web pages, have
> you looked into using DHCPD's OMAPI protocol to send updates to the DHCP
> server? We don't do this yet, but the possibility is there.
>

Sorry for the late reply, I've been taking a break from mailing lists lately.

To solve this problem, I opted to apply a patch (by Brian Masney -
http://home.ntelos.net/~masneyb/) to ISC DHCP which allows me to store my
dhcpd config in ldap.  I currently only store host entries in ldap keeping
the rest of my config in flat file format, so that it's easier to manage
with cfengine.

Once the data is in ldap, it's absolutely trivial to add host entries
while the dhcp server is running using a perl ldap module.  A nice side
benefit of adding host entries this way is that a dhcpd restart is not
needed.

Mason Schmitt