Releases: terraform-coop/terraform-provider-foreman
v0.6.2
v0.6.1
With this release v0.6.1 we have reached a stable new minor version for the Foreman Terraform provider 🎉
Important changes in v0.6.0 and v0.6.1
Starting with v0.6.0
some (breaking) changes require an update of Terraform manifests.
Host: build flag
The host build
argument was removed (0.6.0
) and is replaced by set_build_flag
. (0.6.1
)
- The reason behind this change is complex and was thoroughly discussed in #125
- Using the argument does one thing: it tells Foreman to set the
build
flag for a host. It defaults tofalse
, setting it totrue
causes the host to be re-installed on next boot (network-based installation).
Host: method argument
The method
argument is re-introduced as provision_method
. It can be either build
(network-based) or image
(image-based).
- Both options require different additional arguments, e.g the image to be used. See
examples/host/
.
Host: name argument
The host name
argument was considered for deprecation (in 0.6.0
, reverted in 0.6.1
).
- The
name
attribute has issues based on the "append_domain_name" setting in Foreman. It causes "inconsistent plan" errors when you give it a shortname as value, Terraform receives an FQDN back, and thename
attribute is then used in variables in other places in your Terraform manifests. - In
0.6.1
thename
attribute is not marked as deprecated and can still be used without errors. We added compatibility functions to reduce inconsistency errors, should you continue to usename
- As an alternative, the
shortname
argument can be used instead. It is meant for the hostname without the domain part. If you usename
as input argument,shortname
will be filled by the provider automatically. - To get the host's FQDN from the provider, use the read-only attribute
fqdn
. (0.6.1
) - Use
shortname
andfqdn
as variables in your manifests! Example:other_server = foreman_host.other_server.fqdn
. This will prevent you from running into inconsistent plans.
What's Changed in v0.6.1
- Update the docs to no longer reference removed 'build' parameter by @tnorris in #127
- Add more fields to Foreman host by @bitkeks in #123
- foreman_host: Replace the "name" attribute with "fqdn" (computed) and "shortname" (required) by @bitkeks in #121
- Implement settings API as data source by @bitkeks in #120
- Re-add ability to set build flag (via set_build_flag argument) by @bitkeks in #131
- Add compatibility to "name" argument by @bitkeks in #132
New Contributors
Full Changelog: v0.6.0...v0.6.1
v0.6.0
What's Changed
Full Changelog: v0.5.8...v0.6.0
v0.5.8
What's Changed
- Convert subnet belongs_to IDs to pointers by @jovandeginste in #104
- Fix create by @agriffit79 in #110
- logfile: don't add execute flag by @Frankkkkk in #107
- Puppet fixes by @agriffit79 in #111
New Contributors
- @jovandeginste made their first contribution in #104
- @Frankkkkk made their first contribution in #107
Full Changelog: v0.5.7...v0.5.8
v0.5.7
What's Changed
- Fix nested puppetclasses. Add test for verification by @lhw in #99
- Fix gofmt warnings and actual warnings by @lhw in #100
- update sdk. might fix intermittent resource conversion issues by @lhw in #101
- Add build token attribute to host resource by @agriffit79 in #97
Full Changelog: v0.5.6...v0.5.7
v0.5.6
What's Changed
- Fix decoding of host on update by @lhw in #95
- Add new flag 'manage_power_operations' by @mgusek-interhyp in #94
Full Changelog: v0.5.4...v0.5.6
v0.5.4
What's Changed
- project: migrate from hansemekur by @MrFreezeex in #88
- host: fix delete host when a host is imported by @MrFreezeex in #86
- Add check deleted by @MrFreezeex in #87
- project: actually add CheckDeleted checks by @MrFreezeex in #89
- host: fix delete host when a host is imported by @MrFreezeex in #90
Full Changelog: v0.5.1...v0.5.4
v0.5.1
What's Changed
- Fix issue with foreman_host being set to rebuild by @lhw in https://github.com/HanseMerkur/terraform-provider-foreman/pull/81
Full Changelog: HanseMerkur/terraform-provider-foreman@v0.5.0...v0.5.1
v0.5.0
Important Changes
- The
managed_build
andmethod
field have been deprecated. Please switch to themanaged
andbuild
respectively. Please see the documentation on the four fields for more information.
A quick example would be:
resource "foreman_host" "xyz" {
# method = "build"
# replaced by
build = true
# managed_build = true
# replaced by
managed = true
}
foreman_hosts
ensure that they are set to not rebuild on reboot. Currently there is no state migration for that value until 0.5.1.
- The field
bmc_success
was removed fromforeman_host
. But this should have no consequences on any existing resources. - Some of the parameters are stored in different types in the state, due to changes brought forth by the switch to Terraform SDK v2. A simple
terraform apply -refresh
should take care of it.
What's Changed
- Add negotiate auth support by @MrFreezeex in https://github.com/HanseMerkur/terraform-provider-foreman/pull/55
- user: fix queryUser returning wrong type by @MrFreezeex in https://github.com/HanseMerkur/terraform-provider-foreman/pull/56
- Fix auth negotiate config by @MrFreezeex in https://github.com/HanseMerkur/terraform-provider-foreman/pull/57
- Refactor host and add managed fields by @MrFreezeex in https://github.com/HanseMerkur/terraform-provider-foreman/pull/58
- host: fix encode of hostparameters by @MrFreezeex in https://github.com/HanseMerkur/terraform-provider-foreman/pull/67
- host: remove bmc_success by @MrFreezeex in https://github.com/HanseMerkur/terraform-provider-foreman/pull/61
- Add bmc_id to subnet resource by @holmesb in https://github.com/HanseMerkur/terraform-provider-foreman/pull/63
- Host resource: Add build arg and remove method by @holmesb in https://github.com/HanseMerkur/terraform-provider-foreman/pull/68
- Update to terraform SDK v2 (Closes: #65) by @lhw in https://github.com/HanseMerkur/terraform-provider-foreman/pull/69
- project: switch to terraform sdk v2 context and diagnostic by @MrFreezeex in https://github.com/HanseMerkur/terraform-provider-foreman/pull/70
- TypeMap schemas now require Elem of TypeString by @lhw in https://github.com/HanseMerkur/terraform-provider-foreman/pull/73
- host: mark interface_attributes as optional by @MrFreezeex in https://github.com/HanseMerkur/terraform-provider-foreman/pull/74
- project: switch to importer with context by @MrFreezeex in https://github.com/HanseMerkur/terraform-provider-foreman/pull/78
- client: fix foreman parameters conversion by @MrFreezeex in https://github.com/HanseMerkur/terraform-provider-foreman/pull/77
- Changed HostGroup decode to match Host by @lhw in https://github.com/HanseMerkur/terraform-provider-foreman/pull/79
New Contributors
- @MrFreezeex made their first contribution in https://github.com/HanseMerkur/terraform-provider-foreman/pull/55
- @holmesb made their first contribution in https://github.com/HanseMerkur/terraform-provider-foreman/pull/63
Full Changelog: HanseMerkur/terraform-provider-foreman@v0.4.5...v0.5.0
v0.4.5
What's Changed
- Add puppet class support by @agriffit79 in https://github.com/HanseMerkur/terraform-provider-foreman/pull/51
- Remove restriction on pxe_loader by @lhw in https://github.com/HanseMerkur/terraform-provider-foreman/pull/53
- Regenerate documentation by @agriffit79 in https://github.com/HanseMerkur/terraform-provider-foreman/pull/48
- Fix hostgroup title by @agriffit79 in https://github.com/HanseMerkur/terraform-provider-foreman/pull/49
Full Changelog: HanseMerkur/terraform-provider-foreman@v0.4.4...v0.4.5