Jesse Andrews | 73e27b8 | 2011-09-12 17:55:00 -0700 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | BIN_DIR=${BIN_DIR:-.} |
| 3 | # Tenants |
| 4 | $BIN_DIR/keystone-manage $* tenant add admin |
| 5 | $BIN_DIR/keystone-manage $* tenant add demo |
| 6 | |
| 7 | # Users |
| 8 | $BIN_DIR/keystone-manage $* user add demo secrete demo |
| 9 | $BIN_DIR/keystone-manage $* user add admin secrete admin |
| 10 | |
| 11 | # Roles |
| 12 | $BIN_DIR/keystone-manage $* role add Admin |
| 13 | $BIN_DIR/keystone-manage $* role add Member |
| 14 | $BIN_DIR/keystone-manage $* role grant Admin admin |
| 15 | |
| 16 | #endpointTemplates |
| 17 | $BIN_DIR/keystone-manage $* endpointTemplates add RegionOne swift http://localhost:8080/v1/AUTH_%tenant_id% http://localhost:8080/ http://localhost:8080/v1/AUTH_%tenant_id% 1 1 |
| 18 | $BIN_DIR/keystone-manage $* endpointTemplates add RegionOne nova_compat http://localhost:8774/v1.0/ http://localhost:8774/v1.0 http://localhost:8774/v1.0 1 1 |
| 19 | $BIN_DIR/keystone-manage $* endpointTemplates add RegionOne nova http://localhost:8774/v1.1/%tenant_id% http://localhost:8774/v1.1/%tenant_id% http://localhost:8774/v1.1/%tenant_id% 1 1 |
| 20 | $BIN_DIR/keystone-manage $* endpointTemplates add RegionOne glance http://localhost:9292/v1.1/%tenant_id% http://localhost:9292/v1.1/%tenant_id% http://localhost:9292/v1.1/%tenant_id% 1 1 |
| 21 | $BIN_DIR/keystone-manage $* endpointTemplates add RegionOne keystone http://localhost:8080/v2.0 http://localhost:8081/v2.0 http://localhost:8080/v2.0 1 1 |
| 22 | $BIN_DIR/keystone-manage $* endpointTemplates add RegionOne identity http://localhost:5000/v2.0 http://localhost:5001/v2.0 http://localhost:5000/v2.0 1 1 |
| 23 | |
| 24 | # Tokens |
| 25 | $BIN_DIR/keystone-manage $* token add 999888777666 admin admin 2015-02-05T00:00 |
| 26 | |
| 27 | #Tenant endpoints |
| 28 | $BIN_DIR/keystone-manage $* endpoint add admin 1 |
| 29 | $BIN_DIR/keystone-manage $* endpoint add admin 2 |
| 30 | $BIN_DIR/keystone-manage $* endpoint add admin 3 |
| 31 | $BIN_DIR/keystone-manage $* endpoint add admin 4 |
| 32 | $BIN_DIR/keystone-manage $* endpoint add admin 5 |
| 33 | $BIN_DIR/keystone-manage $* endpoint add admin 6 |
| 34 | |
| 35 | $BIN_DIR/keystone-manage $* endpoint add demo 1 |
| 36 | $BIN_DIR/keystone-manage $* endpoint add demo 2 |
| 37 | $BIN_DIR/keystone-manage $* endpoint add demo 3 |
| 38 | $BIN_DIR/keystone-manage $* endpoint add demo 4 |
| 39 | $BIN_DIR/keystone-manage $* endpoint add demo 5 |
| 40 | $BIN_DIR/keystone-manage $* endpoint add demo 6 |
| 41 | |
| 42 | $BIN_DIR/keystone-manage $* credentials add admin EC2 'admin:admin' admin admin || echo "no support for adding credentials" |