openstack-pike安装heat

在控制节点安装

1、首先进入数据库创建heat数据库,并且赋予权限

mysql -u root -p
CREATE DATABASE heat;
GRANT ALL PRIVILEGES ON heat.* TO 'heat'@'localhost' \
  IDENTIFIED BY 'HEAT_DBPASS';
GRANT ALL PRIVILEGES ON heat.* TO 'heat'@'%' \
  IDENTIFIED BY 'HEAT_DBPASS';

2、创建heat用户并且添加规则

 openstack user create --domain default --password-prompt heat
  openstack role add --project service --user heat admin

3、创建heat和heat-cfn服务

openstack service create --name heat \
  --description "Orchestration" orchestration
openstack service create --name heat-cfn \
  --description "Orchestration"  cloudformation

4、创建heat服务API端口

 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

5、创建包含项目和用户的heat域

openstack domain create --description "Stack projects and users" heat

6、创建heat_domain_admin用户来管理heat域中的项目和用户,并且添加规则

openstack user create --domain heat --password-prompt heat_domain_admin
penstack role add --domain heat --user-domain heat --user heat_domain_admin admin

7、创建heat_stack_owner用户,并且添加规则

openstack role create heat_stack_owner
openstack role add --project demo --user demo heat_stack_owner

8、创建heat_stack_user规则

openstack role create heat_stack_user

9、安装heat软件包

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

10、修改配置文件/etc/heat/heat.conf

[database]
connection = mysql+pymysql://heat:HEAT_DBPASS@controller/heat
[DEFAULT]
transport_url = rabbit://openstack:RABBIT_PASS@controller
[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 = HEAT_PASS
[trustee]
auth_type = password
auth_url = http://controller:35357
username = heat
password = HEAT_PASS
user_domain_name = default
[clients_keystone]
auth_uri = http://controller:35357
[ec2authtoken]
auth_uri = http://controller:5000/v3
[DEFAULT]
heat_metadata_server_url = http://controller:8000
heat_waitcondition_server_url = http://controller:8000/v1/waitcondition
[DEFAULT]
stack_domain_admin = heat_domain_admin
stack_domain_admin_password = HEAT_DOMAIN_PASS
stack_user_domain_name = heat

11、同步数据看

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

12、启动heat服务并且设置开机自动启动

systemctl enable openstack-heat-api.service \
  openstack-heat-api-cfn.service openstack-heat-engine.service
systemctl start openstack-heat-api.service \
  openstack-heat-api-cfn.service openstack-heat-engine.service

13、验证

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值