-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
207 lines (172 loc) · 4.65 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
196
197
198
199
200
201
202
203
204
205
206
207
########################################
# General settings
########################################
variable "cluster_name" {
type = string
description = "The name of the cluster."
}
variable "qemu_agent" {
type = bool
default = true
description = "Enable the QEMU agent for the virtual machines."
}
variable "os_type" {
type = string
description = "The type of the operating system. Options: ubuntu, centos, cloud-init"
}
variable "cloudinit_user" {
type = string
default = null
description = "The cloud-init user"
}
variable "cloudinit_password" {
type = string
default = null
description = "The cloud-init user password"
}
variable "cloudinit_sshkey" {
type = string
default = null
description = "The cloud-init user ssh key"
}
variable "cloudinit_cdrom" {
type = string
default = null
description = "The cloud-init cdrom storage name"
}
variable "hastate" {
type = string
default = null
description = "The HA state of the virtual machines. Options: started, stopped, enabled, disabled, or ignored"
}
variable "scsihw" {
type = string
default = null
description = "The SCSI controller type. Options: lsi, virtio-scsi-pci, virtio-scsi-single"
}
variable "bootdisk" {
type = string
default = "scsi0"
description = "The boot disk"
}
variable "ipconfig0_ip" {
type = string
default = null
}
variable "ipconfig0_cidr" {
type = string
default = null
}
variable "ipconfig0_gw" {
type = string
default = null
}
variable "nameserver" {
type = string
default = null
}
variable "tags" {
type = list(string)
default = []
description = "The tags to assign to the virtual machines."
}
########################################
# Master settings
########################################
variable "master_mapping" {
type = list(object({
node = string
storage_name = string
hagroup = string
ipconfig0_ip = string
}))
}
variable "master_vm_template" {
type = string
description = "The name of the template to use for the master nodes."
}
variable "master_sockets" {
type = number
default = 1
description = "The number of sockets to allocate to each master node."
}
variable "master_cores" {
type = number
default = 4
description = "The number of cores to allocate to each master node."
}
variable "master_vcpus" {
type = string
default = "0"
description = "The number of vcpus to allocate to each master node."
}
variable "master_cpu" {
type = string
default = "host"
description = "The CPU type to allocate to each master node. Options: host, kvm64, kvm32, core2duo, pentium, phenom, qemu64, qemu32"
}
variable "master_memory" {
type = number
default = 4096
description = "The amount of memory to allocate to each master node."
}
variable "master_disk_size" {
type = number
default = 100
description = "The size of the root disk to allocate to each master node."
}
variable "master_description" {
type = string
default = "Master node"
description = "The description to use for the master nodes."
}
########################################
# Worker settings
########################################
variable "worker_mapping" {
type = list(object({
node = string
storage_name = string
hagroup = string
ipconfig0_ip = string
}))
}
variable "worker_vm_template" {
type = string
description = "The name of the template to use for the worker nodes."
}
variable "worker_sockets" {
type = number
default = 1
description = "The number of sockets to allocate to each worker node."
}
variable "worker_cores" {
type = number
default = 4
description = "The number of cores to allocate to each worker node."
}
variable "worker_vcpus" {
type = string
default = "0"
description = "The number of vcpus to allocate to each worker node."
}
variable "worker_cpu" {
type = string
default = "host"
description = "The CPU type to allocate to each worker node. Options: host, kvm64, kvm32, core2duo, pentium, phenom, qemu64, qemu32"
}
variable "worker_memory" {
type = number
default = 4096
description = "The amount of memory to allocate to each worker node."
}
variable "worker_disk_size" {
type = number
default = 100
description = "The size of the root disk to allocate to each worker node."
}
variable "worker_description" {
type = string
default = "Worker node"
description = "The description to use for the worker nodes."
}