-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
75 lines (64 loc) · 1.66 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
variable "vm_name" {
description = "Name of the virtual machine"
type = string
}
variable "memory" {
description = "Memory size in MB"
type = number
}
variable "vcpu" {
description = "Number of virtual CPUs"
type = number
}
variable "disk_size" {
description = "Disk size in GB"
type = number
}
variable "username" {
description = "Username for the VM"
type = string
}
variable "password" {
description = "Password for the VM user"
type = string
}
variable "cloud_image_url" {
description = "URL of the cloud image to use"
type = string
default = "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img"
}
variable "cloud_image_name" {
description = "Name for the downloaded cloud image"
type = string
default = "ubuntu-cloudimg-focal.qcow2"
}
variable "bridge1_name" {
description = "Name of the first bridge to connect to (e.g., br0)"
type = string
}
variable "bridge2_name" {
description = "Name of the second bridge to connect to (e.g., br1)"
type = string
}
variable "vm_interface1_config" {
description = "Network configuration for the first interface (connected to bridge1)"
type = object({
dhcp4 = bool
addresses = list(string)
gateway4 = string
nameservers = object({
addresses = list(string)
})
})
}
variable "vm_interface2_config" {
description = "Network configuration for the second interface (connected to bridge2)"
type = object({
dhcp4 = bool
addresses = list(string)
gateway4 = string
nameservers = object({
addresses = list(string)
})
})
}