>> Hello everybody:
>>
>> I’m new to the list, and I’m new to cobbler. I stumbled upon cobbler
>> looking for a solution to an idea I have. I’m working on a voip server idea.
>> Mostly a front end to FreeSwitch. I think most voip systems handle new phone
>> configuration backwards. You enter configuration information into the system
>> before plugging the phone in, and then you plug the phone in. It seems
>> backwards to me.
>> What I want to do is the following:
>> 1 – plug new IP phone into wall jack
>> 2 – IP phone asks DHCP server for IP address
>> 3 – DHCP server detects by the vendor code and/or MAC address, that
>> someone has plugged a new phone in
>> 4 – DHCP server tells cobbler that there is a new phone attached
>> snip
> You might consider looking into
> http://theforeman.org/projects/smart-proxy/wiki, it should allow you to
> configure dhcp/tftp via an rest API and could probably make it easy to drive
> the needed changes.

Whether you use foreman or cobbler makes no difference, the crux of
the question is whether ISC's dhcpd can trigger a script when a lease
request comes in. A quick search turned up this:

http://jpmens.net/2011/07/06/execute-a-script-when-isc-dhcp-hands-out-a-new-lease/

I haven't done it myself personally, but that looks like what you
want, and yes - cobbler would be able to handle it. You'd just need to
write to the XMLRPC API. I've considered moving cobbler to REST, but
frankly the XMLRPC API works fine and is not (in my opinion) any more
difficult to use.
_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to