-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
204 lines (198 loc) · 4.17 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
// Common
variable "control_plane_nodes" {
type = map(any)
description = "A map in form of 'node-name' => 'node's private IP' of the nodes to provision the cluster on"
}
variable "control_plane_nodes_ids" {
type = list(string)
description = "list of strings which are IDs of the instance resources and are used to `trigger` the provisioning of `null` resources on instance recreation"
}
variable "control_plane_nodes_public_ips" {
type = map(any)
description = "The public IPs of the node to SSH into them"
}
variable "ssh_private_key" {
type = string
}
variable "ssh_user" {
type = string
}
variable "ssh_timeout" {
type = string
}
variable "ssh_bastion_host" {
type = string
default = null
}
variable "ssh_bastion_port" {
type = string
default = "22"
}
variable "ssh_bastion_private_key" {
type = string
default = null
}
variable "ssh_bastion_user" {
type = string
default = null
}
variable "prefix" {
type = string
}
variable "external_domain" {
type = string
}
variable "vault_endpoint" {
type = string
}
variable "control_plane_role_name" {
type = string
}
variable "tcp_listener_tls" {
type = bool
default = false
}
variable "dc_name" {
type = string
description = "Name of the datacenter of the consul cluster"
}
variable "unseal_type" {
type = string
default = null
}
variable "agent_auto_auth_type" {
type = string
default = null
}
variable "enable_nomad" {
type = bool
default = true
description = "Enables and setup Nomad cluster"
}
// Transit
variable "transit_vault_address" {
default = null
}
variable "transit_mount_path" {
type = string
default = null
}
variable "transit_vault_token" {
type = string
default = null
}
variable "transit_key" {
type = string
default = null
}
// OCI
variable "oci_key" {
type = string
default = null
}
variable "oci_crypto_endpoint" {
type = string
default = null
}
variable "oci_management_endpoint" {
type = string
default = null
}
// GCP
variable "gcp_region" {
type = string
default = null
}
variable "gcp_keyring" {
type = string
default = null
}
variable "gcp_key" {
type = string
default = null
}
variable "gcp_project_id" {
type = string
default = null
}
variable "gcp_node_role" {
type = string
default = null
}
variable "gcp_service_account" {
type = string
default = null
}
// AWS
variable "aws_region" {
type = string
default = null
}
variable "aws_kms_key_id" {
type = string
default = null
}
variable "aws_node_role" {
type = string
default = null
}
variable "aws_access_key" {
type = string
default = null
}
variable "aws_secret_key" {
type = string
default = null
sensitive = true
}
variable "aws_endpoint" {
type = string
default = null
}
// AZURE
variable "azure_tenant_id" {
type = string
default = null
description = "(optional) The tenant id for the Azure Active Directory organization."
}
variable "azure_environment" {
type = string
default = "AZUREPUBLICCLOUD"
description = "(optional) The Azure Cloud environment API endpoints to use."
}
variable "azure_vault_name" {
type = string
default = null
description = "(optional) The Key Vault vault to use the encryption keys for encryption and decryption."
}
variable "azure_key_name" {
type = string
default = null
description = "(optional) The Key Vault key to use for encryption and decryption."
}
variable "azure_node_role" {
type = string
default = null
description = "(optional) Configured Azure role of the node"
}
variable "azure_resource" {
type = string
default = "https://management.azure.com/"
description = "(optional) A configured Azure AD application which is used as the resource for generating MSI access tokens"
}
// Enterprise
variable "vault_license" {
type = string
default = ""
description = "Vault Enterprise License"
}
variable "nomad_license" {
type = string
default = ""
description = "Nomad Enterprise License"
}
variable "consul_license" {
type = string
default = ""
description = "Consul Enterprise License"
}