Skip to content

Commit cd19520

Browse files
authored
Merge pull request #19 from ing-bank/featue/bucketPolicy
add rokku admin user
2 parents 650856e + 9d67a3a commit cd19520

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
}

rokku-dev-apache-ranger/setup-ranger.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ if [ "$start_timeout_exceeded" = "false" ]; then
2323
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
2424
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
2525
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
2627
printf "\nUser and group created\n"
2728

2829
# Setup ranger servicedefs
@@ -42,7 +43,7 @@ if [ "$start_timeout_exceeded" = "false" ]; then
4243
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
4344
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
4445
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
4647
printf "\nPolicy created\n"
4748

4849
echo "Done setting up Ranger for s3"

0 commit comments

Comments
 (0)