File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "loginId" : " rokkuadmin" ,
3
+ "name" : " rokkuadmin" ,
4
+ "password" : " password123" ,
5
+ "firstName" : " firstname" ,
6
+ "lastName" : " lastname" ,
7
+ "publicScreenName" : " rokkuadmin" ,
8
+ "userRoleList" : [
9
+ " ROLE_USER"
10
+ ],
11
+ "userPermList" : [],
12
+ "groupPermissions" : []
13
+ }
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ if [ "$start_timeout_exceeded" = "false" ]; then
23
23
curl -u admin:admin -d " @/tmp/resources/user-group/testgroup.json" -X POST -H " Accept: application/json" -H " Content-Type: application/json" http://localhost:6080/service/xusers/secure/groups
24
24
curl -u admin:admin -d " @/tmp/resources/user-group/testrole.json" -X POST -H " Accept: application/json" -H " Content-Type: application/json" http://localhost:6080/service/xusers/secure/groups
25
25
curl -u admin:admin -d " @/tmp/resources/user-group/testuser.json" -X POST -H " Accept: application/json" -H " Content-Type: application/json" http://localhost:6080/service/xusers/secure/users
26
+ curl -u admin:admin -d " @/tmp/resources/user-group/rokkuadmin.json" -X POST -H " Accept: application/json" -H " Content-Type: application/json" http://localhost:6080/service/xusers/secure/users
26
27
printf " \nUser and group created\n"
27
28
28
29
# Setup ranger servicedefs
@@ -42,7 +43,7 @@ if [ "$start_timeout_exceeded" = "false" ]; then
42
43
curl -u admin:admin -d " @/tmp/resources/policy/ranger-policy-homedirs-s3.json" -X POST -H " Accept: application/json" -H " Content-Type: application/json" http://localhost:6080/service/public/v2/api/policy
43
44
curl -u admin:admin -d " @/tmp/resources/policy/ranger-policy-home-read-s3.json" -X POST -H " Accept: application/json" -H " Content-Type: application/json" http://localhost:6080/service/public/v2/api/policy
44
45
curl -u admin:admin -d " @/tmp/resources/policy/ranger-policy-shared-s3.json" -X POST -H " Accept: application/json" -H " Content-Type: application/json" http://localhost:6080/service/public/v2/api/policy
45
- curl -u admin:admin -d " @/tmp/resources/policy/ranger-policy-bucket-create-s3.json" -X POST -H " Accept: application/json" -H " Content-Type: application/json" http://localhost:6080/service/public/v2/api/policy
46
+ curl -u admin:admin -d " @/tmp/resources/policy/ranger-policy-bucket-create-s3.json" -X POST -H " Accept: application/json" -H " Content-Type: application/json" http://localhost:6080/service/public/v2/api/policy
46
47
printf " \nPolicy created\n"
47
48
48
49
echo " Done setting up Ranger for s3"
You can’t perform that action at this time.
0 commit comments