Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Keystone (Openstack identity service)
- #Create MYSQL DB
- mysql -u root -p
- CREATE DATABASE keystone;
- GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' \
- IDENTIFIED BY 'MOT_DE_PASSE_DB';
- GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' \
- IDENTIFIED BY 'KEYSTONE_DBPASS';
- #Install and configure Keystone
- yum -y install openstack-keystone httpd mod_wsgi
- #Next copy the keystone.conf in /etc/keystone/keystone.conf
- su -s /bin/sh -c "keystone-manage db_sync" keystone
- keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone
- keystone-manage credential_setup --keystone-user keystone --keystone-group keystone
- keystone-manage bootstrap --bootstrap-password KEYSTONE_PASSWORD\
- --bootstrap-admin-url http://localhost:5000/v3/ \
- --bootstrap-internal-url http://localhost:5000/v3/ \
- --bootstrap-public-url http://localhost:5000/v3/ \
- --bootstrap-region-id RegionOne
- vi /etc/httpd/conf/httpd.conf #and modify the hostname to controller
- ln -s /usr/share/keystone/wsgi-keystone.conf /etc/httpd/conf.d/
- export OS_USERNAME=admin
- export OS_PASSWORD=KEYSTONNE_PASSWORD
- export OS_PROJECT_NAME=default
- export OS_USER_DOMAIN_NAME=default
- export OS_PROJECT_DOMAIN_NAME=default
- export OS_AUTH_URL=http://controller:5000/v3
- export OS_IDENTITY_API_VERSION="3"
- openstack --os-username=admin --os-user-domain-name=default --os-password=PierreSuzanneTherese token issue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement