For examples on how to achieve this, among other use cases, please refer to the usage guide for more information!
For more information about what options are available for configuring cloud-init, see the configuration section.