-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkersvariables.tf
129 lines (108 loc) · 3.48 KB
/
workersvariables.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
################################################################################
# HBASE WORKER GROUP IMAGE VARIABLES
################################################################################
variable "workers_image_id" {
type = string
description = "The Hbase worker node image id, if this is provided then it will override other image parameters below"
default = "img-eb30mz89"
}
variable "workers_image_type" {
type = list(string)
description = "The Hbase worker node image type, this parameter and image_name_regex are used only if image_id is set to empty value"
default = ["PUBLIC_IMAGE"]
}
variable "workers_image_name_regex" {
type = string
description = "The Hbase worker node image id, if this is provided then it will override other image parameters below"
default = "Solana"
}
################################################################################
# HBASE WORKER GROUP INSTANCE VARIABLES
################################################################################
variable "workers_instance_count" {
type = number
description = "The number of Hbase worker nodes to bootstrap"
default = 5
}
variable "workers_instance_name" {
type = string
description = "The instace name prefix"
default = "hbase-worker"
}
variable "workers_instance_project" {
type = number
description = "The project the instance belongs to"
default = 0
}
variable "workers_instance_type" {
type = string
description = "The instace type"
default = "SA5.MEDIUM4"
}
variable "workers_instance_charge_type" {
type = string
description = "The charge type of instance"
default = "POSTPAID_BY_HOUR"
}
variable "workers_instance_charge_type_prepaid_period" {
type = number
description = "The tenancy (time unit is month) of the prepaid instance"
default = 1
}
variable "workers_instance_charge_type_prepaid_renew_flag" {
type = string
description = "Auto renewal flag"
default = "NOTIFY_AND_MANUAL_RENEW"
}
variable "workers_force_delete" {
type = bool
description = "Indicate whether to force delete the instance"
default = false
}
variable "workers_subnet_id" {
type = string
description = "The subnet id for the instance"
default = ""
}
variable "workers_availability_zone" {
type = string
default = "The instance availability zone"
description = ""
}
variable "workers_instance_tags" {
type = map(string)
description = "Specify one or more tags for the instance"
default = {
"network" : "tencent",
"type" : "worker",
}
}
################################################################################
# HBASE WORKER GROUP INSTANCE DISKS
################################################################################
variable "workers_system_disk_type" {
type = string
description = "The instace system disk type"
default = "CLOUD_BSSD"
}
variable "workers_system_disk_size" {
type = number
description = "The instace system disk size"
default = 50
}
# DATA DISK
variable "workers_data_disk_type" {
type = string
description = "The instace workers disk type"
default = "CLOUD_BSSD"
}
variable "workers_data_disk_size" {
type = number
description = "The instace workers disk size"
default = 2000
}
variable "workers_data_disk_encrypt" {
type = bool
description = "Enable workers disk encryption"
default = false
}