Created
March 8, 2013 21:59
-
-
Save chmouel/5120245 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ADMIN_ID=$(keystone user-list|sed -n '/ admin / { s/^..//;s/ .*//; p}') | |
RESELLER_ID=$(keystone role-list|sed -n '/ ResellerAdmin / { s/^..//;s/ .*//; p}') | |
TENANT_ID=$(keystone tenant-list|sed -n '/ admin / { s/^..//;s/ .*//; p}') | |
keystone user-role-add --user-id ${ADMIN_ID} --role-id ${RESELLER_ID} --tenant-id ${TENANT_ID} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment