📦 EqualifyEverything / a11yfana

📄 sample.yaml · 69 lines
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# ---
# # config file version
# apiVersion: 2

# # <list> list of roles to insert/update/delete
# roles:
#   # <string, required> name of the role you want to create or update. Required.
#   - name: 'custom:users:writer'
#     # <string> uid of the role. Has to be unique for all orgs.
#     uid: customuserswriter1
#     # <string> description of the role, informative purpose only.
#     description: 'Create, read, write users'
#     # <int> version of the role, Grafana will update the role when increased.
#     version: 2
#     # <int> org id. Defaults to Grafana's default if not specified.
#     orgId: 1
#     # <list> list of the permissions granted by this role.
#     permissions:
#       # <string, required> action allowed.
#       - action: 'users:read'
#         #<string> scope it applies to.
#         scope: 'global.users:*'
#       - action: 'users:write'
#         scope: 'global.users:*'
#       - action: 'users:create'
#   - name: 'custom:global:users:reader'
#     # <bool> overwrite org id and creates a global role.
#     global: true
#     # <string> state of the role. Defaults to 'present'. If 'absent', role will be deleted.
#     state: 'absent'
#     # <bool> force deletion revoking all grants of the role.
#     force: true
#   - uid: 'basic_editor'
#     version: 2
#     global: true
#     # <list> list of roles to copy permissions from.
#     from:
#       - uid: 'basic_editor'
#         global: true
#       - name: 'fixed:users:writer'
#         global: true
#     # <list> list of the permissions to add/remove on top of the copied ones.
#     permissions:
#       - action: 'users:read'
#         scope: 'global.users:*'
#       - action: 'users:write'
#         scope: 'global.users:*'
#         # <string> state of the permission. Defaults to 'present'. If 'absent', the permission will be removed.
#         state: absent

# # <list> list role assignments to teams to create or remove.
# teams:
#   # <string, required> name of the team you want to assign roles to. Required.
#   - name: 'Users writers'
#     # <int> org id. Will default to Grafana's default if not specified.
#     orgId: 1
#     # <list> list of roles to assign to the team
#     roles:
#       # <string> uid of the role you want to assign to the team.
#       - uid: 'customuserswriter1'
#         # <int> org id. Will default to Grafana's default if not specified.
#         orgId: 1
#       # <string> name of the role you want to assign to the team.
#       - name: 'fixed:users:writer'
#         # <bool> overwrite org id to specify the role is global.
#         global: true
#         # <string> state of the assignment. Defaults to 'present'. If 'absent', the assignment will be revoked.
#         state: absent