Skip to content

Wait for cloud init to complete in incus_instance resource (report error if there is any) #269

@breml

Description

@breml

As mentioned in #86, currently the terraform provider does not detect errors in cloud init and additionally, the terraform provider is not able to detect, when cloud init is done.

Cloud init offers an option to wait for cloud-init to complete with cloud-init status --wait (additionally, --format json can be provided for an easy to process result). Therefore I think it could be possible to extend the provider such, that after successful creation of the instance, the provider could exec the before mentioned command in order to wait for cloud init to complete (and return the error if there is one).

Therefore I propose to add another type of wait_for, which allows to wait for the cloud init to complete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions