-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
87 lines (78 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
76
77
78
79
80
81
82
83
84
85
86
87
variable "volume" {
description = "Libvirt domain volume"
type = object({
name = optional(string)
pool = optional(string)
source = optional(string)
format = optional(string)
})
}
variable "cloudinit" {
description = "Cloudinit image"
type = object({
name = optional(string)
dhcp = optional(bool)
interface_name = optional(string)
})
# default = {
# name = ""
# dhcp = false
# interface_name = ""
# addresses = ""
# gateway = ""
# nameservers = {
# ns1 = ""
# ns2 = ""
# ns3 = ""
# }
# }
}
variable "vm" {
type = object({
user = optional(string)
user_ssh_pub_key = optional(string)
hostname = optional(string)
domain = optional(string)
time_zone = optional(string)
})
}
variable "vault" {
type = object({
address = string
role_id = string
secret_id = string
})
}
variable "domain" {
type = object({
name = optional(string)
memory = optional(string)
vcpu = optional(string)
arch = optional(string)
})
}
variable "network" {
type = object({
id = optional(string)
name = string
mac = optional(string)
wait_for_lease = optional(bool)
})
}
variable "addresses" {
type = list(string)
default = []
}
variable "gateway" {
type = string
default = ""
}
variable "nameservers" {
type = list(string)
default = []
}
variable "provider_libvirt_uri" {
description = "Qemu server uri. Format - qemu+ssh://user@host:2222/system"
type = string
default = "qemu:///system"
}