RPM-Lag: cloud-init

Latest response

Are there any plans to update the version of cloud-init available in the Red Hat repos? Seems like the version currently in the RHEL repos is well behind the current version available in the main cloud-init project ...which means that I can't (optimally) do boot-time automation of disk setup. If I launch an Ubuntu instance, the following takes care of my launch-time storage setup need:

#cloud-config
disk_setup:
  sdf:
    table_type: mbr
    layout: True
    overwrite: False
fs_setup:
  - device: sdf
    filesystem: ext4
    partition: auto
mounts:
  - [ sdf, /opt/data ]

However, on a Red Hat instance, while the mounts stanza will function correctly, the stuff that should be handled via disk_setup and/or fs_setup have to be kludged into a bootcmd script, instead.

Responses

Did you try to add disk_setup under the config_config_modules section of /etc/cloud/cloud.cfg

To be honest, no. Typically, we pass cloud-init directives directives via UserData - only changing the default values set in the AMI by way of overrides.

That said, after making my post, did some further (trial and error) experimentation and log-scouring. While it appears that the options are available as UserData directives, it appears that there's a bug in the 0.7.5 version available in the Red Hat repos that's (at least partially) fixed in the 0.7.7 version in the LaunchPad.Net project-repository. As it stands, fs_setup will work, but only if you don't try to partition the disk (i.e, skip disk_setup and ensure that set fs_setup's "partition" parameter value to "auto").

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.