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