Make signal_transport a parameter
[apex-tripleo-heat-templates.git] / undercloud-source.yaml
1 description: All-in-one baremetal OpenStack and all dependencies.
2 heat_template_version: 2013-05-23
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     hidden: true
9   AdminToken:
10     default: unset
11     description: The keystone auth secret.
12     type: string
13     hidden: true
14   CinderLVMLoopDeviceSize:
15     default: 5000
16     description: The size of the loopback file used by the cinder LVM driver.
17     type: number
18   BaremetalArch:
19     default: i386
20     description: The architecture to use in Nova-BM - i386 or amd64.
21     type: string
22   CeilometerMeteringSecret:
23     default: unset
24     description: Secret shared by the ceilometer services.
25     type: string
26     hidden: true
27   CeilometerPassword:
28     default: unset
29     description: The password for the ceilometer service account.
30     type: string
31     hidden: true
32   SnmpdReadonlyUserName:
33     default: ro_snmp_user
34     description: The user name for SNMPd with readonly rights running on all Overcloud nodes
35     type: string
36   SnmpdReadonlyUserPassword:
37     default: unset
38     description: The user password for SNMPd with readonly rights running on all Overcloud nodes
39     type: string
40     hidden: true
41   ExtraConfig:
42     default: {}
43     description: |
44       Additional configuration to inject into the cluster. The JSON should have
45       the following structure:
46         {"FILEKEY":
47           {"config:
48             [{"section": "SECTIONNAME",
49               "values":
50                [{"option": "OPTIONNAME",
51                   "value": "VALUENAME"
52                 }
53                ]
54              }
55             ]
56           }
57         }
58       For instance:
59         {"nova":
60           {"config":
61             [{"section": "default",
62               "values":
63                 [{"option": "compute_manager",
64                   "value": "ironic.nova.compute.manager.ClusterComputeManager"
65                  }
66                 ]
67              },
68              {"section": "cells",
69               "values":
70                 [{"option": "driver",
71                   "value": "nova.cells.rpc_driver.CellsRPCDriver"
72                  }
73                 ]
74              }
75             ]
76           }
77         }
78     type: json
79   Flavor:
80     default: baremetal
81     description: Flavor to request when deploying.
82     type: string
83   GlancePort:
84    default: 9292
85    description: Glance port.
86    type: string
87   GlanceProtocol:
88    default: http
89    description: Protocol to use when connecting to glance, set to https for SSL.
90    type: string
91   GlancePassword:
92     default: unset
93     description: The password for the glance service account, used by the glance services.
94     type: string
95     hidden: true
96   GlanceNotifierStrategy:
97     description: Strategy to use for Glance notification queue
98     type: string
99     default: noop
100   GlanceLogFile:
101     description: The filepath of the file to use for logging messages from Glance.
102     type: string
103     default: ''
104   KeyName:
105     default: default
106     description: Name of an existing EC2 KeyPair to enable SSH access to the instances
107     type: string
108   HeatPassword:
109     default: unset
110     description: The password for the Heat service account, used by the Heat services.
111     type: string
112     hidden: true
113   ImageUpdatePolicy:
114     default: REBUILD_PRESERVE_EPHEMERAL
115     description: What policy to use when reconstructing instances. REBUILD for rebuilds,
116       REBUILD_PRESERVE_EPHEMERAL to preserve /mnt.
117     type: string
118   undercloudImage:
119     default: undercloud
120     type: string
121   NeutronPassword:
122     default: unset
123     description: The password for the neutron service account, used by neutron agents.
124     type: string
125     hidden: true
126   NovaPassword:
127     default: unset
128     description: The password for the nova service account, used by nova-api.
129     type: string
130     hidden: true
131   NeutronPublicInterfaceDefaultRoute:
132     default: ''
133     description: A custom default route for the NeutronPublicInterface.
134     type: string
135   NeutronPublicInterfaceIP:
136     default: ''
137     description: A custom IP address to put onto the NeutronPublicInterface.
138     type: string
139   NeutronPublicInterfaceRawDevice:
140     default: ''
141     description: If set, the public interface is a vlan with this device as the raw device.
142     type: string
143   NtpServer:
144     type: string
145     default: ''
146   RabbitUserName:
147     default: guest
148     description: The username for RabbitMQ
149     type: string
150   RabbitPassword:
151     default: guest
152     description: The password for RabbitMQ
153     type: string
154     hidden: true
155   RabbitCookieSalt:
156     type: string
157     default: unset
158     description: Salt for the rabbit cookie, change this to force the randomly generated rabbit cookie to change.
159   HeatStackDomainAdminPassword:
160     description: Password for heat_domain_admin user.
161     type: string
162     default: ''
163     hidden: true
164   MysqlInnodbBufferPoolSize:
165     description: >
166         Specifies the size of the buffer pool in megabytes. Setting to
167         zero should be interpreted as "no value" and will defer to the
168         lower level default.
169     type: number
170     default: 0
171   KeystoneCACertificate:
172     default: ''
173     description: Keystone self-signed certificate authority certificate.
174     type: string
175   KeystoneSigningCertificate:
176     default: ''
177     description: Keystone certificate for verifying token validity.
178     type: string
179   KeystoneSigningKey:
180     default: ''
181     description: Keystone key for signing tokens.
182     type: string
183     hidden: true
184   DefaultSignalTransport:
185     default: CFN_SIGNAL
186     description: Transport to use for software-config signals.
187     type: string
188     constraints:
189       - allowed_values: [ CFN_SIGNAL, HEAT_SIGNAL, NO_SIGNAL ]
190 resources:
191   RabbitCookie:
192     type: OS::Heat::RandomString
193     properties:
194       length: 20
195       salt:
196         get_param: RabbitCookieSalt
197   undercloudConfig:
198     type: OS::Heat::StructuredConfig
199     properties:
200       config:
201         completion-signal: {get_input: deploy_signal_id}
202         admin-password:
203           get_param: AdminPassword
204         admin-token:
205           get_param: AdminToken
206         bootstrap_host:
207           bootstrap_nodeid:
208             Fn::Select:
209             - 0
210             - Fn::Select:
211               - 0
212               - Merge::Map:
213                   undercloud:
214                   - Fn::Select:
215                     - name
216                     - get_attr:
217                       - undercloud
218                       - show
219           nodeid: {get_input: bootstack_nodeid}
220         bootstack:
221           public_interface_ip:
222             get_param: NeutronPublicInterfaceIP
223         controller-address:
224           get_input: controller_host
225         corosync:
226           bindnetaddr: {get_input: controller_host}
227           mcastport: 5577
228           nodes:
229             Merge::Map:
230               controller0:
231                 ip: {get_attr: [undercloud, networks, ctlplane, 0]}
232         pacemaker:
233           stonith_enabled : false
234           recheck_interval : 5
235           quorum_policy : ignore
236         ceilometer:
237           db: mysql://ceilometer:unset@localhost/ceilometer
238           metering_secret: {get_param: CeilometerMeteringSecret}
239           snmpd_readonly_user_name:
240             get_param: SnmpdReadonlyUserName
241           snmpd_readonly_user_password:
242             get_param: SnmpdReadonlyUserPassword
243           service-password:
244             get_param: CeilometerPassword
245         db-password: unset
246         glance:
247           backend: file
248           db: mysql://glance:unset@localhost/glance
249           host: 127.0.0.1
250           port:
251             get_param: GlancePort
252           protocol:
253             get_param: GlanceProtocol
254           service-password:
255             get_param: GlancePassword
256           notifier-strategy:
257             get_param: GlanceNotifierStrategy
258           log-file:
259             get_param: GlanceLogFile
260         heat:
261           admin_password:
262             get_param: HeatPassword
263           admin_tenant_name: service
264           admin_user: heat
265           auth_encryption_key: unset___________
266           db: mysql://heat:unset@localhost/heat
267           stack_domain_admin_password: {get_param: HeatStackDomainAdminPassword}
268           watch_server_url: {get_input: heat.watch_server_url}
269           metadata_server_url: {get_input: heat.metadata_server_url}
270           waitcondition_server_url: {get_input: heat.waitcondition_server_url}
271         keystone:
272           db: mysql://keystone:unset@localhost/keystone
273           host: 127.0.0.1
274           ca_certificate: {get_param: KeystoneCACertificate}
275           signing_key: {get_param: KeystoneSigningKey}
276           signing_certificate: {get_param: KeystoneSigningCertificate}
277         mysql:
278           innodb_buffer_pool_size: {get_param: MysqlInnodbBufferPoolSize}
279         neutron:
280           host: 127.0.0.1
281           ovs_db: mysql://neutron:unset@localhost/ovs_neutron?charset=utf8
282           ovs:
283             public_interface:
284               get_param: NeutronPublicInterface
285             public_interface_raw_device:
286               get_param: NeutronPublicInterfaceRawDevice
287             public_interface_route:
288               get_param: NeutronPublicInterfaceDefaultRoute
289             physical_bridge: br-ctlplane
290             physical_network: ctlplane
291             network_vlan_ranges: ctlplane
292             bridge_mappings: ctlplane:br-ctlplane
293             tenant_network_type: vlan
294             enable_tunneling: 'False'
295           service-password:
296             get_param: NeutronPassword
297         rabbit:
298           host: 127.0.0.1
299           username:
300             get_param: RabbitUserName
301           password:
302             get_param: RabbitPassword
303           cookie:
304             get_attr:
305             - RabbitCookie
306             - value
307         ntp:
308           servers:
309             - {server: {get_param: NtpServer}, fudge: "stratum 0"}
310   undercloudPassthroughConfig:
311     type: OS::Heat::StructuredConfig
312     properties:
313       config: {get_input: passthrough_config}
314   undercloud:
315     type: OS::Nova::Server
316     properties:
317       image:
318         get_param: undercloudImage
319       flavor:
320         get_param: Flavor
321       key_name:
322         get_param: KeyName
323       image_update_policy:
324         get_param: ImageUpdatePolicy
325       networks:
326         - network: ctlplane
327       user_data_format: SOFTWARE_CONFIG
328   undercloudDeployment:
329     depends_on: [undercloudPassthroughDeployment]
330     type: OS::Heat::StructuredDeployment
331     properties:
332       config: {get_resource: undercloudConfig}
333       server: {get_resource: undercloud}
334       signal_transport: {get_param: DefaultSignalTransport}
335       input_values:
336         bootstack_nodeid:
337           get_attr:
338           - undercloud
339           - show
340           - name
341         controller_host:
342           get_attr:
343           - undercloud
344           - networks
345           - ctlplane
346           - 0
347         heat.watch_server_url:
348           Fn::Join:
349             - ''
350             - - 'http://'
351               - get_attr: [undercloud, networks, ctlplane, 0]
352               - ':8003'
353         heat.metadata_server_url:
354           Fn::Join:
355             - ''
356             - - 'http://'
357               - {get_attr: [undercloud, networks, ctlplane, 0]}
358               - ':8000'
359         heat.waitcondition_server_url:
360           Fn::Join:
361             - ''
362             - - 'http://'
363               - {get_attr: [undercloud, networks, ctlplane, 0]}
364               - ':8000/v1/waitcondition'
365   undercloudPassthroughDeployment:
366     depends_on: [undercloudNovaDeployment]
367     type: OS::Heat::StructuredDeployment
368     properties:
369       config: {get_resource: undercloudPassthroughConfig}
370       server: {get_resource: undercloud}
371       signal_transport: NO_SIGNAL
372       input_values:
373         passthrough_config: {get_param: ExtraConfig}