Add rabbit.cookie attribute
[apex-tripleo-heat-templates.git] / notcompute.yaml
1 Description: Nova API,Keystone,Heat Engine and API,Glance,Neutron,Dedicated MySQL
2   server,Dedicated RabbitMQ Server
3 HeatTemplateFormatVersion: '2012-12-12'
4 Parameters:
5   AdminToken:
6     Type: String
7   BootstrapDumpPassword:
8     Default: ''
9     Description: Password to use for mysqldump from Bootstrap Host
10     Type: String
11     NoEcho: true
12   BootstrapHost:
13     Default: ''
14     Description: Load mysqldump from this Host
15     Type: String
16   BootstrapRootPassword:
17     Default: ''
18     Description: Root password for localhost access after bootstrap
19     Type: String
20     NoEcho: true
21   BootstrapSlavePassword:
22     Default: ''
23     Description: Password to use with BootstrapSlaveUser
24     Type: String
25     NoEcho: true
26   BootstrapSlaveUser:
27     Default: ''
28     Description: User to use for replication from bootstrap host
29     Type: String
30   GlanceDBPassword:
31     Description: Password for connecting to glance database
32     Type: String
33     NoEcho: true
34   HeatDBPassword:
35     Description: Password for accessing Heat database.
36     Type: String
37     NoEcho: true
38   InstanceType:
39     Default: baremetal
40     Description: Use this flavor
41     Type: String
42   KeyName:
43     Default: default
44     Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
45     Type: String
46   KeystoneDBPassword:
47     Description: Password for connecting to keystone
48     Type: String
49     NoEcho: true
50   NovaDBPassword:
51     Description: Password for connecting to nova database
52     Type: String
53     NoEcho: true
54   NovaInterfaces:
55     Default: eth0
56     Type: String
57   NeutronDBPassword:
58     Description: Password for connecting to neutron database
59     Type: String
60     NoEcho: true
61   NeutronInterfaces:
62     Default: eth0
63     Type: String
64   RabbitMQPassword:
65     Description: Password for RabbitMQ
66     Type: String
67     NoEcho: true
68   RabbitUserName:
69     Type: String
70   RabbitPassword:
71     Type: String
72     NoEcho: true
73   ServicePassword:
74     Description: admin_password for setting up auth in nova.
75     Type: String
76     NoEcho: true
77   notcomputeImage:
78     Type: String
79 Resources:
80   AccessPolicy:
81     Properties:
82       AllowedResources:
83       - notCompute0
84     Type: OS::Heat::AccessPolicy
85   notCompute0Key:
86     Properties:
87       UserName:
88         Ref: User
89     Type: AWS::IAM::AccessKey
90   User:
91     Properties:
92       Policies:
93       - Ref: AccessPolicy
94     Type: AWS::IAM::User
95   notCompute0:
96     Metadata:
97       OpenStack::ImageBuilder::Elements:
98       - nova-api
99       - keystone
100       - heat-api
101       - heat-engine
102       - glance
103       - mysql-migration
104       - rabbitmq-server
105       admin-password:
106         Ref: ServicePassword
107       admin-token:
108         Ref: AdminToken
109       mysql:
110         create-users:
111           - database: keystone
112             username: keystone
113             password: {Ref: KeystoneDBPassword}
114           - database: heat
115             username: heat
116             password: {Ref: HeatDBPassword}
117           - database: glance
118             username: glance
119             password: {Ref: GlanceDBPassword}
120           - database: nova
121             username: nova
122             password: {Ref: NovaDBPassword}
123           - database: neutron
124             username: neutron
125             password: {Ref: NeutronDBPassword}
126       glance:
127         db:
128           Fn::Join:
129             - ''
130             - - 'mysql://glance:'
131               - {Ref: GlanceDBPassword}
132               - '@127.0.0.1/glance'
133       heat:
134         db:
135           Fn::Join:
136             - ''
137             - - 'mysql://heat:'
138               - {Ref: HeatDBPassword}
139               - '@127.0.0.1/heat'
140         access_key_id:
141           Ref: notCompute0Key
142         refresh:
143         - resource: notCompute0
144         secret_key:
145           Fn::GetAtt:
146           - notCompute0Key
147           - SecretAccessKey
148         stack:
149           name:
150             Ref: AWS::StackName
151           region:
152             Ref: AWS::Region
153         auth_encryption_key: unset
154       interfaces:
155         control:
156           Ref: NovaInterfaces
157       keystone:
158         host:
159           '127.0.0.1'
160         db:
161           Fn::Join:
162             - ''
163             - - 'mysql://keystone:'
164               - {Ref: KeystoneDBPassword}
165               - '@127.0.0.1/keystone'
166       nova:
167         db:
168           Fn::Join:
169             - ''
170             - - 'mysql://nova:'
171               - {Ref: NovaDBPassword}
172               - '@127.0.0.1/nova'
173       neutron:
174         host:
175           '127.0.0.1'
176         ovs_db:
177           Fn::Join:
178             - ''
179             - - 'mysql://neutron:'
180               - {Ref: NeutronDBPassword}
181               - '@127.0.0.1/ovs_neutron'
182       rabbit:
183         host:
184           '127.0.0.1'
185         username:
186           Ref: RabbitUserName
187         password:
188           Ref: RabbitPassword
189         users:
190           username:
191             Ref: RabbitUserName
192           password:
193             Ref: RabbitPassword
194         cookie:
195           Fn::GetAtt:
196           - RabbitCookie
197           - value
198       service-password:
199         Ref: ServicePassword
200     Properties:
201       ImageId:
202         Ref: notcomputeImage
203       InstanceType:
204         Ref: InstanceType
205       KeyName:
206         Ref: KeyName
207     Type: AWS::EC2::Instance