-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables-ibmcloud.tf
226 lines (190 loc) · 5.91 KB
/
variables-ibmcloud.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
#######################################
# Top-level module variables (required)
#######################################
variable "ibmcloud_api_key" {
type = string
# TODO: Supported on tf 0.14
# sensitive = true
description = "The IAM API key for authenticating with IBM Cloud APIs."
}
variable "ibmcloud_bootstrap_instance_type" {
type = string
description = "Instance type for the bootstrap node. Example: `bx2-4x16`"
default = "bx2-4x16"
}
variable "ibmcloud_cis_crn" {
type = string
description = "The CRN of CIS instance to use."
}
variable "ibmcloud_region" {
type = string
description = "The target IBM Cloud region for the cluster."
}
variable "ibmcloud_master_instance_type" {
type = string
description = "Instance type for the master node(s). Example: `bx2-4x16`"
default = "bx2-4x16"
}
# variable "ibmcloud_master_availability_zones" {
# type = list(string)
# description = "The availability zones in which to create the masters. The length of this list must match master_count."
# }
# variable "ibmcloud_worker_availability_zones" {
# type = list(string)
# description = "The availability zones to provision for workers. Worker instances are created by the machine-API operator, but this variable controls their supporting infrastructure (subnets, routing, dedicated hosts, etc.)."
# }
#######################################
# Top-level module variables (optional)
#######################################
variable "ibmcloud_master_dedicated_hosts" {
type = list(map(string))
description = "(optional) The list of dedicated hosts in which to create the control plane nodes."
default = []
}
variable "ibmcloud_worker_dedicated_hosts" {
type = list(map(string))
description = "(optional) The list of dedicated hosts in which to create the compute nodes."
default = []
}
variable "ibmcloud_extra_tags" {
type = list(string)
description = <<EOF
(optional) Extra IBM Cloud tags to be applied to created resources.
Example: `[ "key:value", "foo:bar" ]`
EOF
default = []
}
variable "ibmcloud_publish_strategy" {
type = string
description = "The cluster publishing strategy, either Internal or External"
default = "External"
# TODO: Supported on tf 0.13
# validation {
# condition = "External" || "Internal"
# error_message = "The ibmcloud_publish_strategy value must be \"External\" or \"Internal\"."
# }
}
variable "ibmcloud_resource_group_name" {
type = string
description = <<EOF
(optional) The name of the resource group for the cluster. If this is set, the cluster is installed to that existing resource group
otherwise a new resource group will be created using cluster id.
EOF
default = ""
}
#######################################
# NC Modifications
#######################################
variable "openshift_cluster_name" {
type = string
description = "The name of the OpenShift cluster"
}
variable "openshift_version" {
type = string
description = "Version of OpenShift to install"
default = "stable-4.10"
}
variable "openshift_base_domain" {
type = string
description = "Base domain for the OpenShift cluster"
}
variable "openshift_pull_secret" {
type = string
description = "Path to the pull secret for the OpenShift cluster. Download from cloud.redhat.com."
}
variable "public_ssh_key" {
type = string
description = "(optional) Path to the public SSH key for the OpenShift cluster."
default = ""
}
variable "airgap_config" {
type = map(string)
description = "(optional) AirGap Configuration for the OpenShift cluster"
default = {
enabled = false
repository = ""
}
}
variable "proxy_config" {
type = map(string)
description = "(optional) Proxy Configuration for the OpenShift cluster"
default = {
enabled = false
httpProxy = "http://user:password@ip:port"
httpsProxy = "http://user:password@ip:port"
noProxy = "ip1,ip2,ip3,.example.com,cidr/mask"
}
}
variable "openshift_cluster_network_cidr" {
type = string
description = "(optional) OpenShift Cluster Network CIDR"
default = "10.128.0.0/14"
}
variable "openshift_service_network_cidr" {
type = string
description = "(optional) OpenShift Service Network CIDR"
default = "172.30.0.0/16"
}
variable "openshift_cluster_network_host_prefix" {
type = number
description = "(optional) OpenShift Cluster Network Host Prefix"
default = 23
}
variable "openshift_machine_cidr" {
type = list(string)
description = "(optional) OpenShift Machine CIDR"
default = [
"10.0.0.0/16"
]
}
variable "openshift_master_count" {
type = string
description = "(optional) OpenShift Master Node Count"
default = 3
}
variable "openshift_node_count" {
type = string
description = "(optional) OpenShift Worker Node Count"
default = 3
}
variable "ibmcloud_worker_instance_type" {
type = string
description = "(optional) OpenShift Worker Node Instance Type"
default = "bx2-4x16"
}
variable "openshift_trust_bundle" {
type = string
description = "(optional) Path to OpenShift additional Trust Bundle"
default = ""
}
variable "network_resource_group_name" {
type = string
description = "(optional) preexisting IBM Cloud resrouce group name for network resources"
default = ""
}
variable "destroy_bootstrap" {
type = bool
description = "Destroy the bootstrap node"
default = false
}
variable "rhcos_image_url" {
type = string
description = "(optional) URL of RHCOS image"
default = ""
}
variable "deploy_infra_nodes" {
type = bool
default = false
}
variable "deploy_storage_nodes" {
type = bool
default = false
}
variable "infra_vm_type" {
type = string
default = "bx2-4x16"
}
variable "storage_vm_type" {
type = string
default = "bx2-16x64"
}