I've seen a lot of questions around this theme,
with this blog post I'll show you step by step how to setup your Satellite 6 to self provision Openstack instances.
First of all you need to login to your Satellite 6 platform and then move to: Infrastructure -> Compute resources -> New.
After choosing a name for the new oompute resource and the right provider (Openstack), you should place the Openstack web interface address, you username & password and try to load the available tenants.
Adding a compute resource is not the only step you should make. After that you have to configure the various flavors that you want to provide to your Satellite's users!
Open the just created compute resource and move to "Compute profiles" tab.
Then click on every compute profile you may provide and customize it as showed down here:
As you can see I chose only the flavor and the tenant, every other detail could be chosen directly by the "New Host" page!
Now it's time to move to the "Images" tab, from there you should create as many images as many operating systems you want to provide to your users.
As you can see I added images that also have support for User data, this flag is very important and remember to choose images that actually support cloud-init commands for ensuring complete provisioning through your Satellite installation.
We've almost completed the configuration, all we need now is to customize the user-data template. For editing the userdata template just move to: "Hosts -> Provisioning Templates".
The default "Satellite Kickstart User Data" is locked so you need to clone it and start editing the new one.
Finally you should set the right User Data template in every operating system you planned to use. Go to "Hosts -> Operating Systems"
Time to test it! Move to "Hosts -> New Host", after selecting the right Hostgroup, you will now be able to select something different from the classic "Bare metal" choice, you shoul now see also the just added compute resource!
Moving to "Operating System" tab you should see a dropdown menu that it'll let you choose one of the just defined images.
Finally moving to the "Virtual Machine" tab you should see various dropdown menu that will let you choose other flavour and/or OSP tenant.
Now launch the host creation! Satellite 6 will communicate to Openstack instructing it on what kind of instance it should launch!
If you have any comments/questions please comment!