terraform-coop / terraform-provider-foreman

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

Host resource: Add build arg and remove method #68

Closed holmesb closed 2 years ago

holmesb commented 2 years ago

This delivers the main goal of issue #60. New build argument allows this flag to be set on existing hosts. Defaults to true, same as if you don't specify in Foreman.

Replaces method which has been deprecated (it's still in schema) and its functionality removed. Method never managed the build flag of existing hosts. Also "build" is more aligned with Foreman terminology.

Continuing to use method argument won't lead to an error, but it won't do anything now. I chose not to leave the existing "if method = build, set build to true" logic during the deprecation period, because it would be too confusing for users. Ie if method = build, but build = false, which wins? Likewise, when "method = interface, but build = true"?

I propose release notes should include:

Breaking Changes: