Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tạo Database
- mysql -uroot -p
- CREATE DATABASE mistral;
- GRANT ALL PRIVILEGES ON mistral.* TO 'mistral'@'localhost' IDENTIFIED BY '123456';
- GRANT ALL PRIVILEGES ON mistral.* TO 'mistral'@'%' IDENTIFIED BY '123456';
- exit
- Chỉnh /etc/mistral/mistral.conf
- [oslo_messaging_rabbit]
- rabbit_host = controller
- rabbit_userid = openstack
- rabbit_password = 123456
- [database]
- connection = mysql://mistral:123456@controller:3306/mistral
- [keystone_authtoken]
- auth_uri = http://controller:5000/v3
- identity_uri = http://controller:35357
- auth_version = v3
- admin_user = mistral
- admin_password = 123456
- admin_tenant_name = service
- [executor]
- host = 0.0.0.0
- Tạo user, add role, tạo service
- openstack user create --password 123456 mistral
- openstack role add --project service --user mistral admin
- openstack service create --name mistral --description "Mistral Project" workflowv2
- Tạo endpoint
- MISTRAL_URL="http://controller:8989/v2"
- openstack endpoint create mistral public $MISTRAL_URL
- openstack endpoint create mistral internal $MISTRAL_URL
- openstack endpoint create mistral admin $MISTRAL_URL
- Nạp database
- mistral-db-manage --config-file /etc/mistral/mistral.conf upgrade head
- mistral-db-manage --config-file /path/to/mistral.conf populate
- Chạy 2 tab
- mistral-server --server api,engine --config-file /etc/mistral/mistral.conf &
- mistral-server --server executor --config-file /etc/mistral/mistral.conf &
- Cài Mistral Client
- git clone git://git.openstack.org/openstack/python-mistralclient.git -b stable/ocata
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement