tripleo-heat-templates/examples/scale_map2_hot.yaml
Steve Baker beca15dec5 Port all templates to HOT
This change was generated and validated by running the following:

    make hot clean all validate-all

This converts all templates to be valid HOT.

Fn::Select is not converted in this change but this will actually
work with heat_template_version 2013-05-23. Fn::Select is converted
manually in the next change in this series.

This change also sets the heat_template_version to 2014-10-16 which
includes the list_join intrinsic functions used throughout these
templates.

Partial-Blueprint: tripleo-juno-remove-mergepy
Change-Id: Ib3cbb83f6ae94adb7b793ab1b662bd5c55cbb5b3
2014-08-04 08:57:52 +12:00

55 lines
1.5 KiB
YAML

heat_template_version: 2014-10-16
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