-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
162 lines (143 loc) · 2.76 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
## Secret environments
variable "secret_env_list" {
description = "List of secret environments"
type = list(string)
default = [
"dev",
"acc",
"prod"
]
}
##
## ALL Vault Users
##
### NOTE: you must declare all users
### first in this list.
variable "vault_users" {
description = "All vault users"
type = list(string)
default = [
"alice@e-corp.com",
"bob@e-corp.com",
"charlie@e-corp.com",
"david@e-corp.com",
"eve@e-corp.com",
"fred@e-corp.com"
]
}
/**** userpass Entity Alias ****/
### the username/password will be created via the
### vault UI, but the mapping of username to a vault
### entity is managed via terraform
variable "vault_userpass_entity_aliases" {
description = "Mapping of vault users (entities) to userpass username alias"
type = map(string)
default = {
"alice@e-corp.com" = "alice"
"bob@e-corp.com" = "bob"
"charlie@e-corp.com" = "charlie"
"david@e-corp.com" = "david"
"eve@e-corp.com" = "eve"
"fred@e-corp.com" = "fred"
}
}
/**** Groups Assignment *****/
##
## Vault MFA Users
##
variable "vault_mfa_users" {
description = "Vault mfa users"
type = list(string)
default = []
}
##
## Vault Admin Users
##
variable "vault_admin_users" {
description = "Vault Admin users"
type = list(string)
default = [
"alice@e-corp.com"
]
}
##
## Dev Users
##
variable "pki_team_users" {
description = "PKI Team users"
type = list(string)
default = [
"bob@e-corp.com",
"charlie@e-corp.com",
"david@e-corp.com"
]
}
/*** Env DEV ***/
##
## DEV Admin Users
##
variable "dev_admin_users" {
description = "Dev Admin users"
type = list(string)
default = [
"bob@e-corp.com",
"charlie@e-corp.com",
"david@e-corp.com",
"eve@e-corp.com"
]
}
##
## DEV Read Only All Users
##
variable "dev_readonly_users" {
description = "DEV Readonly users"
type = list(string)
default = [
"fred@e-corp.com"
]
}
/*** Env Acc ***/
##
## Acc Admin Users
##
variable "acc_admin_users" {
description = "Acc Admin users"
type = list(string)
default = [
"bob@e-corp.com",
"david@e-corp.com"
]
}
##
## Acc Read Only All Users
##
variable "acc_readonly_users" {
description = "Acc Readonly users"
type = list(string)
default = [
"charlie@e-corp.com",
"fred@e-corp.com"
]
}
/*** Env PROD ***/
##
## Prod Admin Users
##
variable "prod_admin_users" {
description = "Prod Admin users"
type = list(string)
default = [
"bob@e-corp.com"
]
}
##
## Prod Read Only All Users
##
variable "prod_readonly_users" {
description = "Prod Readonly users"
type = list(string)
default = [
"david@e-corp.com",
"fred@e-corp.com"
]
}