cloudstack-terraform-provider icon indicating copy to clipboard operation
cloudstack-terraform-provider copied to clipboard

Adding configuration resource

Open poddm opened this issue 2 years ago • 6 comments

Adding cloudstack configuration resource.

  • https://cloudstack.apache.org/api/apidocs-4.17/apis/updateConfiguration.html
  • https://cloudstack.apache.org/api/apidocs-4.17/apis/listConfigurations.html
  • https://cloudstack.apache.org/api/apidocs-4.17/apis/resetConfiguration.html
  # cloudstack_configuration.example will be created
  + resource "cloudstack_configuration" "example" {
      + category    = (known after apply)
      + description = (known after apply)
      + id          = (known after apply)
      + is_dynamic  = (known after apply)
      + name        = "host"
      + scope       = (known after apply)
      + value       = "example"
    }

This requires the latest client. See - https://github.com/apache/cloudstack-go/releases/tag/v2.14.0 https://github.com/apache/cloudstack-go/pull/47

poddm avatar Apr 19 '23 22:04 poddm

@poddm thanks for the PR, do we need to use the latest go-sdk release (https://github.com/apache/cloudstack-go/releases) ? LGTM havn't tested it though. (closed/reopen PR to rekick Github actions build job)

rohityadavcloud avatar Aug 04 '23 16:08 rohityadavcloud

@vishesh92, These were cascading changes from updating to the latest client sdk https://github.com/apache/cloudstack-go/pull/47. They were not meant to be committed.

I'll rebase when https://github.com/apache/cloudstack-terraform-provider/issues/101 is merged.

poddm avatar Mar 26 '24 20:03 poddm

Update - I'd still like to get these merged once the cloudstack SDK is updated.

  • https://github.com/apache/cloudstack-terraform-provider/pull/71
  • https://github.com/apache/cloudstack-terraform-provider/issues/101

Related SDK changes

  • https://github.com/apache/cloudstack-go/pull/47
  • https://github.com/apache/cloudstack-go/pull/48
  • https://github.com/apache/cloudstack-go/pull/52

poddm avatar Apr 26 '24 02:04 poddm

Closing/re-opening to kick tests.

rohityadavcloud avatar Apr 26 '24 04:04 rohityadavcloud

@poddm there are conflicts on the PR - can you please resolve?

rohityadavcloud avatar Apr 26 '24 04:04 rohityadavcloud

@poddm Acceptance tests are failing. Can you check and fix those.

vishesh92 avatar Sep 04 '24 06:09 vishesh92