/
team-admin.tf
81 lines (68 loc) · 2.07 KB
/
team-admin.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
// Team
resource "github_team" "admin" {
name = "Admins"
description = "ictsc organization admins"
privacy = "closed"
}
// Team Repository Resource
resource "github_team_repository" "admin-ictsc-sandbox" {
team_id = "${github_team.admin.id}"
repository = "ictsc-sandbox"
permission = "admin"
}
resource "github_team_repository" "admin-ictsc-general" {
team_id = "${github_team.admin.id}"
repository = "ictsc-general"
permission = "admin"
}
resource "github_team_repository" "admin-ictsc-problems" {
team_id = "${github_team.admin.id}"
repository = "ictsc-problems"
permission = "admin"
}
resource "github_team_repository" "admin-ictsc-infra" {
team_id = "${github_team.admin.id}"
repository = "ictsc-infra"
permission = "admin"
}
resource "github_team_repository" "admin-ictsc-network" {
team_id = "${github_team.admin.id}"
repository = "ictsc-network"
permission = "admin"
}
resource "github_team_repository" "admin-ictsc-server" {
team_id = "${github_team.admin.id}"
repository = "ictsc-server"
permission = "admin"
}
resource "github_team_repository" "admin-ictsc-playbooks" {
team_id = "${github_team.admin.id}"
repository = "ictsc-playbooks"
permission = "admin"
}
resource "github_team_repository" "admin-ictsc-score-server" {
team_id = "${github_team.admin.id}"
repository = "ictsc-score-server"
permission = "admin"
}
resource "github_team_repository" "admin-kakisute-script" {
team_id = "${github_team.admin.id}"
repository = "kakisute-script"
permission = "admin"
}
resource "github_team_repository" "admin-network-config" {
team_id = "${github_team.admin.id}"
repository = "network-config"
permission = "admin"
}
// Team Members
resource "github_team_membership" "admin-whywaita" {
team_id = "${github_team.admin.id}"
username = "${github_membership.whywaita.username}"
role = "member"
}
resource "github_team_membership" "admin-tar-xzvff" {
team_id = "${github_team.admin.id}"
username = "${github_membership.tar-xzvff.username}"
role = "member"
}