CloudInit#
- class CloudInit(datasource_type=None, metadata=None, cloud_init_script=None, *args, **kwargs)[source]#
Bases:
object
If this field is set, the guest will be customized using cloud-init. Either user_data or custom_key_values should be provided. If custom_key_ves are provided then the user data will be generated using these key-value pairs.
- Parameters:
datasource_type – (
datasource_type
)metadata – (
metadata
) The contents of the meta_data configuration for cloud-init. This can be formatted as YAML or JSON. The value must be base64 encoded.cloud_init_script – (
cloud_init_script
) The script to use for cloud-init.
- property cloud_init_script#
The script to use for cloud-init.
- Type:
- property datasource_type#
- Type:
- property metadata#
The contents of the meta_data configuration for cloud-init. This can be formatted as YAML or JSON. The value must be base64 encoded.
- Type:
str