Skip to content

Commit 9d67a3a

Browse files
committed
add rokku admin user
1 parent e783a3c commit 9d67a3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)