-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-add ability to rebuild #130
Comments
bitkeks
added a commit
to mindfulsecurity/terraform-provider-foreman
that referenced
this issue
Jul 17, 2023
PR terraform-coop#122 removed the "build" argument, removing the possibility to enforce setting the Foreman-internal build flag to "true". This commit re-introduces this ability, but with a more explicit argument name: "set_build_flag". And it defaults to "false", so that not specifying it does not toggle the flag to "true" on accident. Resolves terraform-coop#130 See terraform-coop#125
Please note that setting the |
bitkeks
added a commit
that referenced
this issue
Jul 19, 2023
PR #122 removed the "build" argument, removing the possibility to enforce setting the Foreman-internal build flag to "true". This commit re-introduces this ability, but with a more explicit argument name: "set_build_flag". And it defaults to "false", so that not specifying it does not toggle the flag to "true" on accident. Resolves #130 See #125
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discussion resulted in agreement to reintroduce the ability to rebuild. This was removed in v6. New
foreman_host
argumentset_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:set_build_flag
argument exists, initial creation offoreman_host
results in it being built, since this is the Foreman default. Re-running Terraform does not rebuild.set_build_flag = false
(default): This provider does not tell Foreman API to disable the build flag. Instead, due to the fact Foreman defaults to build = true, initial creation offoreman_host
in Terraform still results in host being built. Re-running of Terraform will not rebuild.set_build_flag = true
: Initial creation offoreman_host
results in it being built. Re-run of Terraform will rebuild. Changing back to false will prevent rebuild.The text was updated successfully, but these errors were encountered: