-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
214 lines (173 loc) · 5.15 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
208
209
210
211
212
213
214
/**
* Copyright 2019 Taito United
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* Labeling */
variable "name" {
type = string
description = "Name that groups all the created resources together. Preferably globally unique to avoid naming conflicts."
}
/* DO provider */
variable "do_token" {
type = string
description = "Digital Ocean personal access token."
}
variable "spaces_access_id" {
type = string
description = "Digital Ocean Spaces access id."
}
variable "spaces_secret_key" {
type = string
description = "Digital Ocean Spaces secret key."
}
variable "region" {
type = string
description = "Digital Ocean region."
}
/* Settings */
variable "email" {
type = string
description = "Email address for DevOps support."
}
/* Buckets */
variable "state_bucket" {
type = string
default = ""
description = "Name of storage bucket used for storing remote Terraform state."
}
/* Helm */
variable "helm_enabled" {
type = bool
default = "false"
description = "Installs helm apps if set to true. Should be set to true only after Kubernetes cluster already exists."
}
variable "helm_nginx_ingress_classes" {
type = list(string)
default = []
description = "NGINX ingress class for each NGINX ingress installation. Provide multiple if you want to install multiple NGINX ingresses."
}
variable "helm_nginx_ingress_replica_counts" {
type = list(string)
default = []
description = "Replica count for each NGINX ingress installation. Provide multiple if you want to install multiple NGINX ingresses."
}
/* Kubernetes */
variable "kubernetes_name" {
type = string
default = ""
description = "Name for the Kubernetes cluster."
}
variable "kubernetes_context" {
type = string
default = ""
description = "Kubernetes context. Value of var.name is used by default."
}
variable "kubernetes_version" {
type = string
default = ""
description = "Kubernetes version"
}
variable "kubernetes_node_size" {
type = string
default = "s-2vcpu-2gb"
description = "Size of Kubernetes nodes."
}
# variable "kubernetes_node_count" {
# type = number
# default = 1
# description = "Amount of Kubernetes nodes."
# }
variable "kubernetes_autoscale" {
type = bool
default = "false"
description = "Autoscaling on or off."
}
variable "kubernetes_min_nodes" {
type = number
default = 1
description = "Minimum number of nodes."
}
variable "kubernetes_max_nodes" {
type = number
default = 3
description = "maximum number of nodes."
}
variable "kubernetes_registry_name" {
type = string
default = "Smart48"
description = "container registry name."
}
variable "kubernetes_registry_tier" {
type = string
default = "basic"
description = "container registry tier."
}
/* Postgres */
variable "postgres_instances" {
type = list(string)
default = []
description = "Name for each PostgreSQL cluster. Provide multiple if you require multiple PostgreSQL clusters."
}
variable "postgres_node_sizes" {
type = list(string)
default = []
description = "Node dize for each PostgreSQL cluster. Provide multiple if you require multiple clusters."
}
variable "postgres_node_counts" {
type = list(string)
default = []
description = "Node count for each PostgreSQL cluster. Provide multiple if you require multiple clusters."
}
/* MySQL */
variable "mysql_version" {
type = string
default = ""
description = "MySQL Version"
}
variable "mysql_instances" {
type = list(string)
default = []
description = "Name for each MySQL cluster. Provide multiple if you require multiple clusters."
}
variable "mysql_node_sizes" {
type = list(string)
default = []
description = "Node size for each MySQL cluster. Provide multiple if you require multiple clusters."
}
variable "mysql_node_counts" {
type = list(string)
default = []
description = "Node count for each MySQL cluster. Provide multiple if you require multiple clusters."
}
/* Redis */
variable "redis_version" {
type = string
default = ""
description = "Redis Version"
}
variable "redis_instances" {
type = list(string)
default = []
description = "Name for each Redis cluster. Provide multiple if you require multiple PostgreSQL clusters."
}
variable "redis_node_sizes" {
type = list(string)
default = []
description = "Node size for each Redis cluster. Provide multiple if you require multiple clusters."
}
variable "redis_node_counts" {
type = list(string)
default = []
description = "Node count for each Redis cluster. Provide multiple if you require multiple clusters."
}