CentOS 6
Sponsored Link

OpenStack Icehouse : Heat 設定#22015/02/02

 
OpenStack Orchestration Service(Heat)をインストールします。
ここでは以下のような構築済みの環境に Heat を追加インストールして設定します。
例として、Network Node に Orchestration サービス一式をインストールして設定します。
                                |
+------------------+            |            +------------------------+
| [ Control Node ] |            |            |    [ Network Node ]    |
|     Keystone     |10.0.0.30   |   10.0.0.50|    DHCP,L3,L2 Agent    |
|      Glance      |------------+------------|     Metadata Agent     |
|     Nova API     |eth0        |        eth0|    Heat API,API-CFN    |
|  Neutron Server  |            |            |       Heat Engine      |
+------------------+            |            +------------------------+
                            eth0|10.0.0.51
                      +--------------------+
                      |  [ Compute Node ]  |
                      |    Nova Compute    |
                      |      L2 Agent      |
                      +--------------------+

 
ここでは Heat サービスのインストールと設定をします。
[1] Heat サービスをインストールします。
# RDO, EPEL からインストール

[root@network ~]#
yum --enablerepo=openstack-icehouse,epel -y install openstack-heat-api openstack-heat-api-cfn openstack-heat-engine python-heatclient
[2] Heat サービスを設定します。
[root@network ~]#
mv /etc/heat/heat.conf /etc/heat/heat.conf.org

[root@network ~]#
vi /etc/heat/heat.conf
# 以下のように新規作成

[DEFAULT]
deferred_auth_method=trusts
trusts_delegated_roles=heat_stack_owner
# Heat インストールサーバーを指定

heat_metadata_server_url=http://10.0.0.50:8000
heat_waitcondition_server_url=http://10.0.0.50:8000/v1/waitcondition
heat_watch_server_url=http://10.0.0.50:8003
heat_stack_user_role=heat_stack_user
# Heat ドメインID を指定

stack_user_domain=691c160cf5304d029828417832ffe91e
# Heat ドメイン管理ユーザー名

stack_domain_admin=heat_domain_admin
# Heat ドメイン管理ユーザーのパスワード

stack_domain_admin_password=domainpassword
# RabbitMQ サーバー指定

rabbit_host=10.0.0.30
rabbit_port=5672
# RabbitMQ ユーザーID

rabbit_userid=guest
# RabbitMQ ユーザーのパスワード

rabbit_password=password
rpc_backend=heat.openstack.common.rpc.impl_kombu
verbose=True
[database]
# MariaDB 接続情報

connection=mysql://heat:password@10.0.0.30/heat
[ec2authtoken]
# Keystone サーバー指定

auth_uri=http://10.0.0.30:35357/v2.0
[heat_api]
bind_host=0.0.0.0
bind_port=8004
[heat_api_cfn]
bind_host=0.0.0.0
bind_port=8000
[keystone_authtoken]
# Keystone サーバー指定

auth_host=10.0.0.30
auth_port=35357
auth_protocol=http
auth_uri=http://10.0.0.30:35357/v2.0
# Heat 管理ユーザー指定

admin_user=heat
# Heat 管理ユーザーのパスワード

admin_password=servicepassword
# Heat 管理ユーザーのテナント

admin_tenant_name=service
[root@network ~]#
chgrp heat /etc/heat/heat.conf

[root@network ~]#
chmod 640 /etc/heat/heat.conf

[root@network ~]#
heat-manage db_sync

[root@network ~]#
for service in api api-cfn engine
do
/etc/rc.d/init.d/openstack-heat-$service start
chkconfig openstack-heat-$service on
done

Starting openstack-heat-api: [ OK ]
Starting openstack-heat-api-cfn: [ OK ]
Starting openstack-heat-engine: [ OK ]
関連コンテンツ