Advertisement
Guest User

Untitled

a guest
Aug 24th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. Tạo Database
  2.  
  3. mysql -uroot -p
  4. CREATE DATABASE mistral;
  5. GRANT ALL PRIVILEGES ON mistral.* TO 'mistral'@'localhost' IDENTIFIED BY '123456';
  6. GRANT ALL PRIVILEGES ON mistral.* TO 'mistral'@'%' IDENTIFIED BY '123456';
  7. exit
  8.  
  9.  
  10. Chỉnh /etc/mistral/mistral.conf
  11.  
  12. [oslo_messaging_rabbit]
  13. rabbit_host = controller
  14. rabbit_userid = openstack
  15. rabbit_password = 123456
  16.  
  17. [database]
  18. connection = mysql://mistral:123456@controller:3306/mistral
  19.  
  20.  
  21. [keystone_authtoken]
  22. auth_uri = http://controller:5000/v3
  23. identity_uri = http://controller:35357
  24. auth_version = v3
  25. admin_user = mistral
  26. admin_password = 123456
  27. admin_tenant_name = service
  28.  
  29. [executor]
  30. host = 0.0.0.0
  31.  
  32. Tạo user, add role, tạo service
  33. openstack user create --password 123456 mistral
  34. openstack role add --project service --user mistral admin
  35. openstack service create --name mistral --description "Mistral Project" workflowv2
  36.  
  37. Tạo endpoint
  38. MISTRAL_URL="http://controller:8989/v2"
  39. openstack endpoint create mistral public $MISTRAL_URL
  40. openstack endpoint create mistral internal $MISTRAL_URL
  41. openstack endpoint create mistral admin $MISTRAL_URL
  42.  
  43. Nạp database
  44. mistral-db-manage --config-file /etc/mistral/mistral.conf upgrade head
  45. mistral-db-manage --config-file /path/to/mistral.conf populate
  46.  
  47. Chạy 2 tab
  48. mistral-server --server api,engine --config-file /etc/mistral/mistral.conf &
  49. mistral-server --server executor --config-file /etc/mistral/mistral.conf &
  50.  
  51. Cài Mistral Client
  52. git clone git://git.openstack.org/openstack/python-mistralclient.git -b stable/ocata
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement