-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
64 lines (60 loc) · 1.3 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
variable "hvprovider" {
type = object({
user = string
password = string
ip = string
port = number
})
default = {
user = "hvadmin"
password = "p@ssword1234"
ip = "127.0.0.1"
port = 5986
}
}
variable "machine" {
type = object({
name = string
processor = number
memory_gb = number
notes = string
})
default = {
name = "my_awesome_machine"
processor = 4
memory_gb = 4
notes = "this is a superb test"
}
description = "The virtual machine to be created"
}
variable "iso_path" {
type = string
default = "C:\\ISO\\WindowsServer2019.iso"
description = "Path of the iso file to be loaded into the virtual machine"
}
variable "vhdx" {
type = object({
path = string
size_gb = number
})
default = {
path = "C:\\Virtual Machines\\"
size_gb = 25
}
description = "Vhdx file to be created for the virtual machine"
}
variable "network" {
type = object({
name = string
switch_name = string
switch_type = string
net_adapter_names = list(string)
})
default = {
name = "wan"
switch_name = "VM"
switch_type = "External"
net_adapter_names = ["Ethernet"]
}
description = "Network card to be used by the virtual machine"
}