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:

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值