-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathorganization.tf
43 lines (35 loc) · 1.05 KB
/
organization.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
locals {
# A map of admin machine users. These users are used for tasks such like CI & CD, releasing, etc.
admin_machine_users = {
}
# A map of GitHub users that should have admin permissions
admin_users = {
"alice@acme.com" = "alice"
"bob@acme.com" = "bob"
}
# A map of member machine users. These users are used by automation processes such as cloning repositories
member_machine_users = {
"ciuser@acme.com" = "acme-ci"
}
# A map of GitHub users that should have member permissions
member_users = {
"stephe@acme.com" = "cOdewars1337",
"angela@acme.com" = "profundidaddeplagas",
"jenz@acme.com" = "jenzcancode",
}
# We merge the maps of members and admins and pass them as arguments to the module
members = merge(
local.member_machine_users,
local.member_users
)
admins = merge(
local.admin_machine_users,
local.admin_users
)
}
module "organization" {
source = "mineiros-io/organization/github"
version = "0.1.0"
admins = values(local.admins)
members = values(local.members)
}