forked from mesosphere-backup/terraform-dcos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
477 lines (380 loc) · 15.1 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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
variable "gcp_project" {
default = "massive-bliss-781"
}
variable "gcp_region" {
default = "us-west1"
}
variable "gcp_credentials_key_file" {
default = ""
description = "Google project service account key"
}
variable "admin_cidr" {
default = "0.0.0.0/0"
description = "Inbound Master Access"
}
variable "gcp_compute_subnetwork_public" {
default = "10.64.0.0/22"
description = "Google compute public subnetwork"
}
variable "gcp_compute_subnetwork_private" {
default = "10.64.4.0/22"
description = "Google compute private subnetwork"
}
variable "gcp_ssh_pub_key_file" {
default = "~/.ssh/key.pub"
description = "Your ssh public key to log into your the DC/OS cluster"
}
variable "gcp_ssh_user" {
default = ""
description = "The ssh username used to log into the server"
}
variable "gcp_master_instance_type" {
default = "n1-standard-4"
description = "Default Master instance size for GCP."
}
variable "gcp_agent_instance_type" {
default = "n1-standard-4"
description = "Default Private Agent instance size for GCP."
}
variable "gcp_public_agent_instance_type" {
default = "n1-standard-4"
description = "Default Public Agent instance size for GCP."
}
variable "gcp_bootstrap_instance_type" {
default = "n1-standard-2"
description = "Default Bootstrap instance size for GCP."
}
variable "gcp_scheduling_preemptible" {
default = "false"
description = "Instance scheduling as preemptible is disabled by default"
}
variable "os" {
default = "coreos_1235.9.0"
description = "Recommended DC/OS OSs are centos_7.2, coreos_1235.9.0, coreos_835.13.0"
}
variable "num_of_private_agents" {
description = "DC/OS Private Agents Count"
default = 2
}
variable "num_of_public_agents" {
description = "DC/OS Public Agents Count"
default = 1
}
variable "num_of_masters" {
description = "DC/OS Master Nodes Count (Odd only)"
default = 3
}
variable "owner" {
description = "Paired with Cloud Cluster Cleaner will notify on expiration via slack. Default is whoami. Can be overwritten by setting the value here"
default = ""
}
variable "expiration" {
description = "Paired with Cloud Cluster Cleaner will notify on expiration via slack"
default = "1h"
}
variable "ip-detect" {
description = "Used to determine the private IP address of instances"
type = "map"
default = {
gcp = "scripts/cloud/gcp/ip-detect.gcp.sh"
}
}
variable "os-init-script" {
description = "Init Scripts that runs post-AMI deployment and pre-DC/OS install"
type = "map"
default = {
coreos = "scripts/os/coreos/coreos-init.gcp.sh"
centos = "scripts/os/centos/centos-init.gcp.sh"
}
}
variable "dcos_skip_checks" {
description = "Upgrade option: Used to skip all dcos checks that may block an upgrade if any DC/OS component is unhealthly"
default = "true"
}
variable "instance_disk_size" {
description = "Default size of the root disk (GB)"
default = "128"
}
variable "custom_dcos_bootstrap_port" {
default = "80"
description = "Nginx Port for serving bootstrap files"
}
variable "custom_dcos_download_path" {
default = ""
description = "Custom DC/OS version path"
}
variable "dcos_security" {
default = ""
description = "DC/OS EE security mode: either disabled, permissive, or strict."
}
variable "dcos_resolvers" {
default = [ "169.254.169.254" ]
description = "DNS Resolver for internal name resolution. Google DNS supports external DNS resolution as well."
}
variable "dcos_oauth_enabled" {
default = ""
description = "DC/OS Open Flag for Open Auth"
}
variable "dcos_master_external_loadbalancer" {
default = ""
description = "Used to allow DC/OS to set any required certs. Used for DC/OS EE."
}
variable "dcos_master_discovery" {
default = "static"
description = "Ability to use an ELB or a static list for master discovery"
}
variable "dcos_aws_template_storage_bucket" {
default = ""
description = "This parameter specifies the name of your S3 bucket"
}
variable "dcos_aws_template_storage_bucket_path" {
default = ""
description = "This parameter specifies the S3 bucket storage path"
}
variable "dcos_aws_template_storage_region_name" {
default = ""
description = "This parameter specifies the S3 region"
}
variable "dcos_aws_template_upload" {
default = ""
description = "This parameter specifies whether to automatically upload the customized advanced templates to your S3 bucket"
}
variable "dcos_aws_template_storage_access_key_id" {
default = ""
description = "This parameters specifies the AWS Access Key ID"
}
variable "dcos_aws_template_storage_secret_access_key" {
default = ""
description = "This parameter specifies the AWS Secret Access Key"
}
variable "dcos_exhibitor_storage_backend" {
default = "static"
description = "specify an external storage system (static, zookeeper, azure, and aws_s3)"
}
variable "dcos_exhibitor_zk_hosts" {
default = ""
description = "This parameter specifies a comma-separated list (<ZK_IP>:<ZK_PORT>, <ZK_IP>:<ZK_PORT>, <ZK_IP:ZK_PORT>) of one or more ZooKeeper node IP and port addresses to use for configuring the internal Exhibitor instances"
}
variable "dcos_exhibitor_zk_path" {
default = ""
description = "This parameter specifies the filepath that Exhibitor uses to store data"
}
variable "dcos_aws_access_key_id" {
default = ""
description = "This parameter specifies AWS key ID"
}
variable "dcos_aws_region" {
default = ""
description = "This parameter specifies AWS region for your S3 bucket."
}
variable "dcos_aws_secret_access_key" {
default = ""
description = "This parameter specifies AWS secret access key"
}
variable "dcos_exhibitor_explicit_keys" {
default = ""
description = "This parameter specifies whether you are using AWS API keys to grant Exhibitor access to S3."
}
variable "dcos_s3_bucket" {
default = ""
description = "This parameter specifies name of your S3 bucket."
}
variable "dcos_s3_prefix" {
default = ""
description = "This parameter specifies S3 prefix to be used within your S3 bucket to be used by Exhibitor."
}
variable "dcos_exhibitor_azure_account_name" {
default = ""
description = "This parameter specifies the Azure Storage Account Name. If you specify azure for exhibitor backed set this value."
}
variable "dcos_exhibitor_azure_account_key" {
default = ""
description = "This parameter specifies a secret key to access the Azure Storage Account. If you specify azure for exhibitor backed set this value."
}
variable "dcos_exhibitor_azure_prefix" {
default = ""
description = "This parameter specifies the blob prefix to be used within your Storage Account to be used by Exhibitor. If you specify azure for exhibitor backed set this value."
}
variable "dcos_exhibitor_address" {
default = ""
description = "This required parameter specifies the location (preferably an IP address) of the load balancer in front of the masters."
}
variable "dcos_num_masters" {
default = ""
description = "This parameter specifies the number of Mesos masters in your DC/OS cluster. If master_discovery: static, do not use the num_masters parameter"
}
variable "dcos_customer_key" {
default = ""
description = "This parameter specifies the Enterprise DC/OS customer key."
}
variable "dcos_rexray_config_method" {
default = ""
description = "This parameter specifies the REX-Ray configuration method for enabling external persistent volumes in Marathon. "
}
variable "dcos_rexray_config_filename" {
default = ""
description = "Specify the path to a REX-Ray configuration file with rexray_config_filename"
}
variable "dcos_auth_cookie_secure_flag" {
default = ""
description = "This parameter specifies whether to allow web browsers to send the DC/OS authentication cookie through a non-HTTPS connection. Because the DC/OS authentication cookie allows access to the DC/OS cluster, it should be sent over an encrypted connection to prevent man-in-the-middle attacks."
}
variable "dcos_bouncer_expiration_auth_token_days" {
default = ""
description = "This parameter sets the auth token time-to-live (TTL) for Identity and Access Management."
}
variable "ssh_port" {
default = "22"
description = "This parameter specifies the port to SSH to"
}
variable "dcos_superuser_password_hash" {
default = ""
description = "This required parameter specifies the hashed superuser password. (EE only)"
}
variable "dcos_cluster_name" {
default = ""
description = "Name of the DC/OS Cluster"
}
variable "dcos_superuser_username" {
default = ""
description = "This required parameter specifies the Admin username. (EE only)"
}
variable "dcos_telemetry_enabled" {
default = ""
description = "This parameter specifies whether to enable sharing of anonymous data for your cluster."
}
variable "dcos_zk_super_credentials" {
default = ""
description = "This parameter specifies the ZooKeeper superuser credentials. (EE only)"
}
variable "dcos_zk_master_credentials" {
default = ""
description = "This parameter specifies the ZooKeeper master credentials."
}
variable "dcos_zk_agent_credentials" {
default = ""
description = "This parameter specifies the ZooKeeper agent credentials. "
}
variable "dcos_overlay_enable" {
default = ""
description = "Enable the DC/OS virtual network. "
}
variable "dcos_overlay_config_attempts" {
default = ""
description = "This parameter specifies how many failed configuration attempts are allowed before the overlay configuration modules stop trying to configure an virtual network."
}
variable "dcos_overlay_mtu" {
default = ""
description = "This parameter specifies the maximum transmission unit (MTU) of the Virtual Ethernet (vEth) on the containers that are launched on the overlay."
}
# Example how to set an overlay network below
# default = "{\"vtep_mac_oui\": \"70:B3:D5:00:00:00\", \"overlays\": [{\"name\": \"dcos\", \"subnet\": \"9.0.0.0/8\", \"prefix\": 26}], \"vtep_subnet\": \"44.128.0.0/20\"}"
variable "dcos_overlay_network" {
default = ""
description = "Specify this in line in a new line (\\n) fashion. See https://docs.mesosphere.com/1.8/administration/installing/custom/configuration-parameters/ for more information"
}
variable "dcos_dns_search" {
default = ""
description = "This parameter specifies a space-separated list of domains that are tried when an unqualified domain is entered"
}
variable "dcos_master_dns_bindall" {
default = ""
description = "This parameter specifies whether the master DNS port is open. An open master DNS port listens publicly on the masters."
}
variable "dcos_use_proxy" {
default = ""
description = "This parameter specifies whether to enable the DC/OS proxy."
}
variable "dcos_http_proxy" {
default = ""
description = "This parameter specifies the HTTP proxy."
}
variable "dcos_https_proxy" {
default = ""
description = "This parameter specifies the HTTPS proxy"
}
variable "dcos_no_proxy" {
default = ""
description = "This parameter specifies YAML nested list (-) of addresses to exclude from the proxy."
}
variable "dcos_check_time" {
default = ""
description = "This parameter specifies whether to check if Network Time Protocol (NTP) is enabled during DC/OS startup. It recommended that NTP is enabled for a production environment."
}
variable "dcos_docker_remove_delay" {
default = ""
description = "This parameter specifies the amount of time to wait before removing stale Docker images stored on the agent nodes and the Docker image generated by the installer. "
}
variable "dcos_audit_logging" {
default = ""
description = "This parameter specifies whether security decisions (authentication, authorization) are logged for Mesos, Marathon, and Jobs."
}
variable "dcos_gc_delay" {
default = ""
description = "This parameter specifies the maximum amount of time to wait before cleaning up the executor directories. It is recommended that you accept the default value of 2 days."
}
variable "dcos_log_directory" {
default = ""
description = "This parameter specifies the path to the installer host logs from the SSH processes. By default this is set to /genconf/logs."
}
variable "dcos_process_timeout" {
default = ""
description = "This parameter specifies the allowable amount of time, in seconds, for an action to begin after the process forks. This parameter is not the complete process time. The default value is 120 seconds."
}
variable "dcos_previous_version" {
default = ""
description = "Required by the DC/OS installer instructions to ensure the operator know what version they are upgrading from."
}
variable "dcos_version" {
default = "1.10.2"
description = "DCOS Version"
}
variable "dcos_cluster_docker_credentials" {
default = ""
description = "This parameter specifies a dictionary of Docker credentials to pass."
}
variable "dcos_cluster_docker_credentials_dcos_owned" {
default = ""
description = "This parameter specifies whether to store the credentials file in /opt/mesosphere or /etc/mesosphere/docker_credentials. A sysadmin cannot edit /opt/mesosphere directly."
}
variable "dcos_cluster_docker_credentials_write_to_etc" {
default = ""
description = "This parameter specifies whether to write a cluster credentials file."
}
variable "dcos_cluster_docker_credentials_enabled" {
default = ""
description = "This parameter specifies whether to pass the Mesos --docker_config option to Mesos."
}
variable "dcos_cluster_docker_registry_enabled" {
default = ""
description = "This parameter specifies whether to pass the Mesos --docker_config option to Mesos."
}
variable "dcos_cluster_docker_registry_url" {
default = ""
description = "This parameter specifies a custom URL that Mesos uses to pull Docker images from. If set, it will configure the Mesos’ --docker_registry flag to the specified URL. This changes the default URL Mesos uses for pulling Docker images. By default https://registry-1.docker.io is used."
}
variable "dcos_enable_docker_gc" {
default = ""
description = "This parameter specifies whether to run the docker-gc script, a simple Docker container and image garbage collection script, once every hour to clean up stray Docker containers. You can configure the runtime behavior by using the /etc/ config. For more information, see the documentation"
}
variable "dcos_staged_package_storage_uri" {
default = ""
description = "This parameter specifies where to temporarily store DC/OS packages while they are being added. The value must be a file URL, for example, file:///var/lib/dcos/cosmos/staged-packages."
}
variable "dcos_package_storage_uri" {
default = ""
description = "This parameter specifies where to permanently store DC/OS packages. The value must be a file URL, for example, file:///var/lib/dcos/cosmos/packages."
}
# Example value on how to configure rexray below
# default = "{\"rexray\": {\"modules\": {\"default-docker\": {\"disabled\": true}, \"default-admin\": {\"host\": \"tcp://127.0.0.1:61003\"}}, \"loglevel\": \"info\"}}"
variable "dcos_rexray_config" {
default = ""
}
variable "state" {
default = "install"
description = "Support installing or Upgrading DC/OS"
}
variable "dcos_ip_detect_public_contents" {
default = "\"'#!/bin/sh\\n\\n set -o nounset -o errexit\\n\\n\\n curl -fsSL http://169.254.169.254/computeMetadata/v1/instance/network-interfaces/0/access-configs/0/external-ip -H ''Metadata-Flavor: Google''\\n\\n '\\n\""
description = "Used for AWS to determine the public IP. DC/OS bug requires this variable instead of a file see https://jira.mesosphere.com/browse/DCOS_OSS-905 for more information."
}