This commit is contained in:
ge 2023-12-13 21:02:09 +03:00
parent 072e86f987
commit bdff33759c
3 changed files with 4 additions and 3 deletions

View File

@ -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(

View File

@ -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)

View File

@ -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