-
Notifications
You must be signed in to change notification settings - Fork 3
/
user.yml
61 lines (61 loc) · 1.53 KB
/
user.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
users:
- name: "{{ username }}"
parameters:
- name: DISPLAY_NAME
value: "'{{ username }}'"
- name: EMAIL
value: "'{{ email }}'"
- name: DEFAULT_ROLE
value: "FR_U_{{ username }}"
- name: MUST_CHANGE_PASSWORD
value: "{{ must_change_password }}"
- name: PASSWORD
value: "'{{ password }}'"
- name: DEFAULT_WAREHOUSE
value: "USER_ADH_WH"
- name: DEFAULT_NAMESPACE
value: "USER.{{ username }}"
- name: RSA_PUBLIC_KEY
value: "'{{ rsa_public_key }}'"
- name: RSA_PUBLIC_KEY_2
value: "'{{ rsa_public_key_2 }}'"
roles:
# Data access
- name: "DR_U_{{ username }}"
# Functional access
- name: "FR_U_{{ username }}"
databases:
- name: "USER"
schemas:
- name: "{{ username }}"
privileges:
# Database
- privilege: "USAGE"
objectType: DATABASE
objectName: "USER"
roleName: "DR_U_{{ username }}"
grantOption: false
- privilege: "ALL PRIVILEGES"
objectType: SCHEMA
objectName: "USER.{{ username }}"
roleName: "DR_U_{{ username }}"
grantOption: true
roleGrants:
- name: "AR_USER_ADH_WH"
roles:
- "FR_U_{{ username }}"
- name: "AR_A_TASK_OPERATOR"
roles:
- "FR_U_{{ username }}"
- name: "AR_I_ADLS_PHDATA_SNOWFLAKE_STAGE"
roles:
- "FR_U_{{ username }}"
- name: "DR_U_{{ username }}"
roles:
- "FR_U_{{ username }}"
- name: "FR_U_{{ username }}"
users:
- "{{ username }}"
- name: "FR_U_{{ username }}"
roles:
- "SYSADMIN"