29.Heat Orchestration介紹及部署

    • 配置服務步驟:
      1. 創建服務同名的用戶,添加到services這個project和admin的role
      2. 創建services和endpoint
      3. 修改配置文件
      4. 更新數據庫

 

    • 安裝軟件

# yum list *heat*

# yum install -y openstack-heat-api.noarch openstack-heat-api-cfn.noarch openstack-heat-api-

cloudwatch.noarch openstack-heat-engine.noarch  openstack-heat-templates.noarch

 

    • 創建服務:

openstack user create heat --password redhat

openstack role add --user heat --project services admin

 

openstack service create --name heat orchestration

 

openstack endpoint create --region RegionOne --publicurl 'http://192.168.179.140:8004/v1/%(tenant_id)s'  --internalurl 'http://192.168.179.140:8004/v1/%(tenant_id)s'  --adminurl 'http://192.168.179.140:8004/v1/%(tenant_id)s'  025d2c04de0b4ed2b731588b7f253860

 

openstack service create --name heat-cfn cloudformation

openstack endpoint create --region RegionOne --publicurl 'http://192.168.179.140:8000/v1'  --internalurl 'http://192.168.179.140:8000/v1'  --adminurl 'http://192.168.179.140:8000/v1'  11cbd712e9a24c2eb8ce1707b00a3241

 

 

    • 修改配置文件:

 

vim heat.conf

 

[root@osp3 heat(keystone_adminv2)]# grep ^rabbit /etc/keystone/keystone.conf

rabbit_host = 192.168.179.140

rabbit_port = 5672

rabbit_hosts = $rabbit_host:$rabbit_port

rabbit_use_ssl = false

rabbit_userid = guest

rabbit_password = guest

rabbit_virtual_host = /

 

加入到配置文件中

 

 

 

    • 因爲AMQP 用的是rabbitmq,不是qpid,修改即可:

 

 

    • 創建數據庫:

create database heat;

grant all privileges on heat.* to heat@'%' identified by 'redhat';

grant all privileges on heat.* to heat@'localhost' identified by 'redhat';

grant all privileges on heat.* to heat@'192.168.179.140' identified by 'redhat';

 

sh -c 'heat-manage db_sync' heat

 

    • 啓動服務:

systemctl list-unit-files | grep heat

systemctl restart openstack-heat-api.service openstack-heat-api-cfn.service openstack-heat-engine.service

 

    • 使用編排功能創建stack:

 

 

 

創建過程中:

創建成功:

 

新建的網絡:

 

 

創建的實例VM:

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章