Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devel - readme #1

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# GCP-VMWare-Engine
Terraform Module - VMWare Engine on Google Cloud
# GCP VMWare Engine

## Terraform Module - VMWare Engine on Google Cloud

A Terraform module to ensure a VMWare Engine platform is available in the Service Layer of GCP.
67 changes: 67 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Service Layer - GCP VMWare Engine - Variable Definitions

variable "private_cloud_zone" {
type = string
description = "The GCP Zone to host the VMWare Private Cloud"
default = "us-west1-a"
}

variable "private_cloud_name" {
type = string
description = "The name of the VMWare Private Cloud"
}

variable "private_cloud_description" {
type = string
description = "The description of the VMWare Private Cloud"
}

variable "private_cloud_type" {
type = string
description = "The type of VMWare Private Cloud"
}

variable "private_cloud_net_management_cidr" {
type = string
description = "CIDR value for the Private Cloud Management Layer"
}

variable "private_cloud_management_cluster" {
type = string
description = "VMWare Private Cloud Management Cluster"
}

variable "management_cluster_node_type_id" {
type = string
description = "Management Cluster Node Type ID"
}

variable "management_cluster_node_count" {
type = number
description = "Management Cluster Node Count"
}

variable "management_cluster_custom_core_count" {
type = number
description = "Management Cluster Custom Core Count"
}

variable "private_cloud_network_name" {
type = string
description = "VMWare Private Cloud Network Name"
}

variable "private_cloud_network_location" {
type = string
description = "VMWare Private Cloud Network Location"
}

variable "private_cloud_network_type" {
type = string
description = "VMWare Private Cloud Network Type"
}

variable "private_cloud_network_description" {
type = string
description = "VMWare Private Cloud Network Description"
}
8 changes: 8 additions & 0 deletions vmware-engine-backend.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Service Layer - GCP VMWare Engine - Terraform Backend

terraform {
backend "gcs" {
bucket = "smc-tfstate-service-layer"
prefix = "servicelayer/vmware-engine/private-cloud"
}
}
8 changes: 8 additions & 0 deletions vmware-engine-network.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Service Layer - GCP VMWare Engine - Terraform Module - Private Cloud Network

resource "google_vmwareengine_network" "private_cloud_network" {
name = var.private_cloud_network_name
location = var.private_cloud_network_location
type = var.private_cloud_network_type
description = var.private_cloud_network_description
}
23 changes: 23 additions & 0 deletions vmware-engine.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Service Layer - GCP VMWare Engine - Terraform Module - Private Cloud

resource "google_vmwareengine_private_cloud" "private_cloud" {
location = var.private_cloud_zone
name = var.private_cloud_name
description = var.private_cloud_description
type = var.private_cloud_type

network_config {
management_cidr = var.private_cloud_net_management_cidr
vmware_engine_network = google_vmwareengine_network.private_cloud_network.id
}

management_cluster {
cluster_id = var.private_cloud_management_cluster
node_type_configs {
node_type_id = var.management_cluster_node_type_id
node_count = var.management_cluster_node_count
custom_core_count = var.management_cluster_custom_core_count
}
}
}