Skip to content
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

Please add a ressource to create katello lifecycle environments #141

Closed
bigon opened this issue Nov 27, 2023 · 1 comment · Fixed by #149
Closed

Please add a ressource to create katello lifecycle environments #141

bigon opened this issue Nov 27, 2023 · 1 comment · Fixed by #149
Assignees
Labels
enhancement New feature or request

Comments

@bigon
Copy link

bigon commented Nov 27, 2023

Hello,

Again AFAICS, there is no resource to create/update lifecycle environments

Would be nice to have that

@lhw lhw added the enhancement New feature or request label Nov 28, 2023
@bitkeks bitkeks self-assigned this Nov 28, 2023
bitkeks added a commit to mindfulsecurity/terraform-provider-foreman that referenced this issue Dec 20, 2023
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 terraform-coop#141

Signed-off-by: Dominik Pataky <pataky@mindful-security.eu>
@bitkeks
Copy link
Collaborator

bitkeks commented Dec 21, 2023

Hi, PR #149 implements Katello lifecycle environments.

I added a tutorial on how to build the provider from source, in case you have the possibilities to test it: https://github.com/terraform-coop/terraform-provider-foreman/wiki/Development#build-the-provider-from-source-code

@lhw lhw closed this as completed in #149 Jan 26, 2024
lhw pushed a commit that referenced this issue Jan 26, 2024
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

Signed-off-by: Dominik Pataky <pataky@mindful-security.eu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants