Fix yaml formatting
[apex-tripleo-heat-templates.git] / glance.yaml
1 HeatTemplateFormatVersion: '2012-12-12'
2 Description: 'HEAT Template - Glance'
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   GlanceDSN:
13     Description: DSN for connecting to glance database
14     Type: String
15   GlanceImage:
16     Type: String
17   KeystoneHost:
18     Type: String
19   ServicePassword:
20     Description: admin_password for setting up auth in keystone.
21     Type: String
22   TemplateURL:
23     Type: String
24     Default: https://raw.github.com/openstack-ops/templates/master/
25 Resources:
26   GlanceUser:
27     Type: AWS::CloudFormation::Stack
28     TemplateURL: {'Fn::Join': [ {Ref: TemplateURL} , 'generic-user.yaml' ]}
29     Parameters:
30       AccessList: [ Glance ]
31   Glance:
32     Type: AWS::EC2::Instance
33     Properties:
34       ImageId:
35         {Ref: GlanceImage}
36       InstanceType: {Ref: InstanceType}
37       KeyName: {Ref: KeyName}
38     Metadata:
39       OpenStack::ImageBuilder::Elements: [ glance ]
40       heat: 
41         access_key_id:
42           Fn::GetAtt: [ GlanceUser, AccessKeyId ]
43         secret_key:
44           Fn::GetAtt: [ GlanceUser, SecretAccessKey ]
45         stack:
46           name: {Ref: 'AWS::StackName'}
47           region: {Ref: 'AWS::Region'}
48         refresh:
49           - resource: Glance
50       keystone:
51         host: {Ref: KeystoneHost}
52       glance:
53         db: {Ref: GlanceDSN}
54       service-password: {Ref: ServicePassword}
55       rabbit:
56         host: {Ref: RabbitHost}
57         password: {Ref: RabbitPassword}
58       swift.store_user: ''
59       swift.store_key: ''