-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
195 lines (164 loc) · 3.21 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# DEFAULTS ARE *NOT* TO BE USED IN PRODUCTION AND ARE VERY INSECURE
variable "name" {
type = string
}
variable "domain" {
type = string
default = null
nullable = true
}
variable "cloudinit_image" {
type = string
default = "https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-generic-amd64.qcow2"
}
variable "libvirt_pool" {
type = string
default = "default"
nullable = false
}
variable "disk_passthroughs" {
type = list(string)
default = []
nullable = false
}
variable "iso_urls" {
type = list(string)
default = []
nullable = false
}
variable "iso_paths" {
type = list(string)
default = []
nullable = false
}
variable "ssh_keys" {
type = list(string)
default = []
nullable = false
}
variable "password_auth" {
type = bool
default = true
nullable = false
}
variable "disable_root" {
type = bool
default = false
nullable = false
}
variable "allow_root_ssh_pwauth" {
type = bool
default = true
nullable = false
}
variable "root_password" {
type = string
default = "root"
nullable = false
}
variable "nameservers" {
type = list(string)
default = []
nullable = false
}
variable "libvirt_external_interface" {
type = string
default = null
}
variable "cloudinit_use_user_data" {
type = bool
default = true
nullable = false
}
variable "cloudinit_use_network_data" {
type = bool
default = true
nullable = false
}
variable "cloudinit_custom_user_data" {
type = string
default = "# No user data\n"
nullable = false
}
variable "cloudinit_custom_network_data" {
type = string
default = "# No network user data\n"
nullable = false
}
variable "network_interfaces" {
type = list(object({
name = optional(string)
network_id = optional(string)
network_name = optional(string)
macvtap = optional(string)
hostname = optional(string)
wait_for_lease = optional(bool)
dhcp = optional(bool)
ip = optional(string)
gateway = optional(string)
nameservers = optional(list(string))
mac = optional(string)
additional_routes = optional(list(object({
network = string
gateway = string
})))
}))
default = []
nullable = false
}
variable "memory" {
type = number
default = 2048
nullable = false
}
variable "vcpu" {
type = number
default = 2
nullable = false
}
variable "disk_size" {
type = number
default = 64424509440 # 60GB
nullable = false
}
variable "spice_enabled" {
type = bool
default = false
nullable = false
}
variable "autostart" {
type = bool
default = true
nullable = false
}
variable "ansible_name" {
type = string
default = ""
nullable = false
}
variable "ansible_host" {
type = string
default = ""
nullable = false
}
variable "ansible_user" {
type = string
default = "root"
nullable = false
}
variable "ansible_ssh_pass" {
type = string
default = ""
nullable = false
}
variable "ansible_groups" {
type = list(string)
default = []
nullable = false
}
variable "ansible_ssh_private_key_file" {
type = string
description = "Defaults to null."
default = ""
nullable = false
}