-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
132 lines (129 loc) · 3.99 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
variable "vmname" {
description = "The name of the virtual machine used to deploy the vms"
default = "terraformvm"
}
variable "vmnamesuffix" {
description = "vmname suffix after numbered index coming from instance variable"
default = ""
}
variable "vmtemp" {
description = "Name of the template available in the vSphere"
}
variable "is_windows_image" {
description = "Boolean flag to notify when the custom image is windows based."
default = "false"
}
variable "data_disk_size_gb" {
description = "Storage data disk size size"
default = 20
}
variable "data_disk" {
type = "string"
description = "Set to true to add a datadisk."
default = "false"
}
variable "instances" {
description = "number of instances you want deploy from the template"
default = 1
}
variable "cpu_number" {
description = "number of CPU (core per CPU) for the VM"
default = 2
}
variable "ram_size" {
description = "VM RAM size in megabytes"
default = 4096
}
variable "net01" {
description = "(Required)VLAN name where the VM should be deployed"
}
variable "net02" {
description = "(Required)VLAN name where the VM should be deployed"
}
variable "net03" {
description = "(Required)VLAN name where the VM should be deployed"
}
variable "net01-ipv4submask" {
description = "ipv4 Subnet mask"
default = 24
}
variable "net02-ipv4submask" {
description = "ipv4 Subnet mask"
default = 24
}
variable "net03-ipv4submask" {
description = "ipv4 Subnet mask"
default = 24
}
variable "net01-ip" {
description = "host(VM) IP address in list format, support more than one IP. Should correspond to number of instances"
type = "list"
default = [""]
}
variable "net02-ip" {
description = "host(VM) IP address in list format, support more than one IP. Should correspond to number of instances"
type = "list"
default = [""]
}
variable "net03-ip" {
description = "host(VM) IP address in list format, support more than one IP. Should correspond to number of instances"
type = "list"
default = [""]
}
variable "vmdomain" {
description = "default VM domain for linux guest customization or Windows when join_windomain is selected"
default = "Development"
}
variable "dc" {
description = "Name of the datacenter you want to deploy the VM to"
}
variable "vmrp" {
description = "Cluster resource pool that VM will be deployed to. you use following to choose default pool in the cluster (esxi1) or (Cluster)/Resources"
}
variable "ds" {
description = "Datastore to deploy the VM."
}
variable "vmfolder" {
default = "Discovered virtual machine"
}
variable "vmgateway" {
description = "VM gateway to set during provisioning"
default = ""
}
variable "vmdns" {
type = "list"
default = []
}
variable "winadminpass" {
description = "The administrator password for this virtual machine.(Required) when using join_windomain option"
default = "Str0ngP@ssw0rd!"
}
variable "join_windomain" {
description = "Boolean flag to set when want join windows server to AD"
default = "false"
}
variable "domainuser" {
description = "Domain admin user to join the server to AD.(Required) when using join_windomain option"
default = "Domain User"
}
variable "domainpass" {
description = "Doamin User pssword to join the server to AD.(Required) when using join_windomain option"
default = "Str0ngP@ssw0rd!"
}
variable "orgname" {
description = "Organization name for when joining windows server to AD"
default = "Terraform"
}
variable "run_once" {
description = "List of Comamnd to run during first logon (Automatic login set to 1)"
type = "list"
default = []
}
variable "productkey" {
description = "Product key to be used during windows customization. Defualt set to win2k16 KMS"
default = "WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY"
}
variable "template_with_dual_disk" {
description = "Boolean Control Flag to deploy VMs based on Image with 2 disk configured"
default = "false"
}