blob: b028557fd37dff6dea7c6fbe6ea3dac2babf3d12 [file] [log] [blame]
Jesse Andrews73e27b82011-09-12 17:55:00 -07001#!/bin/bash
2BIN_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
Anthony Youngec21d932011-09-16 16:05:55 -070017# $BIN_DIR/keystone-manage $* endpointTemplates add RegionOne swift http://%HOST_IP%:8080/v1/AUTH_%tenant_id% http://%HOST_IP%:8080/ http://%HOST_IP%:8080/v1/AUTH_%tenant_id% 1 1
18$BIN_DIR/keystone-manage $* endpointTemplates add RegionOne nova_compat http://%HOST_IP%:8774/v1.0/ http://%HOST_IP%:8774/v1.0 http://%HOST_IP%:8774/v1.0 1 1
19$BIN_DIR/keystone-manage $* endpointTemplates add RegionOne nova http://%HOST_IP%:8774/v1.1/%tenant_id% http://%HOST_IP%:8774/v1.1/%tenant_id% http://%HOST_IP%:8774/v1.1/%tenant_id% 1 1
20$BIN_DIR/keystone-manage $* endpointTemplates add RegionOne glance http://%HOST_IP%:9292/v1.1/%tenant_id% http://%HOST_IP%:9292/v1.1/%tenant_id% http://%HOST_IP%:9292/v1.1/%tenant_id% 1 1
21$BIN_DIR/keystone-manage $* endpointTemplates add RegionOne identity http://%HOST_IP%:5000/v2.0 http://%HOST_IP%:5001/v2.0 http://%HOST_IP%:5000/v2.0 1 1
Jesse Andrews73e27b82011-09-12 17:55:00 -070022
23# Tokens
24$BIN_DIR/keystone-manage $* token add 999888777666 admin admin 2015-02-05T00:00
25
26#Tenant endpoints
27$BIN_DIR/keystone-manage $* endpoint add admin 1
28$BIN_DIR/keystone-manage $* endpoint add admin 2
29$BIN_DIR/keystone-manage $* endpoint add admin 3
30$BIN_DIR/keystone-manage $* endpoint add admin 4
31$BIN_DIR/keystone-manage $* endpoint add admin 5
32$BIN_DIR/keystone-manage $* endpoint add admin 6
33
34$BIN_DIR/keystone-manage $* endpoint add demo 1
35$BIN_DIR/keystone-manage $* endpoint add demo 2
36$BIN_DIR/keystone-manage $* endpoint add demo 3
37$BIN_DIR/keystone-manage $* endpoint add demo 4
38$BIN_DIR/keystone-manage $* endpoint add demo 5
39$BIN_DIR/keystone-manage $* endpoint add demo 6
40
41$BIN_DIR/keystone-manage $* credentials add admin EC2 'admin:admin' admin admin || echo "no support for adding credentials"