记一次云计算测试实验-openstack-icehouse-安装heat

在controller节点配置


yum install openstack-heat-api openstack-heat-engine openstack-heat-api-cfn


openstack-config --set /etc/heat/heat.conf database connection mysql://heat:000000@controller/heat


mysql -uroot -p000000

CREATE DATABASE heat;

GRANT ALL PRIVILEGES ON heat.* TO 'heat'@'localhost' IDENTIFIED BY '000000';

GRANT ALL PRIVILEGES ON heat.* TO 'heat'@'%' IDENTIFIED BY '000000';

exit


su -s /bin/sh -c "heat-manage db_sync" heat


openstack-config --set /etc/heat/heat.conf DEFAULT qpid_hostname controller


. admin-openrc.sh

keystone user-create --name=heat --pass=000000 --email=heat@localhost

keystone user-role-add --user=heat --tenant=service --role=admin


openstack-config --set /etc/heat/heat.conf keystone_authtoken auth_uri http://controller:5000/v2.0

openstack-config --set /etc/heat/heat.conf keystone_authtoken auth_port 35357

openstack-config --set /etc/heat/heat.conf keystone_authtoken auth_protocol http

openstack-config --set /etc/heat/heat.conf keystone_authtoken admin_tenant_name service

openstack-config --set /etc/heat/heat.conf keystone_authtoken admin_user heat

openstack-config --set /etc/heat/heat.conf keystone_authtoken admin_password 000000

openstack-config --set /etc/heat/heat.conf ec2authtoken auth_uri http://controller:5000/v2.0


keystone service-create --name=heat --type=orchestration --description="Orchestration"

keystone endpoint-create \

 --service-id=$(keystone service-list | awk '/ orchestration / {print $2}') \

 --publicurl=http://controller:8004/v1/%\(tenant_id\)s \

 --internalurl=http://controller:8004/v1/%\(tenant_id\)s \

 --adminurl=http://controller:8004/v1/%\(tenant_id\)s


keystone service-create --name=heat-cfn --type=cloudformation --description="Orchestration CloudFormation"

keystone endpoint-create \

 --service-id=$(keystone service-list | awk '/ cloudformation / {print $2}') \

 --publicurl=http://controller:8000/v1 \

 --internalurl=http://controller:8000/v1 \

 --adminurl=http://controller:8000/v1


keystone role-create --name heat_stack_user


(注:192.168.100.10为物理controller的管理网络IP地址)

openstack-config --set /etc/heat/heat.conf DEFAULT heat_metadata_server_url http://192.168.100.10:8000

openstack-config --set /etc/heat/heat.conf DEFAULT heat_waitcondition_server_url http://192.168.100.10:8000/v1/waitcondition


service openstack-heat-api start

service openstack-heat-api-cfn start

service openstack-heat-engine start

chkconfig openstack-heat-api on

chkconfig openstack-heat-api-cfn on

chkconfig openstack-heat-engine on



. admin-openrc.sh

heat stack-list



刷新web界面。会发现dashboard界面的项目中多了一个编配栏目


你可能感兴趣的:(记一次云计算测试实验-openstack-icehouse-安装heat)