# 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';
# . /root/admin-openrc # openstack user create --domain default --password 000000 heat # openstack role add --project service --user heat admin # openstack service create --name heat --description "Orchestration" orchestration # openstack service create --name heat-cfn --description "Orchestration" cloudformation
# openstack endpoint create --region RegionOne orchestration public http://controller:8004/v1/%\(tenant_id\)s # openstack endpoint create --region RegionOne orchestration internal http://controller:8004/v1/%\(tenant_id\)s # openstack endpoint create --region RegionOne orchestration admin http://controller:8004/v1/%\(tenant_id\)s
# openstack endpoint create --region RegionOne cloudformation public http://controller:8000/v1 # openstack endpoint create --region RegionOne cloudformation internal http://controller:8000/v1 # openstack endpoint create --region RegionOne cloudformation admin http://controller:8000/v1
# openstack domain create --description "Stack projects and users" heat # openstack user create --domain heat --password 000000 heat_domain_admin # openstack role add --domain heat --user-domain heat --user heat_domain_admin admin # openstack role create heat_stack_owner # openstack role add --project demo --user demo heat_stack_owner # openstack role create heat_stack_user
# yum -y install openstack-heat-api openstack-heat-api-cfn openstack-heat-engine
# vi /etc/heat/heat.conf 在 「[DEFAULT]」 下添加 rpc_backend = rabbit heat_metadata_server_url = http://controller:8000 heat_waitcondition_server_url = http://controller:8000/v1/waitcondition stack_domain_admin = heat_domain_admin stack_domain_admin_password = 000000 stack_user_domain_name = heat 在 [database] 部分,配置數據庫訪問: connection = mysql+pymysql://heat:000000@controller/heat 在[oslo_messaging_rabbit]」部分,配置 「RabbitMQ」 消息隊列訪問: rabbit_host = controller rabbit_userid = openstack rabbit_password = 000000 `這裏的[keystone_authtoken] 須要手動添加`` 在``[keystone_authtoken]部分,配置認證服務訪問:` [keystone_authtoken] auth_uri = http://controller:5000 auth_url = http://controller:35357 memcached_servers = controller:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = heat password = 000000 在[trustee]部分,配置認證服務訪問: auth_plugin = password auth_url = http://controller:35357 username = heat password = 000000 user_domain_name = default 在[clients_keystone]部分,配置認證服務訪問: auth_uri = http://controller:35357 在[ec2authtoken]部分,配置認證服務訪問: auth_uri = http://controller:5000/v2.0
# su -s /bin/sh -c "heat-manage db_sync" heat
# systemctl start openstack-heat-api.service openstack-heat-api-cfn.service openstack-heat-engine.service # systemctl enable openstack-heat-api.service openstack-heat-api-cfn.service openstack-heat-engine.service
admin
的憑證腳本:# . /root/admin-openrc
# openstack orchestration service list