OpenStack Ocata : Heat 設定#2 (Network ノード)2017/03/05 |
OpenStack Orchestration Service(Heat)をインストールします。
当例では以下のような環境を例に Orchestration サービスをインストールします。
------------+--------------------------------+--------------------------------+------------ | | | eth0|10.0.0.30 eth0|10.0.0.50 eth0|10.0.0.51 +-----------+-----------+ +-----------+-----------+ +-----------+-----------+ | [ Control Node ] | | [ Network Node ] | | [ Compute Node ] | | | | | | | | MariaDB RabbitMQ | | Open vSwitch | | Libvirt | | Memcached httpd | | L2,L3,Metadata Agent | | Nova Compute | | Keystone Glance | | Heat API API-CFN | | Open vSwitch | | Nova API | | Heat Engine | | L2 Agent | | Neutron Server | | | | | +-----------------------+ +-----------------------+ +-----------------------+ |
[1] | Network ノード に Heat サービスをインストールします。 |
[root@network ~]# yum --enablerepo=centos-openstack-ocata,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 ドメイン名を指定 stack_user_domain_name = heat # Heat ドメイン管理ユーザー名 stack_domain_admin = heat_domain_admin # Heat ドメイン管理ユーザーのパスワード stack_domain_admin_password = servicepassword # RabbitMQ 接続情報 transport_url = rabbit://openstack:password@10.0.0.30 # MariaDB 接続情報 [database] connection = mysql+pymysql://heat:password@10.0.0.30/heat # Keystone サーバー指定 [clients_keystone] auth_uri = http://10.0.0.30:35357 # Keystone サーバー指定 [ec2authtoken] auth_uri = http://10.0.0.30:5000 [heat_api] bind_host = 0.0.0.0 bind_port = 8004 [heat_api_cfn] bind_host = 0.0.0.0 bind_port = 8000 # Keystone サーバー指定 [keystone_authtoken] auth_uri = http://10.0.0.30:5000 auth_url = http://10.0.0.30:35357 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = heat password = servicepassword [trustee] auth_plugin = password auth_url = http://10.0.0.30:35357 username = heat password = servicepassword user_domain_name = default chgrp heat /etc/heat/heat.conf [root@network ~]# chmod 640 /etc/heat/heat.conf [root@network ~]# su -s /bin/bash heat -c "heat-manage db_sync" [root@network ~]# systemctl start openstack-heat-api openstack-heat-api-cfn openstack-heat-engine [root@network ~]# systemctl enable openstack-heat-api openstack-heat-api-cfn openstack-heat-engine |
[3] | Firewalld を有効にしている場合は、サービスポートの許可が必要です。 |
[root@network ~]# firewall-cmd --add-port={8000/tcp,8004/tcp} --permanent success [root@network ~]# firewall-cmd --reload success |
Sponsored Link |
|