Add username parameter for rabbit
[apex-tripleo-heat-templates.git] / undercloud-source.yaml
1 Description: All-in-one baremetal OpenStack and all dependencies.
2 HeatTemplateFormatVersion: '2012-12-12'
3 Parameters:
4   AdminPassword:
5     Default: unset
6     Description: The password for the keystone admin account, used for monitoring, querying neutron etc.
7     Type: String
8     NoEcho: true
9   AdminToken:
10     Default: unset
11     Description: The keystone auth secret.
12     Type: String
13     NoEcho: true
14   BaremetalArch:
15     Default: i386
16     Description: The architecture to use in Nova-BM - i386 or amd64.
17     Type: String
18   ControllerAddress:
19     Default:
20       Fn::Select:
21         - 0
22         - Fn::Select:
23           - "ctlplane"
24           - Fn::GetAtt:
25             - undercloud
26             - networks
27     Description: The IP address for controller endpoints in config files.
28     Type: String
29   Flavor:
30     Default: baremetal
31     Description: Flavor to request when deploying.
32     Type: String
33   GlancePassword:
34     Default: unset
35     Description: The password for the glance service account, used by the glance services.
36     Type: String
37     NoEcho: true
38   KeyName:
39     Default: default
40     Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
41     Type: String
42   HeatPassword:
43     Default: unset
44     Description: The password for the Heat service account, used by the Heat services.
45     Type: String
46     NoEcho: true
47   undercloudImage:
48     Default: undercloud
49     Type: String
50   NeutronPassword:
51     Default: unset
52     Description: The password for the neutron service account, used by neutron agents.
53     Type: String
54     NoEcho: true
55   NovaPassword:
56     Default: unset
57     Description: The password for the nova service account, used by nova-api.
58     Type: String
59     NoEcho: true
60   RabbitUserName:
61     Default: guest
62     Description: The username for RabbitMQ
63     Type: String
64   RabbitPassword:
65     Default: guest
66     Description: The password for RabbitMQ
67     Type: String
68     NoEcho: true
69 Resources:
70   AccessPolicy:
71     Properties:
72       AllowedResources:
73       - undercloudConfig
74     Type: OS::Heat::AccessPolicy
75   notCompute0Key:
76     Properties:
77       UserName:
78         Ref: User
79     Type: AWS::IAM::AccessKey
80   notCompute0CompletionCondition:
81     Type: AWS::CloudFormation::WaitCondition
82     DependsOn: undercloud
83     Properties:
84       Handle: {Ref: notCompute0CompletionHandle}
85       Count: '1'
86       Timeout: '1800'
87   notCompute0CompletionHandle:
88     Type: AWS::CloudFormation::WaitConditionHandle
89   User:
90     Properties:
91       Policies:
92       - Ref: AccessPolicy
93     Type: AWS::IAM::User
94   undercloudConfig:
95     Type: AWS::AutoScaling::LaunchConfiguration
96     Properties:
97       ImageId: '0'
98       InstanceType: foo
99     Metadata:
100       OpenStack::Role: undercloudConfig
101       OpenStack::Heat::Stack: {}
102       OpenStack::ImageBuilder::Elements: [ boot-stack, heat-cfntools, neutron-network-node ]
103       admin-password:
104         Ref: AdminPassword
105       admin-token: 
106         Ref: AdminToken
107       controller-address:
108         Ref: ControllerAddress
109       cinder:
110         db: mysql://cinder:unset@localhost/cinder
111         volume_size_mb: '5000'
112       completion-handle:
113         Ref: notCompute0CompletionHandle
114       db-password: unset
115       glance:
116         backend: file
117         db: mysql://glance:unset@localhost/glance
118         host: 127.0.0.1
119         service-password:
120           Ref: GlancePassword
121       heat:
122         admin_password:
123           Ref: HeatPassword
124         admin_tenant_name: service
125         admin_user: heat
126         auth_encryption_key: unset___________
127         db: mysql://heat:unset@localhost/heat
128         watch_server_url:
129           Fn::Join:
130             - ''
131             - - http://
132               - {Ref: ControllerAddress}
133               - ":8003"
134         metadata_server_url:
135           Fn::Join:
136             - ''
137             - - http://
138               - {Ref: ControllerAddress}
139               - ":8000"
140         waitcondition_server_url:
141           Fn::Join:
142             - ''
143             - - http://
144               - {Ref: ControllerAddress}
145               - ":8000/v1/waitcondition"
146       os-collect-config:
147         cfn:
148           access_key_id:
149             Ref: notCompute0Key
150           path: undercloudConfig.Metadata
151           secret_access_key:
152             Fn::GetAtt:
153             - notCompute0Key
154             - SecretAccessKey
155           stack_name:
156             Ref: AWS::StackName
157       keystone:
158         db: mysql://keystone:unset@localhost/keystone
159         host: 127.0.0.1
160       neutron:
161         host: 127.0.0.1
162         ovs_db: mysql://neutron:unset@localhost/ovs_neutron?charset=utf8
163         ovs:
164           dnsmasq_range: [192.0.2.25, 192.0.2.44]
165           public_interface:
166             Ref: NeutronPublicInterface
167           physical_bridge: br-ctlplane
168           physical_network: ctlplane
169           network_vlan_ranges: ctlplane
170           bridge_mappings: ctlplane:br-ctlplane
171           tenant_network_type: vlan
172           enable_tunneling: 'False'
173         service-password:
174           Ref: NeutronPassword
175       rabbit:
176         host: 127.0.0.1
177         username:
178           Ref: RabbitUserName
179         password:
180           Ref: RabbitPassword
181   undercloud:
182     Type: OS::Nova::Server
183     Properties:
184       image:
185         Ref: undercloudImage
186       flavor:
187         Ref: Flavor
188       key_name:
189         Ref: KeyName
190     Metadata:
191       os-collect-config:
192         cfn:
193           access_key_id:
194             Ref: notCompute0Key
195           path: undercloudConfig.Metadata
196           secret_access_key:
197             Fn::GetAtt:
198             - notCompute0Key
199             - SecretAccessKey
200           stack_name:
201             Ref: AWS::StackName