-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
78 lines (78 loc) · 2.27 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
variable "libvirt_uri" {
type = string
default = "qemu:///system"
description = "libvirt connection uri"
}
variable "image_url" {
type = string
default = "https://cloud-images.ubuntu.com/%RELEASE%/current/%RELEASE%-server-cloudimg-amd64.img"
description = "cloud-images URL %RELEASE% will be regex replaced with $image_release (default ubuntu cloud-images)"
}
variable "image_release" {
type = string
default = "focal"
description = "image release name used in filenames + image_url regex replace (default focal)"
}
variable "hostname" {
type = string
description = "hostname used in filenames + cloud-init"
}
variable "domainname" {
type = string
description = "domainname used to generate fqdn for cloud-init"
}
variable "username" {
type = string
default = "ubuntu"
description = "username for cloud-init"
}
variable "ssh_public_key" {
type = string
default = "~/.ssh/id_rsa.pub"
description = "ssh public keyfile for cloud-init (default ~/.ssh/id_rsa.pub)"
}
variable "networks" {
type = list(string)
default = ["virbr0"]
description = "list of network bridges to attach to (default virbr0)"
}
variable "vram" {
type = number
default = 2 * 1024
description = "RAM of the VM (default 2GB)"
}
variable "vcpu" {
type = number
default = 1
description = "vCPUs of the VM (default 1)"
}
variable "volume_format" {
type = string
default = "qcow2"
description = "volume file format, used for cloud-images + local files (default qcow2)"
}
variable "volume_pool" {
type = string
default = "default"
description = "volume pool to save local files to (default default)"
}
variable "volume_size_root" {
type = number
default = 10 * 1024 * 1024 * 1024
description = "volume size for root disk (default 10GB)"
}
variable "volume_data_enabled" {
type = bool
default = false
description = "volume for data disk enabled? (default false)"
}
variable "volume_size_data" {
type = number
default = 50 * 1024 * 1024 * 1024
description = "volume size for data disk (default 50GB)"
}
variable "autostart" {
type = bool
default = false
description = "autostart vm (default false)"
}