From d1d829e6aceba61532041d8499dc4ffd8055fbc2 Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Tue, 8 Jul 2014 12:14:28 +1200 Subject: merge.py --hot to process and generate HOT This adds a --hot flag to merge.py which will assume source templates are in the HOT format, and generate a HOT template artifact. Tests have also been ported to HOT, along with some minor corrections to the existing tests to make the source and result templates valid heat templates. Partial-Blueprint: tripleo-juno-remove-mergepy Change-Id: If18ff79f89456123c884a1ab2f910ce4cc9a6e0b --- examples/scale_map2_hot.yaml | 54 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 examples/scale_map2_hot.yaml (limited to 'examples/scale_map2_hot.yaml') diff --git a/examples/scale_map2_hot.yaml b/examples/scale_map2_hot.yaml new file mode 100644 index 00000000..b2b6dfbb --- /dev/null +++ b/examples/scale_map2_hot.yaml @@ -0,0 +1,54 @@ +heat_template_version: 2013-05-23 +parameters: + AllHosts: + type: string + ComputeImage: + type: string +resources: + ComputeAccessPolicy: + type: OS::Heat::AccessPolicy + properties: + AllowedResources: [ NovaCompute0 ] + NovaCompute0Key: + type: AWS::IAM::AccessKey + properties: + UserName: + get_param: ComputeUser + NovaCompute0CompletionCondition: + type: AWS::CloudFormation::WaitCondition + depends_on: notcompute + properties: + Handle: {get_resource: NovaCompute0CompletionHandle} + Count: '1' + Timeout: '1800' + NovaCompute0CompletionHandle: + type: AWS::CloudFormation::WaitConditionHandle + NovaCompute0: + type: OS::Nova::Server + properties: + image: + get_param: ComputeImage + metadata: + os-collect-config: + cfn: + access_key_id: + get_resource: NovaCompute0Key + secret_access_key: + get_attr: [ NovaCompute0Key, SecretAccessKey ] + stack_name: {get_param: 'AWS::StackName'} + path: NovaCompute0Config.Metadata + NovaCompute0Config: + type: AWS::AutoScaling::LaunchConfiguration + metadata: + completion-handle: + get_resource: NovaCompute0CompletionHandle + os-collect-config: + cfn: + access_key_id: + get_resource: NovaCompute0Key + secret_access_key: + get_attr: [ NovaCompute0Key, SecretAccessKey ] + stack_name: {get_param: 'AWS::StackName'} + path: NovaCompute0Config.Metadata + hosts: + get_param: AllHosts -- cgit 1.2.3-korg