-
Notifications
You must be signed in to change notification settings - Fork 28
/
variables.tf
359 lines (307 loc) · 11.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
#__________________________________________________________
#
# Terraform Cloud Variables
#__________________________________________________________
variable "terraform_cloud_token" {
description = "Token to Authenticate to the Terraform Cloud."
sensitive = true
type = string
}
variable "tfc_oauth_token" {
description = "Terraform Cloud OAuth Token for VCS_Repo Integration."
sensitive = true
type = string
}
variable "tfc_organization" {
description = "Terraform Cloud Organization Name."
type = string
}
variable "terraform_version" {
default = "1.0.3"
description = "Terraform Target Version."
type = string
}
variable "vcs_repo" {
description = "Version Control System Repository."
type = string
}
#__________________________________________________________
#
# Intersight Sensitive Variables
#__________________________________________________________
variable "apikey" {
description = "Intersight API Key."
sensitive = true
type = string
}
variable "secretkey" {
description = "Intersight Secret Key."
sensitive = true
type = string
}
#__________________________________________________________
#
# IPMI over LAN Sensitive Variable
#__________________________________________________________
variable "ipmi_key_1" {
default = ""
description = "Encryption key to use for IPMI communication. It should have an even number of hexadecimal characters and not exceed 40 characters."
sensitive = true
type = string
}
#__________________________________________________________
#
# LDAP Policy Sensitive Variable
#__________________________________________________________
variable "binding_parameters_password" {
default = ""
description = "The password of the user for initial bind process. It can be any string that adheres to the following constraints. It can have character except spaces, tabs, line breaks. It cannot be more than 254 characters."
sensitive = true
type = string
}
#__________________________________________________________
#
# Local User Policy Sensitive Variables
#__________________________________________________________
variable "local_user_password_1" {
default = ""
description = "Password to assign to a local user. Sensitive Variables cannot be added to a for_each loop so these are added seperately."
sensitive = true
type = string
}
variable "local_user_password_2" {
default = ""
description = "Password to assign to a local user. Sensitive Variables cannot be added to a for_each loop so these are added seperately."
sensitive = true
type = string
}
variable "local_user_password_3" {
default = ""
description = "Password to assign to a local user. Sensitive Variables cannot be added to a for_each loop so these are added seperately."
sensitive = true
type = string
}
variable "local_user_password_4" {
default = ""
description = "Password to assign to a local user. Sensitive Variables cannot be added to a for_each loop so these are added seperately."
sensitive = true
type = string
}
variable "local_user_password_5" {
default = ""
description = "Password to assign to a local user. Sensitive Variables cannot be added to a for_each loop so these are added seperately."
sensitive = true
type = string
}
#__________________________________________________________
#
# Persistent Memory Policy Sensitive Variables
#__________________________________________________________
variable "secure_passphrase" {
default = ""
description = "Secure passphrase to be applied on the Persistent Memory Modules on the server. The allowed characters are a-z, A to Z, 0-9, and special characters =, \u0021, &, #, $, %, +, ^, @, _, *, -."
sensitive = true
type = string
}
#__________________________________________________________
#
# SNMP Policy Sensitive Variables
#__________________________________________________________
variable "access_community_string_1" {
default = ""
description = "The default SNMPv1, SNMPv2c community name or SNMPv3 username to include on any trap messages sent to the SNMP host. The name can be 18 characters long."
sensitive = true
type = string
}
variable "access_community_string_2" {
default = ""
description = "The default SNMPv1, SNMPv2c community name or SNMPv3 username to include on any trap messages sent to the SNMP host. The name can be 18 characters long."
sensitive = true
type = string
}
variable "access_community_string_3" {
default = ""
description = "The default SNMPv1, SNMPv2c community name or SNMPv3 username to include on any trap messages sent to the SNMP host. The name can be 18 characters long."
sensitive = true
type = string
}
variable "access_community_string_4" {
default = ""
description = "The default SNMPv1, SNMPv2c community name or SNMPv3 username to include on any trap messages sent to the SNMP host. The name can be 18 characters long."
sensitive = true
type = string
}
variable "access_community_string_5" {
default = ""
description = "The default SNMPv1, SNMPv2c community name or SNMPv3 username to include on any trap messages sent to the SNMP host. The name can be 18 characters long."
sensitive = true
type = string
}
variable "snmp_auth_password_1" {
default = ""
description = "SNMPv3 User Authentication Password."
sensitive = true
type = string
}
variable "snmp_auth_password_2" {
default = ""
description = "SNMPv3 User Authentication Password."
sensitive = true
type = string
}
variable "snmp_auth_password_3" {
default = ""
description = "SNMPv3 User Authentication Password."
sensitive = true
type = string
}
variable "snmp_auth_password_4" {
default = ""
description = "SNMPv3 User Authentication Password."
sensitive = true
type = string
}
variable "snmp_auth_password_5" {
default = ""
description = "SNMPv3 User Authentication Password."
sensitive = true
type = string
}
variable "snmp_privacy_password_1" {
default = ""
description = "SNMPv3 User Privacy Password."
sensitive = true
type = string
}
variable "snmp_privacy_password_2" {
default = ""
description = "SNMPv3 User Privacy Password."
sensitive = true
type = string
}
variable "snmp_privacy_password_3" {
default = ""
description = "SNMPv3 User Privacy Password."
sensitive = true
type = string
}
variable "snmp_privacy_password_4" {
default = ""
description = "SNMPv3 User Privacy Password."
sensitive = true
type = string
}
variable "snmp_privacy_password_5" {
default = ""
description = "SNMPv3 User Privacy Password."
sensitive = true
type = string
}
variable "snmp_trap_community_1" {
default = ""
description = "Community for a Trap Destination."
sensitive = true
type = string
}
variable "snmp_trap_community_2" {
default = ""
description = "Community for a Trap Destination."
sensitive = true
type = string
}
variable "snmp_trap_community_3" {
default = ""
description = "Community for a Trap Destination."
sensitive = true
type = string
}
variable "snmp_trap_community_4" {
default = ""
description = "Community for a Trap Destination."
sensitive = true
type = string
}
variable "snmp_trap_community_5" {
default = ""
description = "Community for a Trap Destination."
sensitive = true
type = string
}
variable "trap_community_string_1" {
default = ""
description = "The default SNMPv1, SNMPv2c community name or SNMPv3 username to include on any trap messages sent to the SNMP host. The name can be 18 characters long."
sensitive = true
type = string
}
variable "trap_community_string_2" {
default = ""
description = "The default SNMPv1, SNMPv2c community name or SNMPv3 username to include on any trap messages sent to the SNMP host. The name can be 18 characters long."
sensitive = true
type = string
}
variable "trap_community_string_3" {
default = ""
description = "The default SNMPv1, SNMPv2c community name or SNMPv3 username to include on any trap messages sent to the SNMP host. The name can be 18 characters long."
sensitive = true
type = string
}
variable "trap_community_string_4" {
default = ""
description = "The default SNMPv1, SNMPv2c community name or SNMPv3 username to include on any trap messages sent to the SNMP host. The name can be 18 characters long."
sensitive = true
type = string
}
variable "trap_community_string_5" {
default = ""
description = "The default SNMPv1, SNMPv2c community name or SNMPv3 username to include on any trap messages sent to the SNMP host. The name can be 18 characters long."
sensitive = true
type = string
}
variable "workspaces" {
default = {
default = {
allow_destroy_plan = true
auto_apply = false
branch = "master"
description = ""
global_remote_state = false
queue_all_runs = false
remote_state_consumer_ids = []
speculative_enabled = true
working_directory = ""
workspace_type = ""
}
}
description = <<-EOT
Map of Workspaces to create in Terraform Cloud.
key - Name of the Workspace to Create.
* allow_destroy_plan - Default is true.
* auto_apply - Defualt is false. Automatically apply changes when a Terraform plan is successful. Plans that have no changes will not be applied. If this workspace is linked to version control, a push to the default branch of the linked repository will trigger a plan and apply.
* branch - Default is "master". The repository branch that Terraform will execute from. Default to master.
* description - A Description for the Workspace.
* global_remote_state - Whether the workspace allows all workspaces in the organization to access its state data during runs. If false, then only specifically approved workspaces can access its state (remote_state_consumer_ids)..
* queue_all_runs - needs description.
* remote_state_consumer_ids - The set of workspace IDs set as explicit remote state consumers for the given workspace.
* working_directory - The Directory of the Version Control Repository that contains the Terraform code for UCS Domain Profiles for this Workspace.
* workspace_type - What Type of Workspace will this Create. Options are:
- chassis
- domain
- pool
- server
- vlan
EOT
type = map(object(
{
allow_destroy_plan = optional(bool)
auto_apply = optional(bool)
branch = optional(string)
description = optional(string)
global_remote_state = optional(bool)
queue_all_runs = optional(bool)
remote_state_consumer_ids = optional(list(string))
speculative_enabled = optional(bool)
working_directory = string
workspace_type = string
}
))
}