Register hosts to Satellite6 via CloudForms and Ansible Tower part 3

In the first two parts of the blog series you’ve learned how you can create an inventory synchronizing Ansible Tower with CloudForms, create a Job Template in Ansible Tower and auto generate a service catalog item in CloudForms from the Job Template under the configuration management tab. You’ve also learned how you can create a new catalog and add the catalog item to it. Part 3 in the blog series is going to show you how you can create a custom button under the VM instances tab.

Step 1 Click on Automate
selection_026
Customization
selection_027
Buttons
selection_028

Step 2 Select VM and Instances
selection_029
Configuration -> Add new button Group
selection_030
and add the following values
selection_037
click add on the bottom right
addcfme

Step 3 Scroll to your new button group and select it.
selection_035
Go to Configuration Add new Button tab
selection_033
and enter the following values
selection_034

Once done press add on the bottom right and your done.
addcfme

Step 4 I will now show you where you can find the button. Go to Compute
selection_038
Infrastructure
selection_039
Virtual Machines
selection_040

Step 5 Select any of your VM instances
selection_041

Step 6 In the menu bar you will see your button group AnsibleTowerJob and your button registersat6
selection_042
Press the registersat6 button which will load the sat6register service dialog.
selection_043

In part 2 we create a service dialog which can be ordered from the self service ui. There is one big difference between both dialogs. If you submit the dialog from a button, the Limit (‘hostname’) of the select host is automatically passed as a variable to the CloudForms automate engine. Therefore the limit can be left empty while ordering from a button. This is not the case when ordering from a self service dialog.