-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from Terraform-VMWare-Modules/rc/3.0.0
Rc/3.0.0
- Loading branch information
Showing
11 changed files
with
139 additions
and
298 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Single VM deployment with literal name | ||
module "example-server-single" { | ||
source = "Terraform-VMWare-Modules/vm/vsphere" | ||
version = "Latest X.X.X" | ||
vmtemp = "TemplateName" | ||
instances = 1 | ||
vmname = "liternalvmname" | ||
vmrp = "esxi/Resources" | ||
network = { | ||
"Name of the Port Group in vSphere" = ["10.13.113.2"] | ||
} | ||
dc = "Datacenter" | ||
datastore = "Data Store name(use datastore_cluster for datastore cluster)" | ||
} | ||
|
||
# Vmname Output -> liternalvmname | ||
|
||
// Example of multiple VM deployment with complex naming standard | ||
# Define Environment Variable to switch between Environments | ||
variable "env" { | ||
default = "dev" | ||
} | ||
module "example-server-multi" { | ||
source = "Terraform-VMWare-Modules/vm/vsphere" | ||
version = "Latest X.X.X" | ||
vmtemp = "TemplateName" | ||
instances = 2 | ||
vmname = "advancevm" | ||
vmnameformat = "%03d${var.env}" | ||
vmrp = "esxi/Resources" | ||
network = { | ||
"Name of the Port Group in vSphere" = ["10.13.113.2", ""] | ||
} | ||
dc = "Datacenter" | ||
datastore = "Data Store name(use datastore_cluster for datastore cluster)" | ||
} | ||
|
||
# Vmname Output -> advancevm001dev, advancevm002dev |
Oops, something went wrong.