Keystone

Keystone is the identity service used by OpenStack. Install Keystone using the following command.

sudo apt-get install keystone python-keystone python-keystoneclient

Open /etc/keystone/keystone.conf and change the line

admin_token = ADMIN

so that it looks like the following:

admin_token = admin

(We have used 'admin' as the token in this book.)

Since MySQL database is used to store keystone configuration, replace the following line in /etc/keystone/keystone.conf

connection = sqlite:////var/lib/keystone/keystone.db

with

connection = mysql://keystonedbadmin:keystonesecret@10.10.10.2/keystone

Restart Keystone:

sudo service keystone restart

Run the following command to synchronise the database:

sudo keystone-manage db_sync

Export environment variables which are required while working with OpenStack.

export SERVICE_ENDPOINT="http://localhost:35357/v2.0"
export SERVICE_TOKEN=admin

You can also add these variables to ~/.bashrc, so that you need not have to export them everytime.



loading table of contents...