terraform-coop / terraform-provider-foreman

Terraform provider for Foreman
https://registry.terraform.io/providers/terraform-coop/foreman
Mozilla Public License 2.0
33 stars 31 forks source link

Updating to 0.5.0 will set all existing hosts to be build on next boot on apply #80

Closed lhw closed 2 years ago

lhw commented 2 years ago

The newly created build = true has the same effect as method = "build" before so by not migrating the key we essentially set all existing hosts to rebuild on reboot. The resource needs a version and a migration according to this guide https://www.terraform.io/plugin/sdkv2/resources/state-migration

I might work on that today or tomorrow. I suggest not using 0.5.0 until then.