xanzy / terraform-provider-cloudstack

CloudStack Terraform provider
Apache License 2.0
21 stars 34 forks source link

Support cloudstack_template with multiple zones #1

Closed hashibot closed 3 years ago

hashibot commented 7 years ago

This issue was originally opened by @larstobi as hashicorp/terraform#13929. It was migrated here as part of the provider split. The original body of the issue is below.


Terraform Version

0.9.1

Affected Resource(s)

Terraform Configuration Files

resource "cloudstack_template" "coreos-stable" {
  name         = "coreos-stable"
  display_text = "CoreOS Container Linux Stable"
  format       = "VHD"
  hypervisor   = "XenServer"
  os_type      = "Other 2.6x Linux (64-bit)"
  is_public    = true
  url          = "http://dl.openvm.eu/cloudstack/coreos/x86_64/coreos_production_cloudstack_image-xen.vhd.bz2"
  zone         = ["Zone-1", "Zone-2"]
}

Expected Behavior

I expect terraform to create the template in "Zone-1" and then copy it to "Zone-2" using the copyTemplate API call. (https://cloudstack.apache.org/api/apidocs-4.9/apis/copyTemplate.html)

Actual Behavior

1 error(s) occurred:

* cloudstack_template.coreos-stable: zone must be a single value, not a list

Steps to Reproduce

  1. terraform apply
svanharmelen commented 3 years ago

I'm going to close this issue as I'm about to archive this repository. Development of this provider has been moved to the Apache Foundation. Please find the new home for this provider here: https://github.com/apache/cloudstack-terraform-provider