From 27a3b27a390d9860f703ce00d2944a6d1140f029 Mon Sep 17 00:00:00 2001 From: nikchern Date: Sat, 18 Mar 2023 02:04:56 +0700 Subject: [PATCH] Update providers.tf version to 0.13.0 (#241) --- docs/data-sources/cluster_group.md | 11 ++++++++++- .../spectrocloud_cluster_group/providers.tf | 2 +- .../e2e/vsphere_virtual_machine/resource_vm.tf | 14 +++++++------- .../spectrocloud_virtual_machine/providers.tf | 2 +- 4 files changed, 19 insertions(+), 10 deletions(-) diff --git a/docs/data-sources/cluster_group.md b/docs/data-sources/cluster_group.md index bcb7893e..85a04c51 100644 --- a/docs/data-sources/cluster_group.md +++ b/docs/data-sources/cluster_group.md @@ -23,13 +23,22 @@ output "out_beehive" { } data "spectrocloud_cluster_group" "tenant_cl" { - name = "tenant_cl" + name = "sanfrancisco" context = "tenant" } output "out_tenant_cl" { value = data.spectrocloud_cluster_group.tenant_cl.id } + +data "spectrocloud_cluster_group" "project_sc" { + name = "cg-1" + context = "project" +} + +output "out_project_sc" { + value = data.spectrocloud_cluster_group.project_sc.id +} ``` diff --git a/examples/data-sources/spectrocloud_cluster_group/providers.tf b/examples/data-sources/spectrocloud_cluster_group/providers.tf index f1a1114f..b613d89f 100644 --- a/examples/data-sources/spectrocloud_cluster_group/providers.tf +++ b/examples/data-sources/spectrocloud_cluster_group/providers.tf @@ -13,6 +13,6 @@ variable "sc_project_name" {} provider "spectrocloud" { host = var.sc_host - api_key = var.sc_api_key + api_key = var.sc_api_key project_name = var.sc_project_name } diff --git a/examples/e2e/vsphere_virtual_machine/resource_vm.tf b/examples/e2e/vsphere_virtual_machine/resource_vm.tf index c80ad600..2e5f93d3 100644 --- a/examples/e2e/vsphere_virtual_machine/resource_vm.tf +++ b/examples/e2e/vsphere_virtual_machine/resource_vm.tf @@ -1,14 +1,14 @@ resource "virtual_machine" "example" { - cluster_uid = spectrocloud_cluster_vsphere.cluster.id - name = var.name - namespace = var.namespace + cluster_uid = spectrocloud_cluster_vsphere.cluster.id + name = var.name + namespace = var.namespace /*template { id = var.template_uid }*/ - state = var.state - cpu_cores = var.cpu_cores - memory = var.memory - image = var.image + state = var.state + cpu_cores = var.cpu_cores + memory = var.memory + image = var.image cloudinit_user_data = var.cloudinit_user_data } \ No newline at end of file diff --git a/examples/resources/spectrocloud_virtual_machine/providers.tf b/examples/resources/spectrocloud_virtual_machine/providers.tf index 1663e416..d4b7369e 100644 --- a/examples/resources/spectrocloud_virtual_machine/providers.tf +++ b/examples/resources/spectrocloud_virtual_machine/providers.tf @@ -1,7 +1,7 @@ terraform { required_providers { spectrocloud = { - version = ">= 0.12" + version = ">= 0.13" source = "spectrocloud/spectrocloud" } }