Skip to content

Releases: terraform-coop/terraform-provider-foreman

v0.6.2

28 Aug 08:22
3ffdb13
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.6.1...v0.6.2

v0.6.1

15 Aug 13:52
cca022e
Compare
Choose a tag to compare

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 to false, setting it to true 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 the name attribute is then used in variables in other places in your Terraform manifests.
  • In 0.6.1 the name 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 use name
  • As an alternative, the shortname argument can be used instead. It is meant for the hostname without the domain part. If you use name 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 and fqdn 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

30 Jun 12:55
2e2fe78
Compare
Choose a tag to compare

What's Changed

  • Remove build flag and re-introduce provision method attribute by @bitkeks in #122

Full Changelog: v0.5.8...v0.6.0

v0.5.8

30 Jan 10:54
4a410d1
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.5.7...v0.5.8

v0.5.7

07 Nov 21:19
Compare
Choose a tag to compare

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

29 Aug 20:56
@lhw lhw
98ca6dd
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.5.4...v0.5.6

v0.5.4

12 Jul 20:58
e9c589f
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.5.1...v0.5.4

v0.5.1

21 Jun 07:19
@lhw lhw
5c288a2
Compare
Choose a tag to compare

What's Changed

Full Changelog: HanseMerkur/terraform-provider-foreman@v0.5.0...v0.5.1

v0.5.0

13 Jun 15:22
8608f7c
Compare
Choose a tag to compare
v0.5.0 Pre-release
Pre-release

Important Changes

  • The managed_build and method field have been deprecated. Please switch to the managed and build 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
}

⚠️ When updating the values for existing 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 from foreman_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

New Contributors

Full Changelog: HanseMerkur/terraform-provider-foreman@v0.4.5...v0.5.0

v0.4.5

13 Apr 13:49
@lhw lhw
c9fa810
Compare
Choose a tag to compare