Advertisement
Guest User

Previous command

a guest
Jan 16th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. #Keystone (Openstack identity service)
  2.  
  3. #Create MYSQL DB
  4.  
  5. mysql -u root -p
  6.  
  7. CREATE DATABASE keystone;
  8. GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' \
  9. IDENTIFIED BY 'MOT_DE_PASSE_DB';
  10. GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' \
  11. IDENTIFIED BY 'KEYSTONE_DBPASS';
  12.  
  13. #Install and configure Keystone
  14.  
  15. yum -y install openstack-keystone httpd mod_wsgi
  16.  
  17. #Next copy the keystone.conf in /etc/keystone/keystone.conf
  18.  
  19. su -s /bin/sh -c "keystone-manage db_sync" keystone
  20. keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone
  21. keystone-manage credential_setup --keystone-user keystone --keystone-group keystone
  22.  
  23. keystone-manage bootstrap --bootstrap-password KEYSTONE_PASSWORD\
  24. --bootstrap-admin-url http://localhost:5000/v3/ \
  25. --bootstrap-internal-url http://localhost:5000/v3/ \
  26. --bootstrap-public-url http://localhost:5000/v3/ \
  27. --bootstrap-region-id RegionOne
  28.  
  29. vi /etc/httpd/conf/httpd.conf #and modify the hostname to controller
  30.  
  31. ln -s /usr/share/keystone/wsgi-keystone.conf /etc/httpd/conf.d/
  32.  
  33. export OS_USERNAME=admin
  34. export OS_PASSWORD=KEYSTONNE_PASSWORD
  35. export OS_PROJECT_NAME=default
  36. export OS_USER_DOMAIN_NAME=default
  37. export OS_PROJECT_DOMAIN_NAME=default
  38. export OS_AUTH_URL=http://controller:5000/v3
  39. export OS_IDENTITY_API_VERSION="3"
  40.  
  41.  
  42. openstack --os-username=admin --os-user-domain-name=default --os-password=PierreSuzanneTherese token issue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement