Drop NeutronNativePXE option from undercloud tmpls
[apex-tripleo-heat-templates.git] / undercloud-vm.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   NeutronPublicInterface:
45     Default: eth0
46     Description: What interface to bridge onto br-ex for network nodes.
47     Type: String
48   NovaPassword:
49     Default: unset
50     Description: The password for the nova service account, used by nova-api.
51     Type: String
52     NoEcho: true
53   PowerManager:
54     Default: nova.virt.baremetal.virtual_power_driver.VirtualPowerManager
55     Description: Bare metal power manager driver.
56     Type: String
57   PowerUserName:
58     Default: stack
59     Description: What username to ssh to the virtual power host with.
60     Type: String
61 Resources:
62   AccessPolicy:
63     Properties:
64       AllowedResources:
65       - notcomputeConfig
66     Type: OS::Heat::AccessPolicy
67   Key:
68     Properties:
69       UserName:
70         Ref: User
71     Type: AWS::IAM::AccessKey
72   User:
73     Properties:
74       Policies:
75       - Ref: AccessPolicy
76     Type: AWS::IAM::User
77   notcomputeConfig:
78     Type: AWS::AutoScaling::LaunchConfiguration
79     Properties:
80       ImageId: '0'
81       InstanceType: foo
82     Metadata:
83       OpenStack::Role: notcomputeConfig
84       OpenStack::Heat::Stack: {}
85       Openstack::ImageBuilder::Elements: [ boot-stack, heat-cfntools, neutron-network-node ]
86       admin-password:
87         Ref: AdminPassword
88       admin-token: 
89         Ref: AdminToken
90       controller-address:
91         Fn::Select:
92           - 0
93           - Fn::Select:
94             - "ctlplane"
95             - Fn::GetAtt:
96               - notcompute
97               - networks
98       cinder:
99         db: mysql://cinder:unset@localhost/cinder
100         volume_size_mb: '5000'
101       db-password: unset
102       glance:
103         db: mysql://glance:unset@localhost/glance
104         host: 127.0.0.1
105         service-password:
106           Ref: GlancePassword
107       heat:
108         admin_password:
109           Ref: HeatPassword
110         admin_tenant_name: service
111         admin_user: heat
112         auth_encryption_key: unset___________
113         db: mysql://heat:unset@localhost/heat
114         watch_server_url:
115           Fn::Join:
116             - ''
117             - - http://
118               - {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [ notcompute, networks ]} ]}]}
119               - ":8003"
120         metadata_server_url:
121           Fn::Join:
122             - ''
123             - - http://
124               - {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [ notcompute, networks ]} ]}]}
125               - ":8000"
126         waitcondition_server_url:
127           Fn::Join:
128             - ''
129             - - http://
130               - {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [ notcompute, networks ]} ]}]}
131               - ":8000/v1/waitcondition"
132       os-collect-config:
133         cfn:
134           access_key_id:
135             Ref: Key
136           path: notcomputeConfig.Metadata
137           secret_access_key:
138             Fn::GetAtt:
139             - Key
140             - SecretAccessKey
141           stack_name:
142             Ref: AWS::StackName
143       keystone:
144         db: mysql://keystone:unset@localhost/keystone
145         host: 127.0.0.1
146       nova:
147         compute_hostname: undercloud
148         compute_driver: baremetal.driver.BareMetalDriver
149         db: mysql://nova:unset@localhost/nova
150         host: 127.0.0.1
151         metadata-proxy: false
152         tuning:
153           ram_allocation_ratio: 1.0
154           reserved_host_memory_mb: 0
155         baremetal:
156           use_file_injection: "False"
157           arch:
158             Ref: BaremetalArch
159           db: mysql://nova:unset@localhost/nova_bm
160           power_manager:
161             Ref: PowerManager
162           pxe_deploy_timeout: 2400
163           virtual_power:
164             user:
165               Ref: PowerUserName
166             key: /opt/stack/boot-stack/virtual-power-key
167             ssh_host: 192.168.122.1
168             type: virsh
169         service-password:
170           Ref: NovaPassword
171       neutron:
172         host: 127.0.0.1
173         ovs_db: mysql://neutron:unset@localhost/ovs_neutron?charset=utf8
174         ovs:
175           dnsmasq_range: [192.0.2.25, 192.0.2.44]
176           public_interface:
177             Ref: NeutronPublicInterface
178           physical_bridge: br-ctlplane
179           physical_network: ctlplane
180           network_vlan_ranges: ctlplane
181           bridge_mappings: ctlplane:br-ctlplane
182           tenant_network_type: vlan
183           enable_tunneling: 'False'
184         service-password:
185           Ref: NeutronPassword
186       rabbit:
187         host: 127.0.0.1
188         password: guest
189   notcompute:
190     Type: OS::Nova::Server
191     Properties:
192       image:
193         Ref: Image
194       flavor:
195         Ref: Flavor
196       key_name:
197         Ref: KeyName
198     Metadata:
199       os-collect-config:
200         cfn:
201           access_key_id:
202             Ref: Key
203           path: notcomputeConfig.Metadata
204           secret_access_key:
205             Fn::GetAtt:
206             - Key
207             - SecretAccessKey
208           stack_name:
209             Ref: AWS::StackName