Install and Configure OpenStack Orchestration Service (Heat)
Based on OpenStack Icehouse releasewe will install Heat on controller node
1.yum -y install openstack-heat-api openstack-heat-engine openstack-heat-api-cfn
2. mysql -uroot -p
mysql> create database heat;
mysql> grant all privileges on heat.* to 'heat'@'localhost' identified by 'HEAT-DBPASS';
mysql> grant all privileges on heat.* to 'heat'@'%' identified by 'HEAT-DBPASS';
mysql> flush privileges;
3.vi /etc/heat/heat.conf
connection=mysql://heat:heat@MYSQL-SERVER/heat
heat-manage db_sync
4. # Create a heat user
keystone user-create --tenant service --name heat --pass HEAT-USER-PASSWORD
# Add role to the heat user
keystone user-role-add --user=heat --tenant=service --role=admin
# Create the heat service
keystone service-create --name=heat --type=orchestration --description="Orchestration Service"
# Create a heat endpoint
keystone endpoint-create --region RegionOne --service heat --publicurl=http://controller:8004/v1/%\(tenant_id\)s --internalurl=http://controller:8004/v1/%\(tenant_id\)s --adminurl=http://controller:8004/v1/%\(tenant_id\)s
# create AWS CloudFormation service
keystone service-create --name=heat-cfn --type=cloudformation --description="Orchestration AWS CloudFormation"
# create AWS CloudFormation endpoint
keystone endpoint-create --region RegionOne --service heat-cfn --publicurl=http://controller:8000/v1 --internalurl=http://controller:8000/v1 --adminurl=http://controller:8000/v1
# Create the heat_stack_user role
keystone role-create --name heat_stack_user
5. vi /etc/heat/heat.conf
auth_host = controller
auth_port = 35357
auth_protocol = http
auth_uri = http://controller:5000/v2.0
admin_tenant_name = service
admin_user = heat
admin_password = HEAT-USER-PASSWORD
auth_uri = http://controller:5000/v2.0
heat_metadata_server_url=http://controller:8000
heat_waitcondition_server_url=http://controller:8000/v1/waitcondition
6. chown -R heat:heat /etc/heat /var/log/heat
service openstack-heat-api start; chkconfig openstack-heat-api on
service openstack-heat-api-cfn start; chkconfig openstack-heat-api-cfn on
service openstack-heat-engine start; chkconfig openstack-heat-engine on
页:
[1]