Installing Keystone
Perform the following operations on the controller node.
- Install the Keystone package.
1yum -y install openstack-keystone httpd mod_wsgi
- Modify the /etc/keystone/keystone.conf file.
- Open the file.
1vi /etc/keystone/keystone.conf - Press i to enter the insert mode and perform the following configurations.
- Add the following content under [database]:
1connection = mysql+pymysql://keystone:PASSWORD@controller/keystone
- Replace PASSWORD with the password for user keystone to access the database, which is described in Creating the Keystone Database.
- controller is the hostname of the controller node.
- Add the following content under [token]:
1provider = fernet
- Add the following content under [database]:
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Populate the Identity service database.
1su -s /bin/sh -c "keystone-manage db_sync" keystone
- Initialize Fernet key repositories.
1 2
keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone keystone-manage credential_setup --keystone-user keystone --keystone-group keystone
- Bootstrap the Identity service.
1 2 3 4 5
keystone-manage bootstrap --bootstrap-password PASSWORD \ --bootstrap-admin-url http://controller:5000/v3/ \ --bootstrap-internal-url http://controller:5000/v3/ \ --bootstrap-public-url http://controller:5000/v3/ \ --bootstrap-region-id RegionOne
Replace PASSWORD with the password for the keystone user to access the database.
Parent topic: Installing, Configuring, and Verifying Keystone