-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
None
Starting with https://docs.redhat.com/en/documentation/red_hat_satellite/6.17/html-single/provisioning_hosts/provisioning_hosts#Using_VMware_Cloud_Init_and_Userdata_Templates_for_Provisioning_vmware-provisioning it instructs the user to use NoCloud and then hardcode where to retrieve the userdata from.
However, cloud-init supports the VMware user data where the data is provided to the VM directly: https://cloudinit.readthedocs.io/en/latest/reference/datasources/vmware.html#configuration-examples
Within Foreman we already support sending this data (https://github.com/theforeman/foreman/blob/c28ab6ff1cd0b8fe77b853a5bfbd70ef86508af9/app/models/compute_resources/foreman/model/vmware.rb#L604-L607) and it avoids the need to hardcode the image.
Implementing this allows users to create an image and user with whatever configuration. It can be shared between multiple Satellite instances and also works correctly when using Capsules.
While implementing this it should be coordinated with QE. They have currently implemented image based tests using this procedure, but would greatly benefit from this enhancement.