From c768c4e350164a9548d8677bfe97e721448d92fa Mon Sep 17 00:00:00 2001
From: ricolin <rico.l@inwinstack.com>
Date: Wed, 18 Nov 2015 14:16:38 +0800
Subject: [PATCH] Template for Nova host aggregate

Add template example for Nova host aggregate resource

blueprint support-host-aggregate

Change-Id: Icd1bb46cccb5e07b27449503d54cde22fd9cd76d
---
 hot/nova/host_aggregate.yaml | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 hot/nova/host_aggregate.yaml

diff --git a/hot/nova/host_aggregate.yaml b/hot/nova/host_aggregate.yaml
new file mode 100644
index 00000000..54966600
--- /dev/null
+++ b/hot/nova/host_aggregate.yaml
@@ -0,0 +1,31 @@
+heat_template_version: 2015-10-15
+
+description: Sample Nova Host Aggregate template
+
+parameters:
+  host_aggregate_name:
+    type: string
+    description: Nova host aggregate name
+  availability_zone_name:
+    type: string
+    description: Nova availability zone name
+  hosts:
+    type: comma_delimited_list
+    description: Nova host name list
+  metadata:
+    type: json
+    description: Arbitrary key/value metadata
+
+resources:
+  sample_host_aggregate:
+    type: OS::Nova::HostAggregate
+    properties:
+      name: {get_param: host_aggregate_name}
+      availability_zone: {get_param: availability_zone_name}
+      hosts: {get_param: hosts}
+      metadata: {get_param: metadata}
+
+outputs:
+  sample_host_aggregate_id:
+    value: {get_resource: sample_host_aggregate}
+    description: Sample nova host_aggregate