This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathvariables.tf
116 lines (93 loc) · 2.83 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
variable "connection_timeout" {
description = "Timeout for connection to servers"
default = "2m"
}
variable "domain" {
description = "Domain name used in droplet hostnames, e.g example.com"
}
variable "manager_ssh_keys" {
type = "list"
description = "A list of SSH IDs or fingerprints to enable in the format [12345, 123456] that are added to manager nodes"
}
variable "worker_ssh_keys" {
type = "list"
description = "A list of SSH IDs or fingerprints to enable in the format [12345, 123456] that are added to worker nodes"
}
variable "provision_ssh_key" {
default = "~/.ssh/id_rsa"
description = "File path to SSH private key used to access the provisioned nodes. Ensure this key is listed in the manager and work ssh keys list"
}
variable "provision_user" {
default = "root"
description = "User used to log in to the droplets via ssh for issueing Docker commands"
}
variable "region" {
description = "Datacenter region in which the cluster will be created"
default = "ams3"
}
variable "total_managers" {
description = "Total number of managers in cluster"
default = 1
}
variable "total_workers" {
description = "Total number of workers in cluster"
default = 1
}
variable "manager_image" {
description = "Image for the manager nodes"
default = "docker-18-04"
}
variable "worker_image" {
description = "Droplet image for the worker nodes"
default = "docker-18-04"
}
variable "manager_size" {
description = "Droplet size of worker nodes"
default = "s-1vcpu-1gb"
}
variable "worker_size" {
description = "Droplet size of worker nodes"
default = "s-1vcpu-1gb"
}
variable "manager_name" {
description = "Prefix for name of manager nodes"
default = "manager"
}
variable "worker_name" {
description = "Prefix for name of worker nodes"
default = "worker"
}
variable "manager_user_data" {
description = "User data content for manager nodes. Use this for installing a configuration management tool, such as Puppet or installing Docker"
default = <<EOF
#!/bin/sh
EOF
}
variable "worker_user_data" {
description = "User data content for worker nodes. Use this for installing a configuration management tool, such as Puppet or installing Docker"
default = <<EOF
#!/bin/sh
EOF
}
variable "manager_tags" {
description = "List of DigitalOcean tag ids"
default = []
type = "list"
}
variable "worker_tags" {
description = "List of DigitalOcean tag ids"
default = []
type = "list"
}
variable "remote_api_ca" {
description = "CA file path for the docker remote API"
default = ""
}
variable "remote_api_key" {
description = "Private key file path for the docker remote API"
default = ""
}
variable "remote_api_certificate" {
description = "Certificate file path for the docker remote API"
default = ""
}