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

Re-add ability to rebuild #130

Closed holmesb closed 11 months ago

holmesb commented 11 months ago

Discussion resulted in agreement to reintroduce the ability to rebuild. This was removed in v6. New foreman_host argument set_build_flag will default to false. This will still allow the Foreman default behaviour of initially building new hosts, but will avoid the previous incarnation's (build) risk of accidental rebuilds after next Terraform run. Expectation of new behaviour vs current:

bitkeks commented 11 months ago

Re-run of Terraform will rebuild. Changing back to false will prevent rebuild

Please note that setting the set_build_flag argument in TF to true does not automatically re-install the host through Foreman. The flag will have an effect after the next reboot of the machine, because Foreman will then trigger the installation process again. This workflow is out of scope of Terraform.