-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
82 lines (65 loc) · 1.56 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
# TYPE: ZONAL (better for performance) OR REGIONAL (for HA)
variable "is_ha" {
type = bool
default = true
}
# NUMBER OF VM PER ZONE
variable "client_node_per_zone" {
type = number
default = 1
description = "Number of client node per zone"
}
variable "storage_node_per_zone" {
type = number
default = 1
description = "Number of storage node per zone"
}
# DISK OPTIONS
variable "disk_count_per_vm" {
type = number
default = 1
description = "Number of additional disks for GlusterFS in each zone"
}
variable "disk_type" {
type = string
default = "network-ssd"
description = "Type of GlusterFS disk"
}
variable "disk_size" {
type = number
default = 1024
description = "Disk size GB"
}
variable "disk_block_size" {
type = number
default = 4096
description = "Disk block size"
}
# CLIENT VM RESOURCES
variable "client_cpu_count" {
type = number
default = 4
description = "Number of CPU in Storage Node"
}
variable "client_memory_count" {
type = number
default = 8
description = "RAM (GB) size in Storage Node"
}
# STORAGE VM RESOURCES
variable "storage_cpu_count" {
type = number
default = 8
description = "Number of CPU in Storage Node"
}
variable "storage_memory_count" {
type = number
default = 8
description = "RAM (GB) size in Storage Node"
}
# SSH KEY
variable "local_pubkey_path" {
type = string
default = "~/.ssh/id_ed25519.pub"
description = "Local public key to access the client"
}