Add an example of Type: FileInclude.
[apex-tripleo-heat-templates.git] / heat-allinone.yaml
1 HeatTemplateFormatVersion: '2012-12-12'
2 Description: 'Heat Engine and API'
3 Parameters:
4   KeyName: 
5     Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
6     Type: String
7     Default: default
8   InstanceType:
9     Description: Use this flavor
10     Type: String
11     Default: bm.small
12   HeatUser:
13     Description: Heat database username.
14     Type: String
15     Default: heat
16   HeatImage:
17     Type: String
18   RabbitMQHost:
19     Description: Host for RabbitMQ
20     Type: String
21   RabbitMQPassword:
22     Description: Password for RabbitMQ
23     Type: String
24 Resources:
25   HeatAccessPolicy:
26     Type: OS::Heat::AccessPolicy
27     Properties:
28       AllowedResources: [ Heat ]
29   HeatUser:
30     Type: AWS::IAM::User
31     Properties:
32       Policies: [ { Ref: HeatAccessPolicy } ]
33   HeatKey:
34     Type: AWS::IAM::AccessKey
35     Properties:
36       UserName:
37         Ref: HeatUser
38   Heat:
39     Type: AWS::EC2::Instance
40     Properties:
41       ImageId:
42         {Ref: HeatImage}
43     Metadata:
44       OpenStack::Role: stateful
45       OpenStack::ImageBuilder::Elements: [ heat-api, heat-engine ]
46       heat:
47         rpc_backend: heat.openstack.common.rpc.impl_kombu
48         rabbit:
49           host: {Ref: RabbitMQHost}
50           password: {Ref: RabbitMQPassword}
51         access_key_id:
52           Ref: HeatKey
53         secret_key:
54           Fn::GetAtt: [ HeatKey, SecretAccessKey ]
55         stack:
56           name: {Ref: 'AWS::StackName'}
57           region: {Ref: 'AWS::Region'}
58         refresh:
59           - resource: Heat