forked from petervansickel/terraform-icp-ibmcloud
-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
250 lines (187 loc) · 5.62 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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
##### SoftLayer/IBMCloud Access Credentials ######
variable "key_name" {
description = "Name or reference of SSH key to provision IBM Cloud instances with"
default = []
}
##### Common VM specifications ######
# Provide values for these in terraform.tfvars
variable "datacenter" { }
variable "private_vlan_router_hostname" {
default = ""
description = "Private VLAN router to place all VMs behind. e.g. bcr01a. See Network > IP Management > VLANs in the portal. Leave blank to let the system choose."
}
variable "private_vlan_number" {
default = -1
description = "Private VLAN number to place all VMs on. e.g. 1211. See Network > IP Management > VLANs in the portal. Leave blank to let the system choose."
}
variable "public_vlan_router_hostname" {
default = ""
description = "Public VLAN router to place all VMs behind. e.g. fcr01a. See Network > IP Management > VLANs in the portal. Leave blank to let the system choose."
}
variable "public_vlan_number" {
default = -1
description = "Public VLAN number to place all VMs on. e.g. 1171. See Network > IP Management > VLANs in the portal. Leave blank to let the system choose."
}
variable "deployment" {
description = "Identifier prefix added to the host names."
default = "icp"
}
variable "os_reference_code" {
description = "IBM Cloud OS reference code to determine OS, version, word length"
default = "UBUNTU_16_64"
}
variable "domain" {
description = "Specify domain name to be used for linux customization on the VMs, or leave blank to use <instance_name>.icp"
default = ""
}
variable "private_network_only" {
description = "Specify false to place the cluster on the public network. If public network access is disabled, you will require a NAT gateway device like a Gateway Appliance on the VLAN."
default = false
}
##### ICP Instance details ######
variable "boot" {
type = "map"
default = {
cpu_cores = "4"
memory = "4096"
disk_size = "100" // GB
docker_vol_size = "100" // GB
local_disk = true
os_reference_code = "UBUNTU_16_64"
network_speed = "1000"
hourly_billing = true
}
}
variable "master" {
type = "map"
default = {
nodes = "3"
cpu_cores = "8"
memory = "16384"
disk_size = "100" // GB
docker_vol_size = "100" // GB
local_disk = false
network_speed = "1000"
hourly_billing = true
}
}
variable "mgmt" {
type = "map"
default = {
nodes = "1"
cpu_cores = "4"
memory = "16384"
disk_size = "100" // GB
docker_vol_size = "100" // GB
local_disk = false
network_speed = "1000"
hourly_billing=true
}
}
variable "proxy" {
type = "map"
default = {
nodes = "3"
cpu_cores = "2"
memory = "4096"
disk_size = "100" // GB
docker_vol_size = "100" // GB
local_disk = false
network_speed= "1000"
hourly_billing = true
}
}
variable "va" {
type = "map"
default = {
nodes = "0"
cpu_cores = "4"
memory = "8192"
disk_size = "100" // GB
docker_vol_size = "100" // GB
local_disk = false
network_speed = "1000"
hourly_billing = true
}
}
variable "worker" {
type = "map"
default = {
nodes = "3"
cpu_cores = "4"
memory = "16384"
disk_size = "100" // GB, 25 or 100
docker_vol_size = "100" // GB
additional_disk = "0" // GB, if you want an additional block device, set to non-zero
local_disk = false
network_speed= "1000"
hourly_billing = true
}
}
variable "fs_audit" {
default = {
type = "Endurance"
size = "20"
hourly_billing = true
iops = 0.25
}
}
variable "fs_registry" {
default = {
type = "Endurance"
size = "100"
hourly_billing = true
iops = 2
}
}
variable "docker_package_location" {
description = "URI for docker package location, e.g. http://<myhost>/icp-docker-17.09_x86_64.bin or nfs:<myhost>/icp-docker-17.09_x86_64.bin"
default = ""
}
variable "image_location" {
description = "URI for image package location, e.g. http://<myhost>/ibm-cloud-private-x86_64-2.1.0.2.tar.gz or nfs:<myhost>/ibm-cloud-private-x86_64-2.1.0.2.tar.gz"
default = ""
}
variable "image_location_user" {
description = "Username if required by image_location i.e. authenticated http source"
default = ""
}
variable "image_location_password" {
description = "Password if required by image_location i.e. authenticated http source"
default = ""
}
variable "icppassword" {
description = "Password for the initial admin user in ICP; blank to generate"
default = ""
}
variable "icp_inception_image" {
description = "ICP image to use for installation"
default = "ibmcom/icp-inception-amd64:3.1.0-ee"
}
variable "cluster_cname" {
default = ""
}
variable "registry_server" {
default = ""
}
variable "registry_username" {
default = ""
}
variable "registry_password" {
default = ""
}
variable "network_cidr" {
description = "Pod network CIDR "
default = "172.20.0.0/16"
}
variable "service_network_cidr" {
description = "Service network CIDR "
default = "172.21.0.0/16"
}
# The following services can be disabled for 3.1
# custom-metrics-adapter, image-security-enforcement, istio, metering, monitoring, service-catalog, storage-minio, storage-glusterfs, and vulnerability-advisor
variable "disabled_management_services" {
description = "List of management services to disable"
type = "list"
default = ["istio", "vulnerability-advisor", "storage-glusterfs", "storage-minio"]
}