forked from ArmanTaheriGhaleTaki/terraform-libvirt-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
41 lines (39 loc) · 864 Bytes
/
variables.tf
File metadata and controls
41 lines (39 loc) · 864 Bytes
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
variable "ubuntu_18_img_url" {
description = "Path or URL to the Ubuntu image"
default = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
}
variable "disk_size" {
description = "Disk size in bytes for each VM"
type = number
default = 10737418240
}
variable "vms" {
description = "Map of VM configurations"
type = map(object({
vm_hostname = string
memory = number
vcpu = number
}))
default = {
"vm1" = {
vm_hostname = "vm1"
memory = 2048
vcpu = 2
},
"vm2" = {
vm_hostname = "vm2"
memory = 2048
vcpu = 2
},
"vm3" = {
vm_hostname = "vm3"
memory = 2048
vcpu = 2
},
"vm4" = {
vm_hostname = "vm1"
memory = 2048
vcpu = 2
}
}
}