forked from getSurreal/terraform-vsphere-vm-cloud-init
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
142 lines (118 loc) · 3.61 KB
/
Copy pathvariables.tf
File metadata and controls
142 lines (118 loc) · 3.61 KB
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
133
134
135
136
137
138
139
140
141
142
variable "datacenter" {
description = "The name of the datacenter to deploy this virtual machine to."
type = string
}
variable "cluster" {
description = "The name of the cluster to deploy this virtual machine to."
type = string
}
variable "datastore" {
description = "The name of the datastore to deploy this virtual machine to."
type = string
}
variable "network" {
description = "The name of the network to use for this virtual machine."
type = string
}
variable "network_type" {
description = "The network type for each network interface."
type = string
default = null
}
variable "vapp_properties" {
description = "The network type for each network interface."
type = any
}
variable "vm_template" {
description = "The name of the template to cone."
type = string
}
variable "vm_name" {
description = "The name of the virtual machine."
type = string
}
variable "vm_folder" {
description = "The name of the folder for this virtual machine."
type = string
default = ""
}
variable "num_cpus" {
description = "The number of CPUs for this virtual machine."
type = number
default = 2
}
variable "cpu_reservation" {
description = "The amount of CPU (in MHz) guaranteed for this virtual."
type = number
default = null
}
variable "memory" {
description = "The amount of memory (in MB) for the virtual machine."
type = number
default = 4096
}
variable "num_cores_per_socket" {
description = "The number of cores to distribute among the CPUs in this virtual machine. If specified, the value supplied to num_cpus must be evenly divisible by this value."
type = number
default = 1
}
variable "cpu_hot_add_enabled" {
description = "Allow CPUs to be added to this virtual machine while it is running."
type = bool
default = null
}
variable "cpu_hot_remove_enabled" {
description = "Allow CPUs to be removed to this virtual machine while it is running."
type = bool
default = null
}
variable "memory_hot_add_enabled" {
description = "Allow memory to be added to this virtual machine while it is running."
type = bool
default = null
}
variable "memory_reservation" {
description = "The amount of memory (in MB) guaranteed for this virtual machine."
type = number
default = null
}
variable "scsi_type" {
description = "Type of scsi controller. acceptable values lsilogic, pvscsi."
type = string
default = ""
}
variable "enable_disk_uuid" {
description = "Expose the UUIDs of attached virtual disks to the virtual machine, allowing access to them in the guest."
type = bool
default = true
}
variable "thin_provisioned" {
description = "Space for the vmdk disk allocated as needed."
type = bool
default = true
}
variable "eagerly_scrub" {
description = "All allocated space for the vmdk is zeroed out. If enabled, thin provisioned must be false."
type = bool
default = false
}
variable "disk_sizes" {
description = "List of disk sizes (in GB) to override for the template disks."
type = list(number)
default = null
}
variable "additional_disks" {
description = "Disks to add in addition to the disks in the template."
type = map(map(string))
default = {}
}
variable "content_library" {
description = "Name of content library that contains the required template"
type = string
default = null
}
variable "vmrp" {
description = "Name of an existing resource pool to place the VMs"
type = string
default = null
}