Create Cobbler PXE/TFTP Records during VM Provisioning

Posted by Christian Jung on Wed, Aug 17, 2016
In CloudForms, Cobbler, IT, ManageIQ
Tags

Red Hat Satellite 5.x is using Cobbler to manage DHCP and TFTP configuration files. A while back, we posted an article on how to use Cobbler Provisioning via CloudForms 2.0. Since the original post was written for CloudForms 2.0 in 2013, it’s probably time for an update.

I rewrote the script and uploaded it to Github.

To add a Cobbler system record during provisioning, an additional step in the provisioning state machine is necessary.

cobbler-statemachine

Please make sure you only use CreateCobblerRecord or RegisterForeman if the attributes for the instances have been declared. For Foreman this was documented in a previous post, for Cobbler, it could look like this:

cobbler-instance