Cloud-init 4.4
Since version 0.7.3 of cloud-init packages the OpenNebula context CD is supported. It is able to get and configure networking, hostname, ssh key for root and cloud-init user data. Here are the options in a table:
Option | Description |
---|---|
standard network options | OpenNebula network parameters in the context added by NETWORK=yes |
HOSTNAME | VM hostname |
SSH_PUBLIC_KEY | ssh public key added to root's authorized keys |
USER_DATA | Specific user data for cloud-init |
DSMODE | Can be set to local, net or disabled to change cloud-init datasource mode |
You have more information on how to use it at the cloud-init documentation page.
There are plenty of examples on what can go in the USER_DATA string at the cloud-init examples page.
CONTEXT=[ USER_DATA="#cloud-config power_state: mode: reboot " ]