Add glance to mysql and base.
[apex-tripleo-heat-templates.git] / base.yaml
1 HeatTemplateFormatVersion: '2012-12-12'
2 Description: 'HEAT Template - Tie OpenStack components together'
3 Parameters:
4   TemplateRoot:
5     Description: URL Base where all of our templates are available
6     Type: String
7   KeystoneAdminToken:
8     Description: Admin Token needed for keystone
9     Type: String
10 Resources:
11   RabbitMQ:
12     Type: AWS::CloudFormation::Stack
13     TemplateURL:
14       Fn::Join:
15         - {Ref: TemplateRoot}
16         - rabbitmq.yaml
17     Parameters:
18       InstanceType: m1.small
19       KeyName: default
20       RabbitMQImage: image-rabbitmq
21   MySQL:
22     Type: AWS::CloudFormation::Stack
23     TemplateURL:
24       Fn::Join:
25         - {Ref: TemplateRoot}
26         - mysql.yaml
27     Parameters:
28       InstanceType: m1.small
29       KeyName: default
30       MySQLImage: image-mysql
31   Keystone:
32     Type: AWS::CloudFormation::Stack
33     TemplateURL:
34       Fn::Join:
35         - {Ref: TemplateRoot}
36         - keystone.yaml
37     Parameters:
38       AdminToken: {Ref: KeystoneAdminToken}
39       KeyName: default
40       KeystoneDSN:
41         Fn::Join:
42           - 'mysql://keystone:'
43           - {"Fn::GetAtt": [ MySQL , KeystonePassword ]}
44           - '@'
45           - {"Fn::GetAtt": [ MySQL , MySQLHost ]}
46           - '/keystone'
47   Glance:
48     Type: AWS::CloudFormation::Stack
49     TemplateURL:
50       Fn::Join:
51         - {Ref: TemplateRoot}
52         - glance.yaml
53     Parameters:
54       KeyName: default
55       HeatDSN:
56         Fn::Join:
57           - 'mysql://glance:'
58           - {"Fn::GetAtt": [ MySQL, GlancePassword ] }
59           - '@'
60           - {"Fn::GetAtt": [ MySQL, MySQLHost ]}
61           - '/glance'
62   Heat:
63     Type: AWS::CloudFormation::Stack
64     TemplateURL:
65       Fn::Join:
66         - {Ref: TemplateRoot}
67         - heat.yaml
68     Parameters:
69       KeyName: default
70       HeatDSN:
71         Fn::Join:
72           - 'mysql://heat:'
73           - {"Fn::GetAtt": [ MySQL, HeatPassword ] }
74           - '@'
75           - {"Fn::GetAtt": [ MySQL, MySQLHost ]}
76           - '/heat'