-
Notifications
You must be signed in to change notification settings - Fork 4
/
org.tf
72 lines (62 loc) · 1.53 KB
/
org.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
locals {
members = [
"jhonmike",
"rogerfernandes",
"lorival",
"raduq",
"nilemarbarcelos",
"t-bonatti",
"B0go",
"leandro-lugaresi",
"diogonicoleti",
"robertoduessmann",
"PauloSalum",
"brunofpimenta",
"valtlfelipe",
]
# add your username after the last user above.
# keep a comma at the end of the line, like a good gopher :)
}
resource "github_team" "gophers" {
name = "Gophers"
description = "All Joinville Gophers"
privacy = "closed"
}
resource "github_team_membership" "members" {
count = "${length(local.members)}"
username = "${element(local.members, count.index)}"
team_id = "${github_team.gophers.id}"
role = "member"
}
resource "github_team_membership" "caarlos0" {
username = "caarlos0"
team_id = "${github_team.gophers.id}"
role = "maintainer"
}
resource "github_team_membership" "tmatias" {
username = "tmatias"
team_id = "${github_team.gophers.id}"
role = "maintainer"
}
resource "github_team_membership" "merencia" {
username = "merencia"
team_id = "${github_team.gophers.id}"
role = "maintainer"
}
resource "github_membership" "members" {
count = "${length(local.members)}"
username = "${element(local.members, count.index)}"
role = "member"
}
resource "github_membership" "caarlos0" {
username = "caarlos0"
role = "admin"
}
resource "github_membership" "tmatias" {
username = "tmatias"
role = "admin"
}
resource "github_membership" "merencia" {
username = "merencia"
role = "admin"
}