Skip to content

Commit

Permalink
Update and rename keystone.sh to keystone-identity.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dkilcy committed Jan 18, 2015
1 parent 9204c49 commit c11962d
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions notes/keystone.sh → notes/keystone-identity.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@

#### Source the environment
```
source /home/devops/openstack/auth-openrc.sh

export OS_SERVICE_TOKEN=$ADMIN_TOKEN
export OS_SERVICE_ENDPOINT=http://controller1:35357/v2.0
```

#### Create inital users roles and tenants
```
keystone tenant-create --name admin --description "Admin Tenant"
keystone user-create --name admin --pass $ADMIN_PASS
keystone role-create --name admin
Expand All @@ -15,26 +19,27 @@ keystone user-create --name demo --pass $DEMO_PASS
keystone user-role-add --tenant demo --user demo --role _member_
keystone tenant-create --name service --description "Service Tenant"
sleep 1

keystone service-create --name keystone --type identity \
--description "OpenStack Identity"
```

sleep 1

#### Create the keystone endpoint
```
keystone endpoint-create \
--service-id $(keystone service-list | awk '/ identity / {print $2}') \
--publicurl http://controller1:5000/v2.0 \
--internalurl http://controller1:5000/v2.0 \
--adminurl http://controller1:35357/v2.0 \
--region regionOne
```

sleep 1

#### Verify
```
unset OS_SERVICE_TOKEN OS_SERVICE_ENDPOINT
source admin-openrc.sh
keystone tenant-list
keystone user-list
keystone role-list
keystone endpoint-list

```

0 comments on commit c11962d

Please sign in to comment.