Skip to content

Commit

Permalink
update gcve-region to network region
Browse files Browse the repository at this point in the history
  • Loading branch information
umeshkumhar committed Feb 12, 2024
1 parent f71c833 commit 5e891bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions modules/gcve-private-cloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ module "example" {
# Required variables
cluster_id =
create_vmware_engine_network =
gcve_region =
gcve_zone =
pc_cidr_range =
pc_name =
project =
vmware_engine_network_location =
vmware_engine_network_name =
# Optional variables
Expand Down Expand Up @@ -52,13 +52,13 @@ module "example" {
| <a name="input_cluster_node_count"></a> [cluster\_node\_count](#input\_cluster\_node\_count) | Specify the number of nodes for the management cluster in the private cloud | `number` | `3` | no |
| <a name="input_cluster_node_type"></a> [cluster\_node\_type](#input\_cluster\_node\_type) | Specify the node type for the management cluster in the private cloud | `string` | `"standard-72"` | no |
| <a name="input_create_vmware_engine_network"></a> [create\_vmware\_engine\_network](#input\_create\_vmware\_engine\_network) | Set this value to true if you want to create a vmware engine network, | `bool` | n/a | yes |
| <a name="input_gcve_region"></a> [gcve\_region](#input\_gcve\_region) | Region where private cloud will be deployed | `string` | n/a | yes |
| <a name="input_gcve_zone"></a> [gcve\_zone](#input\_gcve\_zone) | Zone where private cloud will be deployed | `string` | n/a | yes |
| <a name="input_pc_cidr_range"></a> [pc\_cidr\_range](#input\_pc\_cidr\_range) | CIDR range for the management network of the private cloud that will be deployed | `string` | n/a | yes |
| <a name="input_pc_description"></a> [pc\_description](#input\_pc\_description) | Description for the private cloud that will be deployed | `string` | `"Private Cloud description"` | no |
| <a name="input_pc_name"></a> [pc\_name](#input\_pc\_name) | Name of the private cloud that will be deployed | `string` | n/a | yes |
| <a name="input_project"></a> [project](#input\_project) | Project where private cloud will be deployed | `string` | n/a | yes |
| <a name="input_vmware_engine_network_description"></a> [vmware\_engine\_network\_description](#input\_vmware\_engine\_network\_description) | Description of the vmware engine network for the private cloud | `string` | `"PC Network"` | no |
| <a name="input_vmware_engine_network_location"></a> [vmware\_engine\_network\_location](#input\_vmware\_engine\_network\_location) | Region where vmware engine network will be deployed | `string` | n/a | yes |
| <a name="input_vmware_engine_network_name"></a> [vmware\_engine\_network\_name](#input\_vmware\_engine\_network\_name) | Name of the vmware engine network for the private cloud | `string` | n/a | yes |
| <a name="input_vmware_engine_network_type"></a> [vmware\_engine\_network\_type](#input\_vmware\_engine\_network\_type) | Type of the vmware engine network for the private cloud | `string` | `"LEGACY"` | no |

Expand Down
4 changes: 2 additions & 2 deletions modules/gcve-private-cloud/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ data "google_vmwareengine_network" "existing_vmware_engine_network" {
provider = google-beta
project = var.project
name = var.vmware_engine_network_name
location = var.gcve_region
location = var.vmware_engine_network_location
}

resource "google_vmwareengine_network" "vmware_engine_network" {
count = var.create_vmware_engine_network ? 1 : 0
provider = google-beta
project = var.project
name = var.vmware_engine_network_name
location = var.gcve_region
location = var.vmware_engine_network_location
type = var.vmware_engine_network_type
description = var.vmware_engine_network_description
}
Expand Down
4 changes: 2 additions & 2 deletions modules/gcve-private-cloud/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ variable "project" {
type = string
description = "Project where private cloud will be deployed"
}
variable "gcve_region" {
variable "vmware_engine_network_location" {
type = string
description = "Region where private cloud will be deployed"
description = "Region where vmware engine network will be deployed"
}
variable "gcve_zone" {
type = string
Expand Down

0 comments on commit 5e891bb

Please sign in to comment.