Oracle® Solaris での OpenStack (Kilo) のインストールと構成

印刷ビューの終了

更新: 2016 年 6 月
 
 

HOT テンプレートについて

Heat を使用して OpenStack 構成で複数の複合クラウドアプリケーションのオーケストレーションを行うには、Heat オーケストレーションテンプレート (HOT) を定義する必要があります。HOT テンプレートには、ユーザーが入力する必要がある指定が含まれています。指定したパラメータは、リソースタイプやその他の高度な機能を作成するプロセスの実行時に読み取られます。

HOT テンプレートの指定とその説明については、http://docs.openstack.org/developer/heat/template_guide/hot_spec.html#hot-spec を参照してください。

HOT テンプレートを作成する方法については、http://docs.openstack.org/developer/heat/template_guide/hot_guide.html#hot-guide を参照してください。

HOT テンプレートを配備するには、次のコマンドを使用します。

# heat stack-create -f template stack-name
template

処理するテンプレートファイルのフルパス。

stack-name

作成するスタック

コマンドに形式 –P key1=value1;key2=value2... を使用して、追加のパラメータ値を挿入することもできます。

次の例は、サブネットを持つ 3 つのプライベートネットワークを作成する stack3 という名前の HOT テンプレートの内容を示しています。


注 - heat_template_version: 2013-05-23 は、テンプレートの最上部にある必要があります。
heat_template_version: 2013-05-23
description: Create a few networks.

resources:
  heat_net1:
    type:OS::Neutron::Net
    properties:
      name:heat_net1

  heat_subnet1:
    type:OS::Neutron::Subnet
    properties:
      name:heat_subnet1
      network_id: { get_resource: heat_net1 }
      cidr: 192.168.50.0/24

  heat_net2:
    type:OS::Neutron::Net
    properties:
      name: heat_net2

  heat_subnet2:
    type:OS::Neutron::Subnet
    properties:
      name:heat_subnet2
      network_id: { get_resource: heat_net2 }
      cidr: 192.168.51.0/24

  heat_net3:
    type:OS::Neutron::Net
    properties:
      name: heat_net3

  heat_subnet3:
    type:OS::Neutron::Subnet
    properties:
      name:heat_subnet3
      network_id: { get_resource: heat_net3 }
      cidr: 192.168.52.0/24