forked from terraform-redhat/terraform-rhcs-rosa-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
255 lines (213 loc) · 8.63 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
variable "cluster_id" {
description = "Identifier of the cluster."
type = string
}
variable "name" {
description = "Name of the identity provider."
type = string
}
variable "idp_type" {
type = string
description = ""
validation {
condition = contains(["github", "gitlab", "google", "htpasswd", "ldap", "openid"], lower(var.idp_type))
error_message = " idp_type must be one of the following: [\"github\", \"gitlab\", \"google\", \"htpasswd\", \"ldap\", \"openid\"]"
}
}
variable "mapping_method" {
type = string
default = null
description = "Specifies how new identities are mapped to users when they log in. Options are add, claim, generate and lookup (default is claim)."
}
#########################
# Github IDP
#########################
variable "github_idp_client_id" {
type = string
default = null
description = "Client identifier issued by Github (required). Valid only to Github Identity Provider (idp_type=github)."
}
variable "github_idp_client_secret" {
type = string
default = null
description = "Client secret issued by Github (required). Valid only to Github Identity Provider (idp_type=github)."
sensitive = true
}
variable "github_idp_ca" {
type = string
default = null
description = "Path to PEM-encoded certificate file to use when making requests to the server (optional). Valid only to Github Identity Provider (idp_type=github)."
}
variable "github_idp_hostname" {
type = string
default = null
description = "Optional domain to use with a hosted instance of GitHub Enterprise (optional). Valid only to Github Identity Provider (idp_type=github)."
}
variable "github_idp_organizations" {
type = list(string)
default = null
description = "Only users that are members of at least one of the listed organizations are allowed to log in (optional). Valid only to Github Identity Provider (idp_type=github)."
}
variable "github_idp_teams" {
type = list(string)
default = null
description = "Only users that are members of at least one of the listed teams are allowed to log in. The format is `<org>`/`<team>` (optional). Valid only to Github Identity Provider (idp_type=github)."
}
#########################
# Gitlab IDP
#########################
variable "gitlab_idp_client_id" {
type = string
default = null
description = "Client identifier of a registered Gitlab OAuth application (required). Valid only to Gitlab Identity Provider (idp_type=gitlab)."
}
variable "gitlab_idp_client_secret" {
type = string
default = null
description = "Client secret issued by Gitlab (required). Valid only to Gitlab Identity Provider (idp_type=gitlab)."
sensitive = true
}
variable "gitlab_idp_url" {
type = string
default = null
description = "URL of the Gitlab instance (required). Valid only to Gitlab Identity Provider (idp_type=gitlab)."
}
variable "gitlab_idp_ca" {
type = string
default = null
description = "Trusted certificate authority bundle (optional). Valid only to Gitlab Identity Provider (idp_type=gitlab)."
}
#########################
# Google IDP
#########################
variable "google_idp_client_id" {
type = string
default = null
description = "Client identifier of a registered Google OAuth application (required). Valid only to Google Identity Provider (idp_type=google)."
}
variable "google_idp_client_secret" {
type = string
default = null
description = "Client secret issued by Google (required). Valid only to Google Identity Provider (idp_type=google)."
sensitive = true
}
variable "google_idp_hosted_domain" {
type = string
default = null
description = "Restrict users to a Google Apps domain (optional). Valid only to Google Identity Provider (idp_type=google)."
}
#########################
# Htpasswd IDP
#########################
variable "htpasswd_idp_users" {
type = list(object({
username = string
password = string
}))
default = null
description = "A list of htpasswd user credentials (required). Valid only to Htpasswd Identity Provider (idp_type=htpasswd)."
sensitive = true
}
#########################
# LDAP IDP
#########################
variable "ldap_idp_bind_dn" {
type = string
default = null
description = "DN to bind with during the search phase (optional). Valid only to Ldap Identity Provider (idp_type=ldap)."
}
variable "ldap_idp_bind_password" {
type = string
default = null
description = "Password to bind with during the search phase (optional). Valid only to Ldap Identity Provider (idp_type=ldap)."
sensitive = true
}
variable "ldap_idp_ca" {
type = string
default = null
description = "Trusted certificate authority bundle (optional). Valid only to Ldap Identity Provider (idp_type=ldap)."
}
variable "ldap_idp_insecure" {
type = bool
default = null
description = "Do not make TLS connections to the server (optional). Valid only to Ldap Identity Provider (idp_type=ldap)."
}
variable "ldap_idp_url" {
type = string
default = null
description = "An RFC 2255 URL which specifies the LDAP search parameters to use (required). Valid only to Ldap Identity Provider (idp_type=ldap)."
}
variable "ldap_idp_emails" {
type = list(string)
default = null
description = "The list of attributes whose values are used as the email address (optional). Valid only to Ldap Identity Provider (idp_type=ldap)."
}
variable "ldap_idp_ids" {
type = list(string)
default = null
description = "The list of attributes whose values are used as the user ID. Default ['dn'] (optional). Valid only to Ldap Identity Provider (idp_type=ldap)."
}
variable "ldap_idp_names" {
type = list(string)
default = null
description = "The list of attributes whose values are used as the display name. Default ['cn'] (optional). Valid only to Ldap Identity Provider (idp_type=ldap)."
}
variable "ldap_idp_preferred_usernames" {
type = list(string)
default = null
description = "The list of attributes whose values are used as the preferred username. Default ['uid'] (optional). Valid only to Ldap Identity Provider (idp_type=ldap)."
}
#########################
# OpenID IDP
#########################
variable "openid_idp_ca" {
type = string
default = null
description = "Trusted certificate authority bundle (optional). Valid only to OpenID Identity Provider (idp_type=openid)."
}
variable "openid_idp_claims_email" {
type = list(string)
default = null
description = "List of claims to use as the email address (optional). Valid only to OpenID Identity Provider (idp_type=openid)."
}
variable "openid_idp_claims_groups" {
type = list(string)
default = null
description = "List of claims to use as the groups names (optional). Valid only to OpenID Identity Provider (idp_type=openid)."
}
variable "openid_idp_claims_name" {
type = list(string)
default = null
description = "List of claims to use as the display name (optional). Valid only to OpenID Identity Provider (idp_type=openid)."
}
variable "openid_idp_claims_preferred_username" {
type = list(string)
default = null
description = "List of claims to use as the preferred username when provisioning a user (optional). Valid only to OpenID Identity Provider (idp_type=openid)."
}
variable "openid_idp_client_id" {
type = string
default = null
description = "Client ID from the registered application (required). Valid only to OpenID Identity Provider (idp_type=openid)."
}
variable "openid_idp_client_secret" {
type = string
default = null
description = "Client secret from the registered application (required). Valid only to OpenID Identity Provider (idp_type=openid)."
sensitive = true
}
variable "openid_idp_extra_scopes" {
type = list(string)
default = null
description = "List of scopes to request, in addition to the 'openid' scope, during the authorization token request (optional). Valid only to OpenID Identity Provider (idp_type=openid)."
}
variable "openid_idp_extra_authorize_parameters" {
type = map(string)
default = null
description = "Extra authorization parameters for the OpenID Identity Provider (optional). Valid only to OpenID Identity Provider (idp_type=openid)."
}
variable "openid_idp_issuer" {
type = string
default = null
description = "The URL that the OpenID Provider asserts as the issuer identifier. It must use the https scheme with no URL query parameters or fragment (required). Valid only to OpenID Identity Provider (idp_type=openid)."
}