Fix case of OpenStack in templates.
[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   Flavor:
19     Default: baremetal
20     Description: Flavor to request when deploying.
21     Type: String
22   GlancePassword:
23     Default: unset
24     Description: The password for the glance service account, used by the glance services.
25     Type: String
26     NoEcho: true
27   KeyName:
28     Default: default
29     Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
30     Type: String
31   HeatPassword:
32     Default: unset
33     Description: The password for the Heat service account, used by the Heat services.
34     Type: String
35     NoEcho: true
36   Image:
37     Default: undercloud
38     Type: String
39   NeutronPassword:
40     Default: unset
41     Description: The password for the neutron service account, used by neutron agents.
42     Type: String
43     NoEcho: true
44   NovaPassword:
45     Default: unset
46     Description: The password for the nova service account, used by nova-api.
47     Type: String
48     NoEcho: true
49 Resources:
50   AccessPolicy:
51     Properties:
52       AllowedResources:
53       - notcomputeConfig
54     Type: OS::Heat::AccessPolicy
55   Key:
56     Properties:
57       UserName:
58         Ref: User
59     Type: AWS::IAM::AccessKey
60   User:
61     Properties:
62       Policies:
63       - Ref: AccessPolicy
64     Type: AWS::IAM::User
65   notcomputeConfig:
66     Type: AWS::AutoScaling::LaunchConfiguration
67     Properties:
68       ImageId: '0'
69       InstanceType: foo
70     Metadata:
71       OpenStack::Role: notcomputeConfig
72       OpenStack::Heat::Stack: {}
73       OpenStack::ImageBuilder::Elements: [ boot-stack, heat-cfntools, neutron-network-node ]
74       admin-password:
75         Ref: AdminPassword
76       admin-token: 
77         Ref: AdminToken
78       controller-address:
79         Fn::Select:
80           - 0
81           - Fn::Select:
82             - "ctlplane"
83             - Fn::GetAtt:
84               - notcompute
85               - networks
86       cinder:
87         db: mysql://cinder:unset@localhost/cinder
88         volume_size_mb: '5000'
89       db-password: unset
90       glance:
91         backend: file
92         db: mysql://glance:unset@localhost/glance
93         host: 127.0.0.1
94         service-password:
95           Ref: GlancePassword
96       heat:
97         admin_password:
98           Ref: HeatPassword
99         admin_tenant_name: service
100         admin_user: heat
101         auth_encryption_key: unset___________
102         db: mysql://heat:unset@localhost/heat
103         watch_server_url:
104           Fn::Join:
105             - ''
106             - - http://
107               - {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [ notcompute, networks ]} ]}]}
108               - ":8003"
109         metadata_server_url:
110           Fn::Join:
111             - ''
112             - - http://
113               - {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [ notcompute, networks ]} ]}]}
114               - ":8000"
115         waitcondition_server_url:
116           Fn::Join:
117             - ''
118             - - http://
119               - {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [ notcompute, networks ]} ]}]}
120               - ":8000/v1/waitcondition"
121       os-collect-config:
122         cfn:
123           access_key_id:
124             Ref: Key
125           path: notcomputeConfig.Metadata
126           secret_access_key:
127             Fn::GetAtt:
128             - Key
129             - SecretAccessKey
130           stack_name:
131             Ref: AWS::StackName
132       keystone:
133         db: mysql://keystone:unset@localhost/keystone
134         host: 127.0.0.1
135       neutron:
136         host: 127.0.0.1
137         ovs_db: mysql://neutron:unset@localhost/ovs_neutron?charset=utf8
138         ovs:
139           dnsmasq_range: [192.0.2.25, 192.0.2.44]
140           public_interface:
141             Ref: NeutronPublicInterface
142           physical_bridge: br-ctlplane
143           physical_network: ctlplane
144           network_vlan_ranges: ctlplane
145           bridge_mappings: ctlplane:br-ctlplane
146           tenant_network_type: vlan
147           enable_tunneling: 'False'
148         service-password:
149           Ref: NeutronPassword
150       rabbit:
151         host: 127.0.0.1
152         password: guest
153   notcompute:
154     Type: OS::Nova::Server
155     Properties:
156       image:
157         Ref: Image
158       flavor:
159         Ref: Flavor
160       key_name:
161         Ref: KeyName
162     Metadata:
163       os-collect-config:
164         cfn:
165           access_key_id:
166             Ref: Key
167           path: notcomputeConfig.Metadata
168           secret_access_key:
169             Fn::GetAtt:
170             - Key
171             - SecretAccessKey
172           stack_name:
173             Ref: AWS::StackName