I can’t find any guides or docs on how to use the Red Hat miq-infoblox custom domain found on GitHub to integrate MIQ with InfoBlox. So I’m starting this thread to solicit input and provide an answer to others searching for the same thing.
Backup your Automate Datastore code in case the following changes mess it up:
You should always do this before editing your code.
The miq-infoblox domain requires you first install miq-utilities, found here. The readme provides simple install instructions.
Found here. Again the readme tells you what to do.
Unlock the RedHatConsulting_Infoblox Domain
You have to unlock the RedHatConsulting_Infoblox domain before you can edit it. Use the following from a rails console
MiqAeDomain.where(:name => 'RedHatConsulting_Infoblox').update_attributes(:source => 'user')
FYI to lock the ManageIQ domain use the following from a rails console
MiqAeDomain.where(:name => 'RedHatConsulting_Infoblox').update_attributes(:source => 'system')
Configure the Infoblox > Configuration class:
Go to RedHatConsulting_Infoblox > Integration > Infoblox > Configuration class in the Automate Datastore. Add your username, password and server to the schema attributes.
Adjust the VM Provisioning State Machine:
Copy the OOTB Class ‘VMProvision_VM’ found at ManageIQ (Domain) > Cloud > VM > Provisioning > StateMachines > VMProvision_VM to a custom domain if it doesn’t already exist in one of your custom domains.
Add acquire_ip_address to the AcquireIPAddress state value
Save changes. I will edit/add to this post based on further research, testing, and feedback from others who feel inclined to provide it. Thanks!