-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
155 lines (128 loc) · 2.83 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
variable "allow_external_rdp" {
type = bool
description = "Allow external RDP connections"
default = false
}
variable "allow_external_ssh" {
type = bool
description = "Allow external SSH connections"
default = false
}
variable "cores_per_socket" {
type = number
description = "Number of cores per socket"
default = 1
}
variable "cpus" {
type = number
description = "Number of virtual CPUs"
}
variable "data_disks" {
type = list(object({
letter = string
size = number
storage_profile = string
block_size = string
}))
description = "VM hard drives"
default = []
}
variable "domain_fqdn" {
type = string
description = "AD domain FQDN"
default = null
}
variable "domain_password" {
type = string
description = "Domain user password"
default = null
}
variable "domain_user" {
type = string
description = "AD domain user name"
default = null
}
variable "external_ip" {
type = string
description = "VM external IP address"
default = ""
}
variable "external_rdp_port" {
type = string
description = "External RDP port"
default = ""
}
variable "external_ssh_port" {
type = string
description = "External SSH port"
default = ""
}
variable "local_admin_password" {
type = string
description = "Local administrator account password"
default = null
sensitive = true
}
variable "media" {
type = object({
catalog = string
name = string
})
default = null
description = "Media for VM CD/DVD drive"
}
variable "name" {
type = string
description = "VM name"
validation {
condition = length(var.name) <= 15
error_message = "Length must be less or equal 15 characters."
}
}
variable "nics" {
type = list(object({
network = string
ip = string
}))
description = "Additional VM hard drives"
}
variable "ou" {
type = string
description = "Organizational unit for machine account placement"
default = null
}
variable "ram" {
type = number
description = "Memory amount in gigabytes"
}
variable "storage_profile" {
type = string
description = "VM storage profile"
default = null
}
variable "system_disk_size" {
type = number
description = "VM system disk size in gigabytes"
default = 40
}
variable "system_disk_bus" {
type = string
description = "VM system disk bus type"
default = "sas"
}
variable "template" {
type = object({
catalog = string
name = string
})
description = "Windows VM template"
}
variable "vapp" {
type = string
description = "vAPP name"
}
variable "zabbix_server" {
type = string
description = "Zabbix server IP/FQDN"
default = ""
}