-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
61 lines (53 loc) · 1.2 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
# Project configuration
variable "project_name" {
description = "Common prefix used by all the VMs"
type = string
default = "testproj"
}
variable "cidr_networks" {
description = "Network ranges (IPv4 and IPv6) in CIDR format"
type = list(any)
default = ["10.11.12.0/24"]
}
variable "project_machines" {
description = "Map of project names to configuration."
type = map(any)
default = {
lnx1 = {
memory = 1024,
vcpu = 1,
distro = "debian_custom"
qemu_agent = false
disk_size = 20,
filesystems = {
main = {
source = "/tmp",
readonly = true
}
}
}
lnx2 = {
memory = 1024,
vcpu = 1,
distro = "debian_custom"
qemu_agent = false,
disk_size = 20,
filesystems = {
}
}
lnx3 = {
memory = 1024,
vcpu = 1,
distro = "arch_custom"
qemu_agent = false
disk_size = 20,
filesystems = {
}
}
}
}
variable "ssh_pubkey_file" {
description = "File with the SSH public key to install in the machines"
type = string
default = "~/.ssh/id_ed25519.pub"
}