Skip to content

jamiehannaford/rackspace-rbac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RBAC scripts for Rackspace cloud

Included are a bunch of scripts that will allow you to quickly and easily provision API users with temporary roles. This is useful when you're hosting a hackathon or user group and need to give folks temporary access to Rackspace APIs.

Installation

If you do not have Composer:

curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin

Then you will need to install this repo:

git clone https://github.com/jamiehannaford/rackspace-rbac 
cd rackspace-rbac && composer install

Setup

You will need to have RS_USERNAME and RS_API_KEY set as environment variables.

Listing all available roles

Edit and run ./bin/list-roles. It will list the name and ID of every single role available to sub-users.

Batch creating users

Edit and run ./bin/create-users. It will create total amount of users with a prefix, and assign them all to the role IDs specified. So if the prefix is "foo" and the total is 3, these users will be created: foo_1, foo_2, foo_3.

Batch deleting users

Edit and run ./bin/delete-user. It will delete all users that match the prefix.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages