Based on Ubuntu 14.04 LTS x86_64
we will install Heat on controller node
1. aptitude -y install heat-api heat-api-cfn heat-engine
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;
2. vi /etc/heat/heat.conf
[database]
connection=mysql://heat:heat@MYSQL-SERVER/heat
rm -rf /var/lib/heat/heat.sqlite
heat-manage db_sync
3. vi /etc/heat/heat.conf
[DEFAULT]
verbose = True
log_dir=/var/log/heat
rabbit_host = controller
rabbit_password = RABBIT_PASS
heat_metadata_server_url=http://controller:8000
heat_waitcondition_server_url=http://controller:8000/v1/waitcondition
[keystone_authtoken]
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
[ec2authtoken]
auth_uri = http://controller:5000/v2.0
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. chown -R heat:heat /etc/heat /var/log/heat
service heat-api restart
service heat-api-cfn restart
service heat-engine restart |