jfrog / terraform-provider-platform

Terraform provider to manage JFrog Platform
https://jfrog.com
Apache License 2.0
1 stars 1 forks source link

Licence Management with the provider #12

Closed Zwordi closed 6 months ago

Zwordi commented 7 months ago

Hello,

I would like to present an feature request about the license management.

Currently we are using mainly TF & IaC to manage our Artifactory stack. We do have a need about the license management.

Based on https://jfrog.com/help/r/jfrog-rest-apis/install-license an POST is available to push a new license to the API that will then push it on local nodes. On the endpoint there is no attributes available to check the content of the installed license like an hash of the license file. We do have the expiration date of the license but it’s not enough to think about a way to do it with TF right away.

The resource would be very close to the property_set with an adaptation towards the endpoint target and the actions.

Based on the artifactory stack I think that doing something at the sdk level would be more consistent however I think that posting on this project is more consistent. A new functions like CheckArtifactoryLicense would be a good startpoint from my perspective.

Resource related I think that this new resource would need to have attribute like:

Then once created we would have those new attributes like:

What do you think ? Am I clear enough ?

Spoilers : I’m no go developer :)

alexhung commented 7 months ago

@Zwordi Thanks for the suggestion. I'll add this to our plan.

alexhung commented 6 months ago

@Zwordi I released v1.2.0 with new resource platform_license to manage single license. Currently the API has limitation that prevent me to create a resource to support managing HA license.