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

Implement Katello lifecycle environments resource and data source #149

Closed bitkeks closed 8 months ago

bitkeks commented 9 months ago

Adds the "lifecycle environment" resources from Katello to Terraform, as both resource and data source.

Tested on Katello 4.9: data source READ, resource CREATE/READ/UPDATE/DELETE.

The handling of API prefixes for Katello in client.go might conflict with other PRs, this code block should be refactored.

An example shows how the first lifecycle environment in a path can be created from the Library root environment.

Resolves #141