diff --git a/compute/instance/cloud_init.py b/compute/instance/cloud_init.py index 79bf679..a34e28a 100644 --- a/compute/instance/cloud_init.py +++ b/compute/instance/cloud_init.py @@ -206,6 +206,7 @@ class CloudInit: Attach cloud-init disk to instance. :param disk: Path to disk. + :param target: Disk target name e.g. `vda`. :param instance: Compute instance object. """ instance.attach_device( diff --git a/compute/session.py b/compute/session.py index a6b462a..c872568 100644 --- a/compute/session.py +++ b/compute/session.py @@ -210,6 +210,9 @@ class Session(AbstractContextManager): :param network_interfaces: List of virtual network interfaces configs. See :class:`NetworkInterfaceSchema` for more info. :type network_interfaces: list[dict] + :param cloud_init: Cloud-init configuration. See + :class:`CloudInitSchema` for info. + :type cloud_init: dict """ data = InstanceSchema(**kwargs) config = InstanceConfig(data) diff --git a/docs/source/cli/cloud_init.rst b/docs/source/cli/cloud_init.rst index 1aa0614..f5d19b1 100644 --- a/docs/source/cli/cloud_init.rst +++ b/docs/source/cli/cloud_init.rst @@ -27,9 +27,6 @@ Cloud-init configs may be set inplace into :file:`instance.yaml`. user_data: | ## template: jinja #cloud-config - merge_how: - - name: list - settings: [append] hostname: {{ ds.meta_data.hostname }} fqdn: {{ ds.meta_data.hostname }}.instances.generic.cloud manage_etc_hosts: true