Chapter 3. Red Hat support for cloud-init
Red Hat supports the cloud-init utility, cloud-init modules, default directories, and files across various Red Hat products.
3.1. Red Hat products that use cloud-init Copy linkLink copied to clipboard!
You can use cloud-init with Red Hat OpenStack Platform, Red Hat Satellite, and Red Hat OpenShift to configure and initialize virtual machines.
-
Red Hat OpenStack Platform. You can use
cloud-initto help configure images for OpenStack. Refer to the Instances and Images Guide for more information. -
Red Hat Satellite. You can use
cloud-initwith Red Hat Satellite. Refer to Preparing Cloud-init Images in Red Hat Virtualization for more information. -
Red Hat OpenShift. You can use
cloud-initwhen you create VMs for OpenShift. Refer to Creating Virtual Machines for more information.
3.2. Supported cloud-init modules Copy linkLink copied to clipboard!
Red Hat supports most cloud-init modules. Each module can contain multiple configuration options and has a default module frequency that decides when it runs. The following table lists the supported cloud-init modules.
| cloud-init Module | Description | Default Module Frequency |
|---|---|---|
|
| Runs Ansible playbooks | per instance |
|
| Runs commands at the early stage of the boot process | per always |
|
| Adds CA certificates | per instance |
|
| Enables or disables the AWS EC2 metadata | per always |
|
| Configures simple partition tables and file systems | per instance |
|
|
Specifies the output message once | per always |
|
| Resizes partitions to fill the available disk space | per always |
|
| Installs hot-plug devices | per instance |
|
| Writes fingerprints and keys to the console | per instance |
|
| Installs and configures a landscape client | per instance |
|
| Configures the system locale and applies it system-wide | per instance |
|
| Registers a Red Hat Enterprise Linux (RHEL) system | per instance |
|
|
Adds support for RightScale configuration hooks to | per instance |
|
|
Configures remote system logging using | per instance |
|
| Runs arbitrary commands | per instance |
|
|
Installs, configures, and starts | per instance |
|
| Runs per boot scripts | per always |
|
| Runs per instance scripts | per instance |
|
| Runs scripts once | per once |
|
| Runs user scripts | per instance |
|
| Runs vendor scripts | per instance |
|
| Provides random seed data | per instance |
|
| Sets hostname and fully qualified domain name (FQDN) | per always |
|
| Sets user passwords and enables or disables SSH password authentication | per instance |
|
| Configures Spacewalk client | per instance |
|
| Logs fingerprints of user SSH keys | per instance |
|
| Imports SSH keys | per instance |
|
| Configures SSH, and host and authorized SSH keys | per instance |
|
| Sets the system time zone | per instance |
|
|
Updates | per always |
|
| Updates hostname and FQDN | per always |
|
| Configures users and groups | per instance |
|
| Writes arbitrary files | per instance |
|
| Adds dnf repository configuration to the system | per always |
3.3. Cloud-init modules not supported by Red Hat Copy linkLink copied to clipboard!
Red Hat does not support certain cloud-init modules, and using them in your cloud-init configuration is highly discouraged.
| Module |
|---|
| apt_configure |
| apt_pipeline |
| byobu |
| chef |
| emit_upstart |
| grub_dpkg |
| ubuntu_init_switch |