File tree 3 files changed +86
-0
lines changed
3 files changed +86
-0
lines changed Original file line number Diff line number Diff line change
1
+ module "codefresh_access_control" {
2
+ source = " ../../tf_modules/access_control"
3
+ api_url = var. api_url
4
+ default_idps = var. default_idps
5
+ accounts = var. accounts
6
+ users = var. users
7
+
8
+ default_acccount_limits = var. default_acccount_limits
9
+ }
Original file line number Diff line number Diff line change
1
+ api_url = " https://onprem-tst-1.cf-cd.com/api"
2
+
3
+ default_idps = {
4
+ local = {
5
+ display_name = " local"
6
+ sso = false
7
+ }
8
+ azure_sso = {
9
+ display_name = " codefresh-azure-sso-1"
10
+ sso = true
11
+ }
12
+ }
13
+
14
+ accounts = {
15
+ acc1 = {}
16
+ acc2 = {
17
+ limits = {
18
+ collaborators = 50
19
+ parallel_builds = 5
20
+ }
21
+ }
22
+ }
23
+
24
+ users = {
25
+ user1 = {
26
+
27
+ personal = {
28
+ first_name = " Kosta"
29
+ last_name = " A"
30
+ }
31
+ accounts = [" acc1" , " acc2" ]
32
+ admin_of_accounts = [" acc1" ]
33
+ global_admin = true
34
+ }
35
+ user2 = {
36
+ email
= " live.com#[email protected] "
37
+ personal = {
38
+ first_name = " Q"
39
+ last_name = " D"
40
+ }
41
+ accounts = [" acc2" ]
42
+ admin_of_accounts = []
43
+ global_admin = false
44
+ }
45
+ user3 = {
46
+
47
+ personal = {
48
+ first_name = " Kosta"
49
+ last_name = " sysadmiral-io"
50
+ }
51
+ accounts = [" acc1" , " acc2" ]
52
+ admin_of_accounts = [" acc1" , " acc2" ]
53
+ global_admin = true
54
+ }
55
+ }
Original file line number Diff line number Diff line change
1
+ variable api_url {}
2
+
3
+ variable default_acccount_limits {
4
+ type = map (any )
5
+ default = {
6
+ collaborators = 100
7
+ parallel_builds = 10
8
+ }
9
+ }
10
+
11
+ variable default_idps {
12
+ type = map (any )
13
+ }
14
+
15
+ variable accounts {
16
+ type = map (any )
17
+ }
18
+
19
+ variable users {
20
+ // type = map(any)
21
+ }
22
+
You can’t perform that action at this time.
0 commit comments