-
Notifications
You must be signed in to change notification settings - Fork 0
/
Magenta.yml
66 lines (61 loc) · 2.1 KB
/
Magenta.yml
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
parameters: {}
variables: {
ProjectDescription: 'Custom Magenta Project. Contact Name: John Doe.',
ProjectRepositoryName: 'CON_Configuration',
Project_Service_GitRepositories: 'enabled',
Project_Service_BuildPipelines: 'enabled',
Project_Service_AzureArtifact: 'enabled'
}
resources:
- name: Configuration Git Repository
type: AzureDevOpsDsc/AzDoGitRepository
dependsOn:
- AzureDevOpsDsc/AzDoProject/Project
properties:
ProjectName: $ProjectName
RepositoryName: $ProjectRepositoryName
- name: Configuration Git Permissions
type: AzureDevOpsDsc/AzDoGitPermission
dependsOn:
- AzureDevOpsDsc/AzDoGitRepository/Configuration Git Repository
- AzureDevOpsDsc/AzDoProjectGroup/CON Readers
- AzureDevOpsDsc/AzDoProjectGroup/CON Board Administrators
properties:
ProjectName: $ProjectName
RepositoryName: $ProjectRepositoryName
isInherited: false
Permissions:
- Identity: '[$ProjectName]\$ProjectGroups_Role_CONReaders'
Permission:
Read: "Allow"
- Identity: '[$ProjectName]\$ProjectGroups_Role_CONContributors'
Permission:
Read: "Allow"
Contribute: "Allow"
CreateBranch: "Allow"
PullRequestContribute: "Allow"
- Identity: '[$ProjectName]\$ProjectGroups_Role_CONReleaseAdministrators'
Permission:
Read: "Allow"
CreateTag: "Allow"
ManageNote: "Allow"
EditPolicies: "Allow"
PullRequestContribute: "Allow"
- Identity: '[$ProjectName]\$ProjectGroups_Role_CONBuildAdministrators'
Permission:
Read: "Allow"
Contribute: "Allow"
CreateTag: "Allow"
ManageNote: "Allow"
PullRequestContribute: "Allow"
EditPolicies: "Allow"
- Identity: '[$Organization_Name]\$Organization_Role_ProjectCollectionAdmins'
Permission:
Read: "Allow"
Contribute: "Allow"
CreateBranch: "Allow"
CreateTag: "Allow"
ManageNote: "Allow"
EditPolicies: "Allow"
RemoveOthersLocks: "Allow"
ManagePermissions: "Allow"