Skip to content

Instantly share code, notes, and snippets.

@chmouel
Created October 4, 2011 15:20
Show Gist options
  • Save chmouel/1261924 to your computer and use it in GitHub Desktop.
Save chmouel/1261924 to your computer and use it in GitHub Desktop.
Add Keystone for Swift
#!/bin/bash
set -e
set -x
# Add tenant
keystone-manage tenant add admin
# Add user admin with password secrete to tenant admin
keystone-manage user add admin secrete admin
# Add swift object-store
keystone-manage service add swift object-store 'Swift Service'
# Add a endpoint
keystone-manage endpointTemplates add RegionOne swift http://proxy01:8080/v1/AUTH_%tenant_id% http://enova01:8080/ http://enova01:8080/v1/AUTH_%tenant_id% 1 1
# Static token
keystone-manage token add tsC6Kqp79iL3wmIL admin admin 2015-02-05T00:00
# Add admin to first service
keystone-manage endpoint add admin 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment