hcloud-talos/terraform-hcloud-talos

Support for updating live machines using the talos provider

Opened this issue · 3 comments

Right now, all provisioned machines use only the configurations assigned to user_data at creation time, any further changes have to be applied through talosctl.

The talos provider appears to provide the ability to apply any modifications to machine configurations in the form of talos_machine_configuration_apply.

I've been thinking about this for a while, whether it's somehow possible. Unfortunately, we already need the config when creating the server. As far as I know, we can't start it first and then deploy the config.

Maybe we can deploy the same config again after the start. Then we could customize it later.

Unfortunately, we already need the config when creating the server.

Why?

As far as I know because of:

user_data          = data.talos_machine_configuration.control_plane[each.value.name].machine_configuration

user_data = data.talos_machine_configuration.control_plane[each.value.name].machine_configuration

But I'm not 100% sure.

Perhaps what Roxedus says here also offers a new possibility for this problem.

I would love to try it out, but at the moment I don't have the time because of other projects.