10.2. Preparing Cloud-init Images in Red Hat Virtualization
To use cloud-init during provisioning, you must prepare an image with cloud-init installed in Red Hat Virtualization, and then import the image to Satellite to use for provisioning.
Procedure
- In Red Hat Virtualization, create a virtual machine to use for image-based provisioning in Satellite.
On the virtual machine, install
cloud-init:yum install cloud-init
yum install cloud-initCopy to Clipboard Copied! Toggle word wrap Toggle overflow To the
/etc/cloud/cloud.cfgfile, add the following information:datasource_list: ["NoCloud", "ConfigDrive"]
datasource_list: ["NoCloud", "ConfigDrive"]Copy to Clipboard Copied! Toggle word wrap Toggle overflow - In Red Hat Virtualization, create an image from this virtual machine.
When you add this image to Satellite, ensure that you select the User Data check box.