You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36-35Lines changed: 36 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,30 @@
1
1
# Terraform vSphere Module (:star2: All new features)
2
2
3
-
For Virtual Machine Provisioning with (Linux/Windows) customization. Thanks to the new enhancements introduced in Terraform v0.12.6 this module include most of the advance features that are available in the resource `vsphere_virtual_machine`.
3
+
For Virtual Machine Provisioning with (Linux/Windows) customization. Thanks to the new enhancements introduced in Terraform v0.12.6 this module include most of the advance features that are available in the resource `vsphere_virtual_machine`.
4
4
5
-
:warning: The new version of this module only works with terraform version 0.12.6 and above :warning:
5
+
:warning: The new version of this module only works with terraform version 0.12.6 and above :warning:
6
6
7
7
> This module now replace the functionality of the following modules:
## Deploys (Single/Multiple) Virtual Machines to your vSphere environment
12
13
13
14
This Terraform module deploys single or multiple virtual machines of type (Linux/Windows) with following features:
14
15
15
-
* Ability to specify Linux or Windows VM customization.
16
-
* Ability to add extra data disk (up to 15) to the VM.
17
-
* Ability to deploy Multiple instances.
18
-
* Ability to set IP and Gateway configuration for the VM.
19
-
* Ability to add multiple network cards for the VM
20
-
* Ability to choose vSphere resource pool or fall back to Cluster/ESXi root resource pool.
21
-
* Ability to deploy Windows images to WorkGroup or Domain.
22
-
* Ability to output VM names and IPs per module.
23
-
* Ability assign tags and custom variables.
24
-
* Ability to configure advance features for the vm.
25
-
* Ability to deploy either a datastore or a datastore cluster.
26
-
* Ability to enable cpu and memory hot plug features for the VM.
16
+
- Ability to specify Linux or Windows VM customization.
17
+
- Ability to add extra data disk (up to 15) to the VM.
18
+
- Ability to deploy Multiple instances.
19
+
- Ability to set IP and Gateway configuration for the VM.
20
+
- Ability to add multiple network cards for the VM
21
+
- Ability to choose vSphere resource pool or fall back to Cluster/ESXi root resource pool.
22
+
- Ability to deploy Windows images to WorkGroup or Domain.
23
+
- Ability to output VM names and IPs per module.
24
+
- Ability assign tags and custom variables.
25
+
- Ability to configure advance features for the vm.
26
+
- Ability to deploy either a datastore or a datastore cluster.
27
+
- Ability to enable cpu and memory hot plug features for the VM.
27
28
28
29
> Note: For module to work it needs number of required variables corresponding to an existing resources in vSphere. Please refer to variable section for the list of required variables.
29
30
@@ -36,30 +37,30 @@ You can also download the entire module and use your own predefined variables to
36
37
```hcl
37
38
module "example-server-linuxvm" {
38
39
source = "Terraform-VMWare-Modules/vm/vsphere"
39
-
version = "1.0.0"
40
+
version = "1.0.2"
40
41
vmtemp = "TemplateName"
41
42
instances = 1
42
43
vmname = "example-server-windows"
43
44
vmrp = "esxi/Resources"
44
-
network_cards = ["Name of the POrt Group in vSphere"]
45
+
network_cards = ["Name of the Port Group in vSphere"]
45
46
ipv4 = {
46
-
"Name of the POrt Group in vSphere" = ["10.0.0.1"] # To use DHCP create Empty list for each instance
47
+
"Name of the Port Group in vSphere" = ["10.0.0.1"] # To use DHCP create Empty list for each instance
47
48
}
48
49
dc = "Datacenter"
49
50
datastore = "Data Store name(use ds_cluster for datastore cluster)"
50
51
}
51
52
52
53
module "example-server-windowsvm" {
53
54
source = "Terraform-VMWare-Modules/vm/vsphere"
54
-
version = "1.0.0"
55
+
version = "1.0.2"
55
56
vmtemp = "TemplateName"
56
57
is_windows_image = "true"
57
58
instances = 1
58
59
vmname = "example-server-windows"
59
60
vmrp = "esxi/Resources"
60
-
network_cards = ["Name of the POrt Group in vSphere"]
61
+
network_cards = ["Name of the Port Group in vSphere"]
61
62
ipv4 = {
62
-
"Name of the POrt Group in vSphere" = ["10.0.0.1"] # To use DHCP create Empty list for each instance
63
+
"Name of the Port Group in vSphere" = ["10.0.0.1"] # To use DHCP create Empty list for each instance
63
64
}
64
65
dc = "Datacenter"
65
66
datastore = "Data Store name(use ds_cluster for datastore cluster)"
@@ -74,22 +75,22 @@ There are number of switches defined in the module, where you can use to enable
74
75
75
76
### Main Feature Switches
76
77
77
-
* You can use `is_windows_image = "true"` to set the customization type to Windows (By default it is set to Linux customization)
78
-
* You can use `data_disk_size_gb = [20,30]` to add one additional disk (Supported in both Linux and Windows deployment)
79
-
* Above switch will create two additional disk of capacity 10 and 30gb for the VM.
80
-
* You can include `thin_provisioned` switch to define disk type for each additional disk.
81
-
* You can use `windomain = "somedomain.com"` to join a windows server to AD domain.
82
-
* Requires following additional variables
83
-
*`domainuser` Domain account with necessary privileges to join a computer to the domain.
84
-
*`domainpass` Domain user password.
85
-
*`is_windows_image` needs to be set to `true` to force the module to use Windows customization.
78
+
- You can use `is_windows_image = "true"` to set the customization type to Windows (By default it is set to Linux customization)
79
+
- You can use `data_disk_size_gb = [20,30]` to add additional data disks (Supported in both Linux and Windows deployment)
80
+
- Above switch will create two additional disk of capacity 10 and 30gb for the VM.
81
+
- You can include `thin_provisioned` switch to define disk type for each additional disk.
82
+
- You can use `windomain = "somedomain.com"` to join a windows server to AD domain.
83
+
- Requires following additional variables
84
+
-`domainuser` Domain account with necessary privileges to join a computer to the domain.
85
+
-`domainpass` Domain user password.
86
+
-`is_windows_image` needs to be set to `true` to force the module to use Windows customization.
86
87
87
88
Below is an example of windows deployment with some of the available feature sets.
88
89
89
90
```hcl
90
91
module "example-server-windowsvm-advanced" {
91
92
source = "Terraform-VMWare-Modules/vm/vsphere"
92
-
version = "1.0.0"
93
+
version = "1.0.2"
93
94
dc = "Datacenter"
94
95
vmrp = "cluster/Resources" #Works with ESXi/Resources
Copy file name to clipboardExpand all lines: examples/linux/README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,21 +13,21 @@ Following example contains the bare minimum options to be configured for the Lin
13
13
```hcl
14
14
module "example-server-linuxvm" {
15
15
source = "Terraform-VMWare-Modules/vm/vsphere"
16
-
version = "1.0.0"
16
+
version = "1.0.2"
17
17
vmtemp = "TemplateName"
18
18
instances = 1
19
19
vmname = "example-server-windows"
20
-
vmrp = "esxi/Resources"
21
-
network_cards = ["Name of the POrt Group in vSphere"]
20
+
vmrp = "esxi/Resources"
21
+
network_cards = ["Name of the Port Group in vSphere"]
22
22
ipv4 = {
23
-
"Name of the POrt Group in vSphere" = ["10.0.0.1"] # To use DHCP create Empty list for each instance
23
+
"Name of the Port Group in vSphere" = ["10.0.0.1"] # To use DHCP create Empty list for each instance
24
24
}
25
25
dc = "Datacenter"
26
-
datastore = "Data Store name(use ds_cluster for datastore cluster)"
26
+
datastore = "Data Store name(use ds_cluster for datastore cluster)"
27
27
}
28
28
```
29
29
30
-
### Example of Advanced Linux VM Customization
30
+
### Example of Advanced Linux VM Customization
31
31
32
32
Below example will deploy 2 instance of a virtual machine from a linux template. The virtual machines are configured to use 2 network cards with 2 additional disk.
33
33
@@ -36,7 +36,7 @@ Below example will deploy 2 instance of a virtual machine from a linux template.
0 commit comments