diff options
author | 2014-07-08 12:14:28 +1200 | |
---|---|---|
committer | 2014-08-01 10:49:59 +1200 | |
commit | d1d829e6aceba61532041d8499dc4ffd8055fbc2 (patch) | |
tree | 17cc9b01eaca65d8c85df9f9acea2f4d3c54bf3f /examples/scale_map_result_hot.yaml | |
parent | 998c5dda9c6d3ddf0f654c71d4c172b7b6dd3e59 (diff) |
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
Diffstat (limited to 'examples/scale_map_result_hot.yaml')
-rw-r--r-- | examples/scale_map_result_hot.yaml | 367 |
1 files changed, 367 insertions, 0 deletions
diff --git a/examples/scale_map_result_hot.yaml b/examples/scale_map_result_hot.yaml new file mode 100644 index 00000000..5976e54e --- /dev/null +++ b/examples/scale_map_result_hot.yaml @@ -0,0 +1,367 @@ +description: examples/scale_map_hot.yaml +heat_template_version: '2013-05-23' +resources: + ComputeUser: + properties: + Policies: + - get_param: ComputeAccessPolicy + type: AWS::IAM::User + GlobalAccessPolicy: + type: OS::Heat::AccessPolicy + NovaCompute0: + metadata: + os-collect-config: + cfn: + access_key_id: + get_resource: NovaCompute0Key + path: NovaCompute0Config.Metadata + secret_access_key: + get_attr: + - NovaCompute0Key + - SecretAccessKey + stack_name: + get_param: AWS::StackName + properties: + image: + get_param: ComputeImage + type: OS::Nova::Server + NovaCompute0CompletionCondition: + depends_on: notcompute + properties: + Count: '1' + Handle: + get_resource: NovaCompute0CompletionHandle + Timeout: '1800' + type: AWS::CloudFormation::WaitCondition + NovaCompute0CompletionHandle: + type: AWS::CloudFormation::WaitConditionHandle + NovaCompute0Config: + metadata: + completion-handle: + get_resource: NovaCompute0CompletionHandle + hosts: + list_join: + - ' + + ' + - - list_join: + - ' ' + - - Fn::Select: + - 0 + - Fn::Select: + - ctlplane + - get_attr: + - NovaCompute0 + - networks + - Fn::Select: + - name + - get_attr: + - NovaCompute0 + - show + - list_join: + - . + - - Fn::Select: + - name + - get_attr: + - NovaCompute0 + - show + - local + - list_join: + - ' ' + - - Fn::Select: + - 0 + - Fn::Select: + - ctlplane + - get_attr: + - NovaCompute1 + - networks + - Fn::Select: + - name + - get_attr: + - NovaCompute1 + - show + - list_join: + - . + - - Fn::Select: + - name + - get_attr: + - NovaCompute1 + - show + - local + - list_join: + - ' ' + - - Fn::Select: + - 0 + - Fn::Select: + - ctlplane + - get_attr: + - NovaCompute2 + - networks + - Fn::Select: + - name + - get_attr: + - NovaCompute2 + - show + - list_join: + - . + - - Fn::Select: + - name + - get_attr: + - NovaCompute2 + - show + - local + os-collect-config: + cfn: + access_key_id: + get_resource: NovaCompute0Key + path: NovaCompute0Config.Metadata + secret_access_key: + get_attr: + - NovaCompute0Key + - SecretAccessKey + stack_name: + get_param: AWS::StackName + type: AWS::AutoScaling::LaunchConfiguration + NovaCompute0Key: + properties: + UserName: + get_param: ComputeUser + type: AWS::IAM::AccessKey + NovaCompute1: + metadata: + os-collect-config: + cfn: + access_key_id: + get_resource: NovaCompute1Key + path: NovaCompute1Config.Metadata + secret_access_key: + get_attr: + - NovaCompute1Key + - SecretAccessKey + stack_name: + get_param: AWS::StackName + properties: + image: + get_param: ComputeImage + type: OS::Nova::Server + NovaCompute1CompletionCondition: + depends_on: notcompute + properties: + Count: '1' + Handle: + get_resource: NovaCompute1CompletionHandle + Timeout: '1800' + type: AWS::CloudFormation::WaitCondition + NovaCompute1CompletionHandle: + type: AWS::CloudFormation::WaitConditionHandle + NovaCompute1Config: + metadata: + completion-handle: + get_resource: NovaCompute1CompletionHandle + hosts: + list_join: + - ' + + ' + - - list_join: + - ' ' + - - Fn::Select: + - 0 + - Fn::Select: + - ctlplane + - get_attr: + - NovaCompute0 + - networks + - Fn::Select: + - name + - get_attr: + - NovaCompute0 + - show + - list_join: + - . + - - Fn::Select: + - name + - get_attr: + - NovaCompute0 + - show + - local + - list_join: + - ' ' + - - Fn::Select: + - 0 + - Fn::Select: + - ctlplane + - get_attr: + - NovaCompute1 + - networks + - Fn::Select: + - name + - get_attr: + - NovaCompute1 + - show + - list_join: + - . + - - Fn::Select: + - name + - get_attr: + - NovaCompute1 + - show + - local + - list_join: + - ' ' + - - Fn::Select: + - 0 + - Fn::Select: + - ctlplane + - get_attr: + - NovaCompute2 + - networks + - Fn::Select: + - name + - get_attr: + - NovaCompute2 + - show + - list_join: + - . + - - Fn::Select: + - name + - get_attr: + - NovaCompute2 + - show + - local + os-collect-config: + cfn: + access_key_id: + get_resource: NovaCompute1Key + path: NovaCompute1Config.Metadata + secret_access_key: + get_attr: + - NovaCompute1Key + - SecretAccessKey + stack_name: + get_param: AWS::StackName + type: AWS::AutoScaling::LaunchConfiguration + NovaCompute1Key: + properties: + UserName: + get_param: ComputeUser + type: AWS::IAM::AccessKey + NovaCompute2: + metadata: + os-collect-config: + cfn: + access_key_id: + get_resource: NovaCompute2Key + path: NovaCompute2Config.Metadata + secret_access_key: + get_attr: + - NovaCompute2Key + - SecretAccessKey + stack_name: + get_param: AWS::StackName + properties: + image: + get_param: ComputeImage + type: OS::Nova::Server + NovaCompute2CompletionCondition: + depends_on: notcompute + properties: + Count: '1' + Handle: + get_resource: NovaCompute2CompletionHandle + Timeout: '1800' + type: AWS::CloudFormation::WaitCondition + NovaCompute2CompletionHandle: + type: AWS::CloudFormation::WaitConditionHandle + NovaCompute2Config: + metadata: + completion-handle: + get_resource: NovaCompute2CompletionHandle + hosts: + list_join: + - ' + + ' + - - list_join: + - ' ' + - - Fn::Select: + - 0 + - Fn::Select: + - ctlplane + - get_attr: + - NovaCompute0 + - networks + - Fn::Select: + - name + - get_attr: + - NovaCompute0 + - show + - list_join: + - . + - - Fn::Select: + - name + - get_attr: + - NovaCompute0 + - show + - local + - list_join: + - ' ' + - - Fn::Select: + - 0 + - Fn::Select: + - ctlplane + - get_attr: + - NovaCompute1 + - networks + - Fn::Select: + - name + - get_attr: + - NovaCompute1 + - show + - list_join: + - . + - - Fn::Select: + - name + - get_attr: + - NovaCompute1 + - show + - local + - list_join: + - ' ' + - - Fn::Select: + - 0 + - Fn::Select: + - ctlplane + - get_attr: + - NovaCompute2 + - networks + - Fn::Select: + - name + - get_attr: + - NovaCompute2 + - show + - list_join: + - . + - - Fn::Select: + - name + - get_attr: + - NovaCompute2 + - show + - local + os-collect-config: + cfn: + access_key_id: + get_resource: NovaCompute2Key + path: NovaCompute2Config.Metadata + secret_access_key: + get_attr: + - NovaCompute2Key + - SecretAccessKey + stack_name: + get_param: AWS::StackName + type: AWS::AutoScaling::LaunchConfiguration + NovaCompute2Key: + properties: + UserName: + get_param: ComputeUser + type: AWS::IAM::AccessKey |