0a5f5c8965513c63e851b06c0d7f2bd00c532d1d
[apex-tripleo-heat-templates.git] / overcloud-source.yaml
1 description: Nova API,Keystone,Heat Engine and API,Glance,Neutron,Dedicated MySQL
2   server,Dedicated RabbitMQ Server,Group of Nova Computes
3 heat_template_version: 2013-05-23
4 parameters:
5   AdminPassword:
6     default: unset
7     description: The password for the keystone admin account, used for monitoring, querying neutron etc.
8     type: string
9     hidden: true
10   AdminToken:
11     default: unset
12     description: The keystone auth secret.
13     type: string
14     hidden: true
15   CeilometerComputeAgent:
16     description: Indicates whether the Compute agent is present and expects nova-compute to be configured accordingly
17     type: string
18     default: ''
19     constraints:
20     - allowed_values: ['', Present]
21   CeilometerMeteringSecret:
22     default: unset
23     description: Secret shared by the ceilometer services.
24     type: string
25     hidden: true
26   CeilometerPassword:
27     default: unset
28     description: The password for the ceilometer service account.
29     type: string
30     hidden: true
31   CinderISCSIHelper:
32     default: tgtadm
33     description: The iSCSI helper to use with cinder.
34     type: string
35   CinderLVMLoopDeviceSize:
36     default: 5000
37     description: The size of the loopback file used by the cinder LVM driver.
38     type: number
39   CinderPassword:
40     default: unset
41     description: The password for the cinder service account, used by cinder-api.
42     type: string
43     hidden: true
44   CloudName:
45     default: ''
46     description: The DNS name of this cloud. E.g. ci-overcloud.tripleo.org
47     type: string
48   ControlFixedIPs:
49     default: []
50     description: Should be used for arbitrary ips.
51     type: json
52   controllerExtraConfig:
53     default: {}
54     description: |
55       Controller specific configuration to inject into the cluster. Same
56       structure as ExtraConfig.
57     type: json
58   controllerImage:
59     type: string
60     default: overcloud-control
61     constraints:
62       - custom_constraint: glance.image
63   ControlVirtualInterface:
64     default: 'br-ex'
65     description: Interface where virtual ip will be assigned.
66     type: string
67   Debug:
68     default: ''
69     description: Set to True to enable debugging on all services.
70     type: string
71   DefaultSignalTransport:
72     default: CFN_SIGNAL
73     description: Transport to use for software-config signals.
74     type: string
75     constraints:
76       - allowed_values: [ CFN_SIGNAL, HEAT_SIGNAL, NO_SIGNAL ]
77   ExtraConfig:
78     default: {}
79     description: |
80       Additional configuration to inject into the cluster. The JSON should have
81       the following structure:
82         {"FILEKEY":
83           {"config":
84             [{"section": "SECTIONNAME",
85               "values":
86                 [{"option": "OPTIONNAME",
87                   "value": "VALUENAME"
88                  }
89                 ]
90              }
91             ]
92           }
93         }
94       For instance:
95         {"nova":
96           {"config":
97             [{"section": "default",
98               "values":
99                 [{"option": "force_config_drive",
100                   "value": "always"
101                  }
102                 ]
103              },
104              {"section": "cells",
105               "values":
106                 [{"option": "driver",
107                   "value": "nova.cells.rpc_driver.CellsRPCDriver"
108                  }
109                 ]
110              }
111             ]
112           }
113         }
114     type: json
115   GlanceLogFile:
116     description: The filepath of the file to use for logging messages from Glance.
117     type: string
118     default: ''
119   GlancePassword:
120     default: unset
121     description: The password for the glance service account, used by the glance services.
122     type: string
123     hidden: true
124   GlancePort:
125     default: 9292
126     description: Glance port.
127     type: string
128   GlanceProtocol:
129     default: http
130     description: Protocol to use when connecting to glance, set to https for SSL.
131     type: string
132   GlanceNotifierStrategy:
133     description: Strategy to use for Glance notification queue
134     type: string
135     default: noop
136   HeatPassword:
137     default: unset
138     description: The password for the Heat service account, used by the Heat services.
139     type: string
140     hidden: true
141   HeatStackDomainAdminPassword:
142     description: Password for heat_domain_admin user.
143     type: string
144     default: ''
145     hidden: true
146   HypervisorNeutronPhysicalBridge:
147     default: 'br-ex'
148     description: >
149       An OVS bridge to create on each hypervisor. This defaults to br-ex the
150       same as the control plane nodes, as we have a uniform configuration of
151       the openvswitch agent. Typically should not need to be changed.
152     type: string
153   HypervisorNeutronPublicInterface:
154     default: 'eth0'
155     description: What interface to add to the HypervisorNeutronPhysicalBridge.
156     type: string
157   ImageUpdatePolicy:
158     default: 'REBUILD_PRESERVE_EPHEMERAL'
159     description: What policy to use when reconstructing instances. REBUILD for rebuilds, REBUILD_PRESERVE_EPHEMERAL to preserve /mnt.
160     type: string
161   KeyName:
162     default: default
163     description: Name of an existing EC2 KeyPair to enable SSH access to the instances
164     type: string
165     constraints:
166       - custom_constraint: nova.keypair
167   KeystoneCACertificate:
168     default: ''
169     description: Keystone self-signed certificate authority certificate.
170     type: string
171   KeystoneSigningCertificate:
172     default: ''
173     description: Keystone certificate for verifying token validity.
174     type: string
175   KeystoneSigningKey:
176     default: ''
177     description: Keystone key for signing tokens.
178     type: string
179     hidden: true
180   KeystoneSSLCertificate:
181     default: ''
182     description: Keystone certificate for verifying token validity.
183     type: string
184   KeystoneSSLCertificateKey:
185     default: ''
186     description: Keystone key for signing tokens.
187     type: string
188     hidden: true
189   MysqlInnodbBufferPoolSize:
190     description: >
191         Specifies the size of the buffer pool in megabytes. Setting to
192         zero should be interpreted as "no value" and will defer to the
193         lower level default.
194     type: number
195     default: 0
196   NeutronBridgeMappings:
197     description: >
198       The OVS logical->physical bridge mappings to use. See the Neutron
199       documentation for details. Defaults to mapping br-ex - the external
200       bridge on hosts - to a physical name 'datacentre' which can be used
201       to create provider networks (and we use this for the default floating
202       network) - if changing this either use different post-install network
203       scripts or be sure to keep 'datacentre' as a mapping network name.
204     type: string
205     default: "datacentre:br-ex"
206   NeutronControlPlaneID:
207     default: ''
208     type: string
209     description: Neutron ID for ctlplane network.
210   NeutronDnsmasqOptions:
211     default: 'dhcp-option-force=26,1400'
212     description: Dnsmasq options for neutron-dhcp-agent. The default value here forces MTU to be set to 1400 to account for the tunnel overhead.
213     type: string
214   NeutronFlatNetworks:
215     type: string
216     default: 'datacentre'
217     description: >
218       If set, flat networks to configure in neutron plugins. Defaults to
219       'datacentre' to permit external network creation.
220   NeutronNetworkType:
221     default: 'gre'
222     description: The tenant network type for Neutron, either gre or vxlan.
223     type: string
224   NeutronNetworkVLANRanges:
225     default: 'datacentre'
226     description: >
227       The Neutron ML2 and OpenVSwitch vlan mapping range to support. See the
228       Neutron documentation for permitted values. Defaults to permitting any
229       VLAN on the 'datacentre' physical network (See NeutronBridgeMappings).
230     type: string
231   NeutronPassword:
232     default: unset
233     description: The password for the neutron service account, used by neutron agents.
234     type: string
235     hidden: true
236   NeutronPublicInterface:
237     default: eth0
238     description: What interface to bridge onto br-ex for network nodes.
239     type: string
240   NeutronPublicInterfaceDefaultRoute:
241     default: ''
242     description: A custom default route for the NeutronPublicInterface.
243     type: string
244   NeutronPublicInterfaceIP:
245     default: ''
246     description: A custom IP address to put onto the NeutronPublicInterface.
247     type: string
248   NeutronPublicInterfaceRawDevice:
249     default: ''
250     description: If set, the public interface is a vlan with this device as the raw device.
251     type: string
252   NeutronPublicInterfaceTag:
253     default: ''
254     description: >
255       VLAN tag for creating a public VLAN. The tag will be used to
256       create an access port on the exterior bridge for each control plane node,
257       and that port will be given the IP address returned by neutron from the
258       public network. Set CONTROLEXTRA=overcloud-vlan-port.yaml when compiling
259       overcloud.yaml to include the deployment of VLAN ports to the control
260       plane.
261     type: string
262   NeutronComputeAgentMode:
263     default: 'dvr'
264     description: Agent mode for the neutron-l3-agent on the compute hosts
265     type: string
266   NeutronAgentMode:
267     default: 'dvr_snat'
268     description: Agent mode for the neutron-l3-agent on the controller hosts
269     type: string
270   NeutronDVR:
271     default: 'False'
272     description: Whether to configure Neutron Distributed Virtual Routers
273     type: string
274   NeutronMetadataProxySharedSecret:
275     default: 'unset'
276     description: Shared secret to prevent spoofing
277     type: string
278   NeutronTunnelTypes:
279     default: 'gre'
280     description: |
281         The tunnel types for the Neutron tenant network. To specify multiple
282         values, use a comma separated string, like so: 'gre,vxlan'
283     type: string
284   NeutronMechanismDrivers:
285     default: 'openvswitch'
286     description: |
287         The mechanism drivers for the Neutron tenant network. To specify multiple
288         values, use a comma separated string, like so: 'openvswitch,l2_population'
289     type: string
290   NeutronAllowL3AgentFailover:
291     default: 'True'
292     description: Allow automatic l3-agent failover
293     type: string
294   NovaComputeDriver:
295     default: libvirt.LibvirtDriver
296     type: string
297   NovaComputeExtraConfig:
298     default: {}
299     description: |
300       NovaCompute specific configuration to inject into the cluster. Same
301       structure as ExtraConfig.
302     type: json
303   NovaComputeLibvirtType:
304     default: ''
305     type: string
306   NovaImage:
307     type: string
308     default: overcloud-compute
309     constraints:
310       - custom_constraint: glance.image
311   NovaPassword:
312     default: unset
313     description: The password for the nova service account, used by nova-api.
314     type: string
315     hidden: true
316   NtpServer:
317     type: string
318     default: ''
319   OvercloudComputeFlavor:
320     default: baremetal
321     description: Flavor for compute nodes to request when deploying.
322     type: string
323     constraints:
324       - custom_constraint: nova.flavor
325   OvercloudControlFlavor:
326     default: baremetal
327     description: Flavor for control nodes to request when deploying.
328     type: string
329     constraints:
330       - custom_constraint: nova.flavor
331   PublicVirtualFixedIPs:
332     default: []
333     description: >
334         Control the IP allocation for the PublicVirtualInterface port. E.g.
335         [{'ip_address':'1.2.3.4'}]
336     type: json
337   PublicVirtualInterface:
338     default: 'br-ex'
339     description: >
340         Specifies the interface where the public-facing virtual ip will be assigned.
341         This should be int_public when a VLAN is being used.
342     type: string
343   PublicVirtualNetwork:
344     default: 'ctlplane'
345     type: string
346     description: >
347         Neutron network to allocate public virtual IP port on.
348   RabbitCookieSalt:
349     type: string
350     default: unset
351     description: Salt for the rabbit cookie, change this to force the randomly generated rabbit cookie to change.
352   RabbitPassword:
353     default: guest
354     description: The password for RabbitMQ
355     type: string
356     hidden: true
357   RabbitUserName:
358     default: guest
359     description: The username for RabbitMQ
360     type: string
361   RabbitClientUseSSL:
362     default: false
363     description: >
364         Rabbit client subscriber parameter to specify
365         an SSL connection to the RabbitMQ host.
366     type: string
367   RabbitClientPort:
368     default: 5672
369     description: Set rabbit subscriber port, change this if using SSL
370     type: number
371   SnmpdReadonlyUserName:
372     default: ro_snmp_user
373     description: The user name for SNMPd with readonly rights running on all Overcloud nodes
374     type: string
375   SnmpdReadonlyUserPassword:
376     default: unset
377     description: The user password for SNMPd with readonly rights running on all Overcloud nodes
378     type: string
379     hidden: true
380 resources:
381   ControlVirtualIP:
382     type: OS::Neutron::Port
383     properties:
384       name: control_virtual_ip
385       network_id: {get_param: NeutronControlPlaneID}
386       fixed_ips:
387         get_param: ControlFixedIPs
388       replacement_policy: AUTO
389   MysqlClusterUniquePart:
390     type: OS::Heat::RandomString
391     properties:
392       length: 10
393   MysqlRootPassword:
394     type: OS::Heat::RandomString
395     properties:
396       length: 10
397   PublicVirtualIP:
398     type: OS::Neutron::Port
399     properties:
400       name: public_virtual_ip
401       network: {get_param: PublicVirtualNetwork}
402       fixed_ips:
403         get_param: PublicVirtualFixedIPs
404       replacement_policy: AUTO
405   RabbitCookie:
406     type: OS::Heat::RandomString
407     properties:
408       length: 20
409       salt:
410         get_param: RabbitCookieSalt
411   NovaCompute0Deployment:
412     type: FileInclude
413     Path: nova-compute-instance.yaml
414     SubKey: resources.NovaCompute0Deployment
415     parameters:
416         DefaultSignalTransport:
417             get_param: DefaultSignalTransport
418         NovaApiHost: {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
419         KeystoneHost: {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
420         NeutronHost: {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
421         GlanceHost: {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
422         RabbitHost: {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
423         NovaPublicIP: {get_attr: [PublicVirtualIP, fixed_ips, 0, ip_address]}
424         CeilometerDSN:
425           Fn::Join:
426             - ''
427             - - mysql://ceilometer:unset@
428               - &compute_database_host {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
429               - /ceilometer
430         NeutronNetworkType:
431             get_param: NeutronNetworkType
432         NeutronTunnelTypes:
433             get_param: NeutronTunnelTypes
434         NeutronEnableTunnelling: "True"
435         NeutronFlatNetworks:
436             get_param: NeutronFlatNetworks
437         NeutronNetworkVLANRanges:
438             get_param: NeutronNetworkVLANRanges
439         NeutronPhysicalBridge:
440             get_param: HypervisorNeutronPhysicalBridge
441         NeutronPublicInterface:
442             get_param: HypervisorNeutronPublicInterface
443         NeutronBridgeMappings:
444             get_param: NeutronBridgeMappings
445         NeutronDVR:
446             get_param: NeutronDVR
447         NeutronAgentMode:
448             get_param: NeutronComputeAgentMode
449         NeutronPublicInterfaceRawDevice:
450             get_param: NeutronPublicInterfaceRawDevice
451         NeutronMechanismDrivers:
452             get_param: NeutronMechanismDrivers
453         NeutronAllowL3AgentFailover:
454             get_param: NeutronAllowL3AgentFailover
455   NovaCompute0AllNodesDeployment:
456     type: FileInclude
457     Path: nova-compute-instance.yaml
458     SubKey: resources.NovaCompute0AllNodesDeployment
459     parameters:
460         AllNodesConfig: {get_resource: allNodesConfig}
461   NovaCompute0:
462     type: FileInclude
463     Path: nova-compute-instance.yaml
464     SubKey: resources.NovaCompute0
465   NovaCompute0Passthrough:
466     type: FileInclude
467     Path: nova-compute-instance.yaml
468     SubKey: resources.NovaCompute0Passthrough
469     parameters:
470         passthrough_config: {get_param: ExtraConfig}
471   NovaCompute0PassthroughSpecific:
472     type: FileInclude
473     Path: nova-compute-instance.yaml
474     SubKey: resources.NovaCompute0PassthroughSpecific
475     parameters:
476         passthrough_config_specific: {get_param: NovaComputeExtraConfig}
477   controllerConfig:
478     type: OS::Heat::StructuredConfig
479     properties:
480       group: os-apply-config
481       config:
482         admin-password:
483           get_param: AdminPassword
484         admin-token:
485           get_param: AdminToken
486         bootstack:
487           public_interface_ip:
488             get_param: NeutronPublicInterfaceIP
489         bootstrap_host:
490           bootstrap_nodeid:
491             Fn::Select:
492             - 0
493             - Fn::Select:
494               - 0
495               - Merge::Map:
496                   controller0:
497                   - get_attr:
498                     - controller0
499                     - name
500           nodeid: {get_input: bootstack_nodeid}
501         database:
502           host: &database_host
503             {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
504         cinder:
505           db:
506             Fn::Join:
507               - ''
508               - - mysql://cinder:unset@
509                 - *database_host
510                 - /cinder
511           debug: {get_param: Debug}
512           volume_size_mb:
513             get_param: CinderLVMLoopDeviceSize
514           service-password:
515             get_param: CinderPassword
516           iscsi-helper:
517             get_param: CinderISCSIHelper
518         controller-address:
519           get_input: controller_host
520         corosync:
521           bindnetaddr: {get_input: controller_host}
522           mcastport: 5577
523           nodes:
524             Merge::Map:
525               controller0:
526                 ip: {get_attr: [controller0, networks, ctlplane, 0]}
527         pacemaker:
528           stonith_enabled : false
529           recheck_interval : 5
530           quorum_policy : ignore
531         db-password: unset
532         glance:
533           registry:
534             host: {get_input: controller_virtual_ip}
535           backend: swift
536           db:
537             Fn::Join:
538               - ''
539               - - mysql://glance:unset@
540                 - *database_host
541                 - /glance
542           debug: {get_param: Debug}
543           host:
544             get_input: controller_virtual_ip
545           port:
546             get_param: GlancePort
547           protocol:
548             get_param: GlanceProtocol
549           service-password:
550             get_param: GlancePassword
551           swift-store-user: service:glance
552           swift-store-key:
553             get_param: GlancePassword
554           notifier-strategy:
555             get_param: GlanceNotifierStrategy
556           log-file:
557             get_param: GlanceLogFile
558         heat:
559           admin_password:
560             get_param: HeatPassword
561           admin_tenant_name: service
562           admin_user: heat
563           auth_encryption_key: unset___________
564           db:
565             Fn::Join:
566               - ''
567               - - mysql://heat:unset@
568                 - *database_host
569                 - /heat
570           debug: {get_param: Debug}
571           stack_domain_admin_password: {get_param: HeatStackDomainAdminPassword}
572           watch_server_url: {get_input: heat.watch_server_url}
573           metadata_server_url: {get_input: heat.metadata_server_url}
574           waitcondition_server_url: {get_input: heat.waitcondition_server_url}
575         horizon:
576           caches:
577             memcached:
578               nodes:
579                 Merge::Map:
580                   controller0:
581                     {get_attr: [controller0, name]}
582         keystone:
583           db:
584             Fn::Join:
585               - ''
586               - - mysql://keystone:unset@
587                 - *database_host
588                 - /keystone
589           debug: {get_param: Debug}
590           host:
591             get_input: controller_virtual_ip
592           ca_certificate: {get_param: KeystoneCACertificate}
593           signing_key: {get_param: KeystoneSigningKey}
594           signing_certificate: {get_param: KeystoneSigningCertificate}
595           ssl:
596               certificate: {get_param: KeystoneSSLCertificate}
597               certificate_key: {get_param: KeystoneSSLCertificateKey}
598         mysql:
599           innodb_buffer_pool_size: {get_param: MysqlInnodbBufferPoolSize}
600           local_bind: true
601           root-password: {get_resource: MysqlRootPassword}
602           nodes:
603             Merge::Map:
604               controller0:
605                 ip: {get_attr: [controller0, networks, ctlplane, 0]}
606           cluster_name:
607             Fn::Join:
608               - '-'
609               - - 'tripleo'
610                 - {get_resource: MysqlClusterUniquePart}
611         neutron:
612           debug: {get_param: Debug}
613           flat-networks: {get_param: NeutronFlatNetworks}
614           host: {get_input: controller_virtual_ip}
615           metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret}
616           agent_mode: {get_param: NeutronAgentMode}
617           router_distributed: {get_param: NeutronDVR}
618           mechanism_drivers: {get_param: NeutronMechanismDrivers}
619           allow_automatic_l3agent_failover: {get_param: NeutronAllowL3AgentFailover}
620           ovs:
621             enable_tunneling: 'True'
622             local_ip:
623               get_input: controller_host
624             network_vlan_ranges: {get_param: NeutronNetworkVLANRanges}
625             bridge_mappings: {get_param: NeutronBridgeMappings}
626             public_interface:
627               get_param: NeutronPublicInterface
628             public_interface_raw_device:
629               get_param: NeutronPublicInterfaceRawDevice
630             public_interface_route:
631               get_param: NeutronPublicInterfaceDefaultRoute
632             public_interface_tag:
633               get_param: NeutronPublicInterfaceTag
634             physical_bridge: br-ex
635             tenant_network_type:
636               get_param: NeutronNetworkType
637             tunnel_types:
638               get_param: NeutronTunnelTypes
639           ovs_db:
640             Fn::Join:
641               - ''
642               - - mysql://neutron:unset@
643                 - *database_host
644                 - /ovs_neutron?charset=utf8
645           service-password:
646             get_param: NeutronPassword
647           dnsmasq-options:
648             get_param: NeutronDnsmasqOptions
649         ceilometer:
650           db:
651             Fn::Join:
652               - ''
653               - - mysql://ceilometer:unset@
654                 - *database_host
655                 - /ceilometer
656           debug: {get_param: Debug}
657           metering_secret: {get_param: CeilometerMeteringSecret}
658           service-password:
659             get_param: CeilometerPassword
660         snmpd:
661           export_MIB: UCD-SNMP-MIB
662           readonly_user_name:
663             get_param: SnmpdReadonlyUserName
664           readonly_user_password:
665             get_param: SnmpdReadonlyUserPassword
666         nova:
667           compute_driver: libvirt.LibvirtDriver
668           db:
669             Fn::Join:
670               - ''
671               - - mysql://nova:unset@
672                 - *database_host
673                 - /nova
674           default_floating_pool:
675             ext-net
676           host: {get_input: controller_virtual_ip}
677           metadata-proxy: true
678           service-password:
679             get_param: NovaPassword
680         rabbit:
681           host: {get_input: controller_virtual_ip}
682           username:
683             get_param: RabbitUserName
684           password:
685             get_param: RabbitPassword
686           cookie:
687             get_attr:
688             - RabbitCookie
689             - value
690           rabbit_client_use_ssl: {get_param: RabbitClientUseSSL}
691           rabbit_port: {get_param: RabbitClientPort}
692         ntp:
693           servers:
694               - {server: {get_param: NtpServer}, fudge: "stratum 0"}
695         virtual_interfaces:
696           instances:
697             - vrrp_instance_name: VI_CONTROL
698               virtual_router_id: 51
699               keepalive_interface:
700                 get_param: ControlVirtualInterface
701               priority: 101
702               virtual_ips:
703               - ip: {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
704                 interface:
705                   get_param: ControlVirtualInterface
706             - vrrp_instance_name: VI_PUBLIC
707               virtual_router_id: 52
708               keepalive_interface:
709                 get_param: PublicVirtualInterface
710               priority: 101
711               virtual_ips:
712               - ip: {get_attr: [PublicVirtualIP, fixed_ips, 0, ip_address]}
713                 interface:
714                   get_param: PublicVirtualInterface
715           vrrp_sync_groups:
716             - name: VG1
717               members:
718                 - VI_CONTROL
719                 - VI_PUBLIC
720         keepalived:
721           keepalive_interface:
722             get_param: PublicVirtualInterface
723           priority: 101
724         virtual_ips:
725             -
726               ip: {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
727               interface:
728                 get_param: ControlVirtualInterface
729             -
730               ip: {get_attr: [PublicVirtualIP, fixed_ips, 0, ip_address]}
731               interface:
732                 get_param: PublicVirtualInterface
733         haproxy:
734           nodes:
735             Merge::Map:
736               controller0:
737                 ip: {get_attr: [controller0, networks, ctlplane, 0]}
738                 name: {get_attr: [controller0, name]}
739           net_binds:
740             - &control_vip {ip: {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}}
741             - &public_vip {ip: {get_attr: [PublicVirtualIP, fixed_ips, 0, ip_address]}}
742           options:
743             - option httpchk GET /
744           services:
745             - name: keystone_admin
746               port: 35357
747             - name: keystone_public
748               port: 5000
749             - name: horizon
750               port: 80
751             - name: neutron
752               port: 9696
753             - name: cinder
754               port: 8776
755             - name: glance_api
756               port: 9292
757             - name: glance_registry
758               port: 9191
759               options: # overwrite options as glace_reg needs auth for http req
760             - name: heat_api
761               port: 8004
762             - name: heat_cloudwatch
763               port: 8003
764             - name: heat_cfn
765               port: 8000
766             - name: mysql
767               port: 3306
768               net_binds:
769                 - *control_vip
770               extra_server_params:
771                 - backup
772               options:
773                 - timeout client 0
774                 - timeout server 0
775             - name: nova_ec2
776               port: 8773
777             - name: nova_osapi
778               port: 8774
779             - name: nova_metadata
780               port: 8775
781             - name: nova_novncproxy
782               port: 6080
783             - name: ceilometer
784               port: 8777
785               options: # overwrite options as ceil needs auth for http req
786             - name: swift_proxy_server
787               port: 8080
788               options:
789                 - option httpchk GET /info
790             - name: rabbitmq
791               port: 5672
792               net_binds:
793                 - *control_vip
794               options:
795                 - timeout client 0
796                 - timeout server 0
797   controllerPassthrough:
798     type: OS::Heat::StructuredConfig
799     properties:
800       group: os-apply-config
801       config: {get_input: passthrough_config}
802   controllerPassthroughSpecific:
803     type: OS::Heat::StructuredConfig
804     properties:
805       group: os-apply-config
806       config: {get_input: passthrough_config_specific}
807   controller0:
808     type: OS::Nova::Server
809     properties:
810       image:
811         get_param: controllerImage
812       image_update_policy:
813         get_param: ImageUpdatePolicy
814       flavor:
815         get_param: OvercloudControlFlavor
816       key_name:
817         get_param: KeyName
818       networks:
819         - network: ctlplane
820       user_data_format: SOFTWARE_CONFIG
821   controller0AllNodesDeployment:
822     depends_on: [controller0Deployment,controller0SSLDeployment,controller0Swift,controller0PassthroughSpecific]
823     type: OS::Heat::StructuredDeployment
824     properties:
825       signal_transport: {get_param: DefaultSignalTransport}
826       config: {get_resource: allNodesConfig}
827       server: {get_resource: controller0}
828   controller0Deployment:
829     type: OS::Heat::StructuredDeployment
830     properties:
831       signal_transport: NO_SIGNAL
832       config: {get_resource: controllerConfig}
833       server: {get_resource: controller0}
834       input_values:
835         bootstack_nodeid: {get_attr: [controller0, name]}
836         controller_host: {get_attr: [controller0, networks, ctlplane, 0]}
837         controller_virtual_ip:
838           {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
839         heat.watch_server_url:
840           Fn::Join:
841             - ''
842             - - 'http://'
843               - {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
844               - ':8003'
845         heat.metadata_server_url:
846           Fn::Join:
847             - ''
848             - - 'http://'
849               - {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
850               - ':8000'
851         heat.waitcondition_server_url:
852           Fn::Join:
853             - ''
854             - - 'http://'
855               - {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
856               - ':8000/v1/waitcondition'
857   allNodesConfig:
858     type: OS::Heat::StructuredConfig
859     properties:
860       config:
861         completion-signal: {get_input: deploy_signal_id}
862         hosts:
863           Fn::Join:
864           - "\n"
865           - - Fn::Join:
866               - "\n"
867               - Merge::Map:
868                   NovaCompute0:
869                     Fn::Join:
870                     - ' '
871                     - - {get_attr: [NovaCompute0, networks, ctlplane, 0]}
872                       - {get_attr: [NovaCompute0, name]}
873                       - Fn::Join:
874                         - '.'
875                         - - {get_attr: [NovaCompute0, name]}
876                           - 'novalocal'
877             - Fn::Join:
878               - "\n"
879               - Merge::Map:
880                   BlockStorage0:
881                     Fn::Join:
882                     - ' '
883                     - - {get_attr: [BlockStorage0, networks, ctlplane, 0]}
884                       - {get_attr: [BlockStorage0, name]}
885                       - Fn::Join:
886                         - '.'
887                         - - {get_attr: [BlockStorage0, name]}
888                           - 'novalocal'
889             - Fn::Join:
890               - "\n"
891               - Merge::Map:
892                   SwiftStorage0:
893                     Fn::Join:
894                     - ' '
895                     - - {get_attr: [SwiftStorage0, networks, ctlplane, 0]}
896                       - {get_attr: [SwiftStorage0, name]}
897                       - Fn::Join:
898                         - '.'
899                         - - {get_attr: [SwiftStorage0, name]}
900                           - 'novalocal'
901             - Fn::Join:
902               - "\n"
903               - Merge::Map:
904                   controller0:
905                     Fn::Join:
906                     - ' '
907                     - - {get_attr: [controller0, networks, ctlplane, 0]}
908                       - {get_attr: [controller0, name]}
909                       - Fn::Join:
910                         - '.'
911                         - - {get_attr: [controller0, name]}
912                           - 'novalocal'
913                       - {get_param: CloudName}
914         rabbit:
915           nodes:
916             Fn::Join:
917               - ','
918               - Merge::Map:
919                   controller0:
920                     {get_attr: [controller0, name]}
921   controller0SSLDeployment:
922     type: OS::Heat::StructuredDeployment
923     properties:
924       config: {get_resource: SSLConfig}
925       server: {get_resource: controller0}
926       signal_transport: NO_SIGNAL
927       input_values:
928         controller_host: {get_attr: [controller0, networks, ctlplane, 0]}
929         ssl_certificate: {get_param: SSLCertificate}
930         ssl_key: {get_param: SSLKey}
931         ssl_ca_certificate: {get_param: SSLCACertificate}
932   controller0Passthrough:
933     type: OS::Heat::StructuredDeployment
934     properties:
935       config: {get_resource: controllerPassthrough}
936       server: {get_resource: controller0}
937       signal_transport: NO_SIGNAL
938       input_values:
939         passthrough_config: {get_param: ExtraConfig}
940   controller0PassthroughSpecific:
941     depends_on: [controller0Passthrough]
942     type: OS::Heat::StructuredDeployment
943     properties:
944       config: {get_resource: controllerPassthroughSpecific}
945       server: {get_resource: controller0}
946       signal_transport: NO_SIGNAL
947       input_values:
948         passthrough_config_specific: {get_param: controllerExtraConfig}
949 outputs:
950   KeystoneURL:
951     description: URL for the Overcloud Keystone service
952     value:
953       Fn::Join:
954       - ''
955       - - http://
956         - {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
957         - :5000/v2.0/