Skip to content

Commit

Permalink
PRODENG-2550 Cleanup of the terraform module (#1)
Browse files Browse the repository at this point in the history
* PRODENG-2550 Added description to each variable

Signed-off-by: Dimitar Dimitrov <[email protected]>

* PRODENG-2550 Moved vsphere provider to latest hashicorp/vsphere version

Signed-off-by: Dimitar Dimitrov <[email protected]>

---------

Signed-off-by: Dimitar Dimitrov <[email protected]>
  • Loading branch information
cranzy authored Feb 23, 2024
1 parent 161d090 commit 7287d73
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.DS_Store

plan
ssh_keys/
.terraform/
*terraform.tfstate*
*.tfvars
*.tfvars.json
.terraform.lock.hcl
1 change: 0 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
provider "vsphere" {
version = "~> 1.21"
vsphere_server = var.vsphere_server
user = var.vsphere_user
password = var.vsphere_password
Expand Down
9 changes: 7 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,25 @@ variable "vsphere_password" {
}

variable "datacenter" {
default = ""
default = ""
description = "Datacenter to deploy resources in"
}

variable "resource_pool" {
description = "Resource pool to deploy resources in"
}

variable "folder" {
default = ""
default = ""
description = "Folder to deploy resources in"
}

variable "datastore_cluster" {
description = "Datastore cluster to deploy resources in"
}

variable "network" {
description = "Network to deploy resources in"
}

variable "template_vm_linux" {
Expand Down
9 changes: 9 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
terraform {
required_version = ">= 1.4.5"
required_providers {
google = {
source = "hashicorp/vsphere"
version = "2.6.1"
}
}
}

0 comments on commit 7287d73

Please sign in to comment.