-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathteams.tf
68 lines (56 loc) · 1.36 KB
/
teams.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
resource "github_team" "review" {
name = "review"
description = "Team to group people who do general octoDNS reviews"
privacy = "closed"
}
resource "github_team_membership" "review-maintainer" {
for_each = toset([
"ross",
"yzguy",
])
team_id = github_team.review.id
username = each.key
role = "maintainer"
}
resource "github_team_membership" "review-member" {
for_each = toset([
"istr",
"viranch",
])
team_id = github_team.review.id
username = each.key
role = "member"
}
resource "github_team_repository" "review-octodns" {
team_id = github_team.review.id
repository = "octodns"
permission = "maintain"
}
resource "github_team_repository" "review" {
for_each = var.repos
team_id = github_team.review.id
repository = each.key
permission = "maintain"
}
# AutoDNS
resource "github_team" "autodns" {
name = "autodns"
description = "Team to group people who manage octodns-autodns"
privacy = "closed"
}
resource "github_team_membership" "autodns" {
for_each = toset([
"beechesII",
"neubi4",
"schurzi",
"z-bsod"
])
team_id = github_team.autodns.id
username = each.key
role = "member"
}
resource "github_team_repository" "autodns" {
team_id = github_team.autodns.id
repository = github_repository.repo["octodns-autodns"].id
permission = "maintain"
}