Switch net-config templates to use OS::stack_id
[apex-tripleo-heat-templates.git] / controller.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   OpenStack control plane node. Can be wrapped in a ResourceGroup for scaling.
5
6 parameters:
7   AdminPassword:
8     default: unset
9     description: The password for the keystone admin account, used for monitoring, querying neutron etc.
10     type: string
11     hidden: true
12   AdminToken:
13     default: unset
14     description: The keystone auth secret.
15     type: string
16     hidden: true
17   CeilometerBackend:
18     default: 'mongodb'
19     description: The ceilometer backend type.
20     type: string
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   CinderEnableIscsiBackend:
32     default: true
33     description: Whether to enable or not the Iscsi backend for Cinder
34     type: boolean
35   CinderEnableRbdBackend:
36     default: false
37     description: Whether to enable or not the Rbd backend for Cinder
38     type: boolean
39   CinderISCSIHelper:
40     default: tgtadm
41     description: The iSCSI helper to use with cinder.
42     type: string
43   CinderLVMLoopDeviceSize:
44     default: 5000
45     description: The size of the loopback file used by the cinder LVM driver.
46     type: number
47   CinderPassword:
48     default: unset
49     description: The password for the cinder service account, used by cinder-api.
50     type: string
51     hidden: true
52   CloudName:
53     default: ''
54     description: The DNS name of this cloud. E.g. ci-overcloud.tripleo.org
55     type: string
56   ControllerExtraConfig:
57     default: {}
58     description: |
59       Controller specific configuration to inject into the cluster. Same
60       structure as ExtraConfig.
61     type: json
62   ControlVirtualInterface:
63     default: 'br-ex'
64     description: Interface where virtual ip will be assigned.
65     type: string
66   Debug:
67     default: ''
68     description: Set to True to enable debugging on all services.
69     type: string
70   EnableGalera:
71     default: true
72     description: Whether to use Galera instead of regular MariaDB.
73     type: boolean
74   EnablePacemaker:
75     default: false
76     description: If enabled services will be monitored by Pacemaker; it
77       will manage VIPs as well, in place of Keepalived.
78     type: boolean
79   EnableCephStorage:
80     default: false
81     description: Whether to deploy Ceph Storage (OSD) on the Controller
82     type: boolean
83   EnableSwiftStorage:
84     default: true
85     description: Whether to enable Swift Storage on the Controller
86     type: boolean
87   ExtraConfig:
88     default: {}
89     description: |
90       Additional configuration to inject into the cluster. The JSON should have
91       the following structure:
92         {"FILEKEY":
93           {"config":
94             [{"section": "SECTIONNAME",
95               "values":
96                 [{"option": "OPTIONNAME",
97                   "value": "VALUENAME"
98                  }
99                 ]
100              }
101             ]
102           }
103         }
104       For instance:
105         {"nova":
106           {"config":
107             [{"section": "default",
108               "values":
109                 [{"option": "compute_manager",
110                   "value": "ironic.nova.compute.manager.ClusterComputeManager"
111                  }
112                 ]
113              },
114              {"section": "cells",
115               "values":
116                 [{"option": "driver",
117                   "value": "nova.cells.rpc_driver.CellsRPCDriver"
118                  }
119                 ]
120              }
121             ]
122           }
123         }
124     type: json
125   Flavor:
126     description: Flavor for control nodes to request when deploying.
127     type: string
128     constraints:
129       - custom_constraint: nova.flavor
130   GlanceNotifierStrategy:
131     description: Strategy to use for Glance notification queue
132     type: string
133     default: noop
134   GlanceLogFile:
135     description: The filepath of the file to use for logging messages from Glance.
136     type: string
137     default: ''
138   GlancePassword:
139     default: unset
140     description: The password for the glance service account, used by the glance services.
141     type: string
142     hidden: true
143   GlancePort:
144     default: "9292"
145     description: Glance port.
146     type: string
147   GlanceProtocol:
148     default: http
149     description: Protocol to use when connecting to glance, set to https for SSL.
150     type: string
151   GlanceBackend:
152     default: swift
153     description: The short name of the Glance backend to use. Should be one
154       of swift, rbd, or file
155     type: string
156     constraints:
157     - allowed_values: ['swift', 'file', 'rbd']
158   HeatPassword:
159     default: unset
160     description: The password for the Heat service account, used by the Heat services.
161     type: string
162     hidden: true
163   HeatStackDomainAdminPassword:
164     description: Password for heat_domain_admin user.
165     type: string
166     default: ''
167     hidden: true
168   HeatAuthEncryptionKey:
169     description: Auth encryption key for heat-engine
170     type: string
171   HorizonSecret:
172     description: Secret key for Django
173     type: string
174   Image:
175     type: string
176     default: overcloud-control
177     constraints:
178       - custom_constraint: glance.image
179   ImageUpdatePolicy:
180     default: 'REBUILD_PRESERVE_EPHEMERAL'
181     description: What policy to use when reconstructing instances. REBUILD for rebuilds, REBUILD_PRESERVE_EPHEMERAL to preserve /mnt.
182     type: string
183   KeyName:
184     default: default
185     description: Name of an existing EC2 KeyPair to enable SSH access to the instances
186     type: string
187     constraints:
188       - custom_constraint: nova.keypair
189   KeystoneCACertificate:
190     default: ''
191     description: Keystone self-signed certificate authority certificate.
192     type: string
193   KeystoneSigningCertificate:
194     default: ''
195     description: Keystone certificate for verifying token validity.
196     type: string
197   KeystoneSigningKey:
198     default: ''
199     description: Keystone key for signing tokens.
200     type: string
201     hidden: true
202   KeystoneSSLCertificate:
203     default: ''
204     description: Keystone certificate for verifying token validity.
205     type: string
206   KeystoneSSLCertificateKey:
207     default: ''
208     description: Keystone key for signing tokens.
209     type: string
210     hidden: true
211   MysqlClusterUniquePart:
212     description: A unique identifier of the MySQL cluster the controller is in.
213     type: string
214     default: 'unset'  # Has to be here because of the ignored empty value bug
215     # Drop the validation: https://bugs.launchpad.net/tripleo/+bug/1405446
216     # constraints:
217     # - length: {min: 4, max: 10}
218   MysqlInnodbBufferPoolSize:
219     description: >
220         Specifies the size of the buffer pool in megabytes. Setting to
221         zero should be interpreted as "no value" and will defer to the
222         lower level default.
223     type: number
224     default: 0
225   MysqlRootPassword:
226     type: string
227     hidden: true
228     default: ''  # Has to be here because of the ignored empty value bug
229   NeutronBridgeMappings:
230     description: >
231       The OVS logical->physical bridge mappings to use. See the Neutron
232       documentation for details. Defaults to mapping br-ex - the external
233       bridge on hosts - to a physical name 'datacentre' which can be used
234       to create provider networks (and we use this for the default floating
235       network) - if changing this either use different post-install network
236       scripts or be sure to keep 'datacentre' as a mapping network name.
237     type: string
238     default: "datacentre:br-ex"
239   NeutronDnsmasqOptions:
240     default: 'dhcp-option-force=26,1400'
241     description: Dnsmasq options for neutron-dhcp-agent. The default value here forces MTU to be set to 1400 to account for the gre tunnel overhead.
242     type: string
243   NeutronAgentMode:
244     default: 'dvr_snat'
245     description: Agent mode for the neutron-l3-agent on the controller hosts
246     type: string
247   NeutronDVR:
248     default: 'False'
249     description: Whether to configure Neutron Distributed Virtual Routers
250     type: string
251   NeutronMetadataProxySharedSecret:
252     default: 'unset'
253     description: Shared secret to prevent spoofing
254     type: string
255   NeutronMechanismDrivers:
256     default: 'openvswitch'
257     description: |
258         The mechanism drivers for the Neutron tenant network. To specify multiple
259         values, use a comma separated string, like so: 'openvswitch,l2_population'
260     type: string
261   NeutronAllowL3AgentFailover:
262     default: 'True'
263     description: Allow automatic l3-agent failover
264     type: string
265   NeutronL3HA:
266     default: 'False'
267     description: Whether to enable l3-agent HA
268     type: string
269   NeutronEnableTunnelling:
270     type: string
271     default: "True"
272   NeutronFlatNetworks:
273     type: string
274     default: 'datacentre'
275     description: If set, flat networks to configure in neutron plugins.
276   NeutronNetworkType:
277     default: 'gre'
278     description: The tenant network type for Neutron, either gre or vxlan.
279     type: string
280   NeutronNetworkVLANRanges:
281     default: 'datacentre'
282     description: >
283       The Neutron ML2 and OpenVSwitch vlan mapping range to support. See the
284       Neutron documentation for permitted values. Defaults to permitting any
285       VLAN on the 'datacentre' physical network (See NeutronBridgeMappings).
286     type: string
287   NeutronPassword:
288     default: unset
289     description: The password for the neutron service account, used by neutron agents.
290     type: string
291     hidden: true
292   NeutronPublicInterface:
293     default: nic1
294     description: What interface to bridge onto br-ex for network nodes.
295     type: string
296   NeutronPublicInterfaceTag:
297     default: ''
298     description: >
299       VLAN tag for creating a public VLAN. The tag will be used to
300       create an access port on the exterior bridge for each control plane node,
301       and that port will be given the IP address returned by neutron from the
302       public network. Set CONTROLEXTRA=overcloud-vlan-port.yaml when compiling
303       overcloud.yaml to include the deployment of VLAN ports to the control
304       plane.
305     type: string
306   NeutronPublicInterfaceDefaultRoute:
307     default: ''
308     description: A custom default route for the NeutronPublicInterface.
309     type: string
310   NeutronPublicInterfaceIP:
311     default: ''
312     description: A custom IP address to put onto the NeutronPublicInterface.
313     type: string
314   NeutronPublicInterfaceRawDevice:
315     default: ''
316     description: If set, the public interface is a vlan with this device as the raw device.
317     type: string
318   NeutronTunnelTypes:
319     default: 'gre'
320     description: |
321         The tunnel types for the Neutron tenant network. To specify multiple
322         values, use a comma separated string, like so: 'gre,vxlan'
323     type: string
324   NovaPassword:
325     default: unset
326     description: The password for the nova service account, used by nova-api.
327     type: string
328     hidden: true
329   NtpServer:
330     type: string
331     default: ''
332   PcsdPassword:
333     type: string
334     description: The password for the 'pcsd' user.
335   PublicVirtualInterface:
336     default: 'br-ex'
337     description: >
338         Specifies the interface where the public-facing virtual ip will be assigned.
339         This should be int_public when a VLAN is being used.
340     type: string
341   PublicVirtualIP:
342     type: string
343     default: ''  # Has to be here because of the ignored empty value bug
344   RabbitCookie:
345     type: string
346     default: ''  # Has to be here because of the ignored empty value bug
347     hidden: true
348   RabbitPassword:
349     default: guest
350     description: The password for RabbitMQ
351     type: string
352     hidden: true
353   RabbitUserName:
354     default: guest
355     description: The username for RabbitMQ
356     type: string
357   RabbitClientUseSSL:
358     default: false
359     description: >
360         Rabbit client subscriber parameter to specify
361         an SSL connection to the RabbitMQ host.
362     type: string
363   RabbitClientPort:
364     default: 5672
365     description: Set rabbit subscriber port, change this if using SSL
366     type: number
367   SnmpdReadonlyUserName:
368     default: ro_snmp_user
369     description: The user name for SNMPd with readonly rights running on all Overcloud nodes
370     type: string
371   SnmpdReadonlyUserPassword:
372     default: unset
373     description: The user password for SNMPd with readonly rights running on all Overcloud nodes
374     type: string
375     hidden: true
376   SSLCACertificate:
377     default: ''
378     description: If set, the contents of an SSL certificate authority file.
379     type: string
380   SSLCertificate:
381     default: ''
382     description: If set, the contents of an SSL certificate .crt file for encrypting SSL endpoints.
383     type: string
384     hidden: true
385   SSLKey:
386     default: ''
387     description: If set, the contents of an SSL certificate .key file for encrypting SSL endpoints.
388     type: string
389     hidden: true
390   SwiftHashSuffix:
391     default: unset
392     description: A random string to be used as a salt when hashing to determine mappings
393       in the ring.
394     hidden: true
395     type: string
396   SwiftMountCheck:
397     default: 'false'
398     description: Value of mount_check in Swift account/container/object -server.conf
399     type: boolean
400   SwiftMinPartHours:
401     type: number
402     default: 1
403     description: The minimum time (in hours) before a partition in a ring can be moved following a rebalance.
404   SwiftPartPower:
405     default: 10
406     description: Partition Power to use when building Swift rings
407     type: number
408   SwiftPassword:
409     default: unset
410     description: The password for the swift service account, used by the swift proxy
411       services.
412     hidden: true
413     type: string
414   SwiftReplicas:
415     type: number
416     default: 3
417     description: How many replicas to use in the swift rings.
418   VirtualIP:
419     type: string
420     default: ''  # Has to be here because of the ignored empty value bug
421
422
423 resources:
424
425   Controller:
426     type: OS::Nova::Server
427     properties:
428       image: {get_param: Image}
429       image_update_policy: {get_param: ImageUpdatePolicy}
430       flavor: {get_param: Flavor}
431       key_name: {get_param: KeyName}
432       networks:
433         - network: ctlplane
434       user_data_format: SOFTWARE_CONFIG
435       user_data: {get_resource: NodeUserData}
436
437   NodeUserData:
438     type: OS::TripleO::NodeUserData
439
440   ExternalPort:
441     type: OS::TripleO::Controller::Ports::ExternalPort
442     properties:
443       ControlPlaneIP: {get_attr: [Controller, networks, ctlplane, 0]}
444
445   InternalApiPort:
446     type: OS::TripleO::Controller::Ports::InternalApiPort
447     properties:
448       ControlPlaneIP: {get_attr: [Controller, networks, ctlplane, 0]}
449
450   StoragePort:
451     type: OS::TripleO::Controller::Ports::StoragePort
452     properties:
453       ControlPlaneIP: {get_attr: [Controller, networks, ctlplane, 0]}
454
455   StorageMgmtPort:
456     type: OS::TripleO::Controller::Ports::StorageMgmtPort
457     properties:
458       ControlPlaneIP: {get_attr: [Controller, networks, ctlplane, 0]}
459
460   TenantPort:
461     type: OS::TripleO::Controller::Ports::TenantPort
462     properties:
463       ControlPlaneIP: {get_attr: [Controller, networks, ctlplane, 0]}
464
465   NetworkConfig:
466     type: OS::TripleO::Controller::Net::SoftwareConfig
467     properties:
468       ExternalIpSubnet: {get_attr: [ExternalPort, ip_subnet]}
469       InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
470       StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
471       StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
472       TenantIpSubnet: {get_attr: [TenantPort, ip_subnet]}
473
474   NetworkDeployment:
475     type: OS::TripleO::SoftwareDeployment
476     properties:
477       signal_transport: NO_SIGNAL
478       config: {get_resource: NetworkConfig}
479       server: {get_resource: Controller}
480       input_values:
481         bridge_name: br-ex
482         interface_name: {get_param: NeutronPublicInterface}
483
484   ControllerPassthroughConfig:
485     type: OS::Heat::StructuredConfig
486     properties:
487       group: os-apply-config
488       config: {get_input: passthrough_config}
489
490   ControllerPassthroughConfigSpecific:
491     type: OS::Heat::StructuredConfig
492     properties:
493       group: os-apply-config
494       config: {get_input: passthrough_config_specific}
495
496   ControllerConfig:
497     type: OS::Heat::StructuredConfig
498     properties:
499       group: os-apply-config
500       config:
501         admin-password: {get_input: admin_password}
502         admin-token: {get_input: admin_token}
503         bootstack:
504           public_interface_ip: {get_input: neutron_public_interface_ip}
505         bootstrap_host:
506           nodeid: {get_input: bootstack_nodeid}
507         cinder:
508           db: {get_input: cinder_dsn}
509           debug: {get_input: debug}
510           volume_size_mb: {get_input: cinder_lvm_loop_device_size}
511           service-password: {get_input: cinder_password}
512           iscsi-helper: {get_input: CinderISCSIHelper}
513         controller-address: {get_input: controller_host}
514         corosync:
515           bindnetaddr: {get_input: controller_host}
516           mcastport: 5577
517         pacemaker:
518           stonith_enabled : false
519           recheck_interval : 5
520           quorum_policy : ignore
521         db-password: unset
522         glance:
523           registry:
524             host: {get_input: controller_virtual_ip}
525           backend: swift
526           db: {get_input: glance_dsn}
527           debug: {get_input: debug}
528           host: {get_input: controller_virtual_ip}
529           port: {get_input: glance_port}
530           protocol: {get_input: glance_protocol}
531           service-password: {get_input: glance_password}
532           swift-store-user: service:glance
533           swift-store-key: {get_input: glance_password}
534           notifier-strategy: {get_input: glance_notifier_strategy}
535           log-file: {get_input: glance_log_file}
536         heat:
537           admin_password: {get_input: heat_password}
538           admin_tenant_name: service
539           admin_user: heat
540           auth_encryption_key: {get_input: heat_auth_encryption_key}
541           db: {get_input: heat_dsn}
542           debug: {get_input: debug}
543           stack_domain_admin_password: {get_input: heat_stack_domain_admin_password}
544           watch_server_url: {get_input: heat.watch_server_url}
545           metadata_server_url: {get_input: heat.metadata_server_url}
546           waitcondition_server_url: {get_input: heat.waitcondition_server_url}
547         keystone:
548           db: {get_input: keystone_dsn}
549           debug: {get_input: debug}
550           host: {get_input: controller_virtual_ip}
551           ca_certificate: {get_input: keystone_ca_certificate}
552           signing_key: {get_input: keystone_signing_key}
553           signing_certificate: {get_input: keystone_signing_certificate}
554           ssl:
555               certificate: {get_input: keystone_ssl_certificate}
556               certificate_key: {get_input: keystone_ssl_certificate_key}
557         mysql:
558           innodb_buffer_pool_size: {get_input: mysql_innodb_buffer_pool_size}
559           local_bind: true
560           root-password: {get_input: mysql_root_password}
561           cluster_name: {get_input: mysql_cluster_name}
562         neutron:
563           debug: {get_input: debug}
564           flat-networks: {get_input: neutron_flat_networks}
565           host: {get_input: controller_virtual_ip}
566           metadata_proxy_shared_secret: {get_input: neutron_metadata_proxy_shared_secret}
567           agent_mode: {get_input: neutron_agent_mode}
568           router_distributed: {get_input: neutron_router_distributed}
569           mechanism_drivers: {get_input: neutron_mechanism_drivers}
570           allow_automatic_l3agent_failover: {get_input: neutron_allow_l3agent_failover}
571           l3_ha: {get_input: neutron_l3_ha}
572           ovs:
573             enable_tunneling: {get_input: neutron_enable_tunneling}
574             local_ip: {get_input: controller_host}
575             network_vlan_ranges: {get_input: neutron_network_vlan_ranges}
576             bridge_mappings: {get_input: neutron_bridge_mappings}
577             public_interface: {get_input: neutron_public_interface}
578             public_interface_raw_device: {get_input: neutron_public_interface_raw_device}
579             public_interface_route: {get_input: neutron_public_interface_default_route}
580             public_interface_tag: {get_input: neutron_public_interface_tag}
581             physical_bridge: br-ex
582             tenant_network_type: {get_input: neutron_tenant_network_type}
583             tunnel_types: {get_input: neutron_tunnel_types}
584           ovs_db: {get_input: neutron_dsn}
585           service-password: {get_input: neutron_password}
586           dnsmasq-options: {get_input: neutron_dnsmasq_options}
587         ceilometer:
588           db: {get_input: ceilometer_dsn}
589           debug: {get_input: debug}
590           metering_secret: {get_input: ceilometer_metering_secret}
591           service-password: {get_input: ceilometer_password}
592         snmpd:
593           export_MIB: UCD-SNMP-MIB
594           readonly_user_name: {get_input: snmpd_readonly_user_name}
595           readonly_user_password: {get_input: snmpd_readonly_user_password}
596         nova:
597           compute_driver: libvirt.LibvirtDriver
598           db: {get_input: nova_dsn}
599           default_floating_pool:
600             ext-net
601           host: {get_input: controller_virtual_ip}
602           metadata-proxy: true
603           service-password: {get_input: nova_password}
604         rabbit:
605           host: {get_input: controller_virtual_ip}
606           username: {get_input: rabbit_username}
607           password: {get_input: rabbit_password}
608           cookie: {get_input: rabbit_cookie}
609           rabbit_client_use_ssl: {get_input: rabbit_client_use_ssl}
610           rabbit_port: {get_input: rabbit_client_port}
611         ntp:
612           servers:
613               - {server: {get_input: ntp_server}}
614         virtual_interfaces:
615           instances:
616             - vrrp_instance_name: VI_CONTROL
617               virtual_router_id: 51
618               keepalive_interface: {get_input: control_virtual_interface}
619               priority: 101
620               virtual_ips:
621               - ip: {get_input: controller_virtual_ip}
622                 interface: {get_input: control_virtual_interface}
623             - vrrp_instance_name: VI_PUBLIC
624               virtual_router_id: 52
625               keepalive_interface: {get_input: public_virtual_interface}
626               priority: 101
627               virtual_ips:
628               - ip: {get_input: public_virtual_ip}
629                 interface: {get_input: public_virtual_interface}
630           vrrp_sync_groups:
631             - name: VG1
632               members:
633                 - VI_CONTROL
634                 - VI_PUBLIC
635         keepalived:
636           keepalive_interface: {get_input: public_virtual_interface}
637           priority: 101
638         virtual_ips:
639             -
640               ip: {get_input: controller_virtual_ip}
641               interface: {get_input: control_virtual_interface}
642             -
643               ip: {get_input: public_virtual_ip}
644               interface: {get_input: public_virtual_interface}
645         haproxy:
646           net_binds:
647             - ip: {get_input: controller_virtual_ip}
648           options:
649             - option httpchk GET /
650           services:
651             - name: keystone_admin
652               port: 35357
653               net_binds: &public_binds
654                 - ip: {get_input: controller_virtual_ip}
655                 - ip: {get_input: public_virtual_ip}
656             - name: keystone_public
657               port: 5000
658               net_binds: *public_binds
659             - name: horizon
660               port: 80
661               net_binds: *public_binds
662             - name: neutron
663               port: 9696
664               net_binds: *public_binds
665             - name: cinder
666               port: 8776
667               net_binds: *public_binds
668             - name: glance_api
669               port: 9292
670               net_binds: *public_binds
671             - name: glance_registry
672               port: 9191
673               net_binds: *public_binds
674               options: # overwrite options as glace_reg needs auth for http req
675             - name: heat_api
676               port: 8004
677               net_binds: *public_binds
678             - name: heat_cloudwatch
679               port: 8003
680               net_binds: *public_binds
681             - name: heat_cfn
682               port: 8000
683               net_binds: *public_binds
684             - name: mysql
685               port: 3306
686               extra_server_params:
687                 - backup
688               options:
689                 - timeout client 0
690                 - timeout server 0
691             - name: nova_ec2
692               port: 8773
693             - name: nova_osapi
694               port: 8774
695               net_binds: *public_binds
696             - name: nova_metadata
697               port: 8775
698               net_binds: *public_binds
699             - name: nova_novncproxy
700               port: 6080
701               net_binds: *public_binds
702             - name: ceilometer
703               port: 8777
704               net_binds: *public_binds
705               options: # overwrite options as ceil needs auth for http req
706             - name: swift_proxy_server
707               port: 8080
708               net_binds: *public_binds
709               options:
710                 - option httpchk GET /info
711             - name: rabbitmq
712               port: 5672
713               options:
714                 - timeout client 0
715                 - timeout server 0
716                 - maxconn 1500
717
718   ControllerDeployment:
719     type: OS::TripleO::SoftwareDeployment
720     properties:
721       signal_transport: NO_SIGNAL
722       config: {get_resource: ControllerConfig}
723       server: {get_resource: Controller}
724       input_values:
725         bootstack_nodeid: {get_attr: [Controller, name]}
726         controller_host: {get_attr: [Controller, networks, ctlplane, 0]}
727         controller_virtual_ip: {get_param: VirtualIP}
728         neutron_enable_tunneling: {get_param: NeutronEnableTunnelling}
729         heat.watch_server_url:
730           list_join:
731             - ''
732             - - 'http://'
733               - {get_param: VirtualIP}
734               - ':8003'
735         heat.metadata_server_url:
736           list_join:
737             - ''
738             - - 'http://'
739               - {get_param: VirtualIP}
740               - ':8000'
741         heat.waitcondition_server_url:
742           list_join:
743             - ''
744             - - 'http://'
745               - {get_param: VirtualIP}
746               - ':8000/v1/waitcondition'
747         admin_password: {get_param: AdminPassword}
748         admin_token: {get_param: AdminToken}
749         neutron_public_interface_ip: {get_param: NeutronPublicInterfaceIP}
750         debug: {get_param: Debug}
751         cinder_lvm_loop_device_size: {get_param: CinderLVMLoopDeviceSize}
752         cinder_password: {get_param: CinderPassword}
753         cinder_iscsi_helper: {get_param: CinderISCSIHelper}
754         cinder_dsn:
755           list_join:
756             - ''
757             - - 'mysql://cinder:unset@'
758               - {get_param: VirtualIP}
759               - '/cinder'
760         glance_port: {get_param: GlancePort}
761         glance_protocol: {get_param: GlanceProtocol}
762         glance_password: {get_param: GlancePassword}
763         glance_notifier_strategy: {get_param: GlanceNotifierStrategy}
764         glance_log_file: {get_param: GlanceLogFile}
765         glance_dsn:
766           list_join:
767             - ''
768             - - 'mysql://glance:unset@'
769               - {get_param: VirtualIP}
770               - '/glance'
771         heat_password: {get_param: HeatPassword}
772         heat_stack_domain_admin_password: {get_param: HeatStackDomainAdminPassword}
773         heat_auth_encryption_key: {get_param: HeatAuthEncryptionKey}
774         heat_dsn:
775           list_join:
776             - ''
777             - - 'mysql://heat:unset@'
778               - {get_param: VirtualIP}
779               - '/heat'
780         keystone_ca_certificate: {get_param: KeystoneCACertificate}
781         keystone_signing_key: {get_param: KeystoneSigningKey}
782         keystone_signing_certificate: {get_param: KeystoneSigningCertificate}
783         keystone_ssl_certificate: {get_param: KeystoneSSLCertificate}
784         keystone_ssl_certificate_key: {get_param: KeystoneSSLCertificateKey}
785         keystone_dsn:
786           list_join:
787             - ''
788             - - 'mysql://keystone:unset@'
789               - {get_param: VirtualIP}
790               - '/keystone'
791         mysql_innodb_buffer_pool_size: {get_param: MysqlInnodbBufferPoolSize}
792         mysql_root_password: {get_param: MysqlRootPassword}
793         mysql_cluster_name:
794           str_replace:
795             template: tripleo-CLUSTER
796             params:
797               CLUSTER: {get_param: MysqlClusterUniquePart}
798         neutron_flat_networks: {get_param: NeutronFlatNetworks}
799         neutron_metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret}
800         neutron_agent_mode: {get_param: NeutronAgentMode}
801         neutron_router_distributed: {get_param: NeutronDVR}
802         neutron_mechanism_drivers: {get_param: NeutronMechanismDrivers}
803         neutron_allow_l3agent_failover: {get_param: NeutronAllowL3AgentFailover}
804         neutron_l3_ha: {get_param: NeutronL3HA}
805         neutron_network_vlan_ranges: {get_param: NeutronNetworkVLANRanges}
806         neutron_bridge_mappings: {get_param: NeutronBridgeMappings}
807         neutron_public_interface: {get_param: NeutronPublicInterface}
808         neutron_public_interface_raw_device: {get_param: NeutronPublicInterfaceRawDevice}
809         neutron_public_interface_default_route: {get_param: NeutronPublicInterfaceDefaultRoute}
810         neutron_public_interface_tag: {get_param: NeutronPublicInterfaceTag}
811         neutron_tenant_network_type: {get_param: NeutronNetworkType}
812         neutron_tunnel_types: {get_param: NeutronTunnelTypes}
813         neutron_password: {get_param: NeutronPassword}
814         neutron_dnsmasq_options: {get_param: NeutronDnsmasqOptions}
815         neutron_dsn:
816           list_join:
817             - ''
818             - - 'mysql://neutron:unset@'
819               - {get_param: VirtualIP}
820               - '/ovs_neutron?charset=utf8'
821         ceilometer_metering_secret: {get_param: CeilometerMeteringSecret}
822         ceilometer_password: {get_param: CeilometerPassword}
823         ceilometer_dsn:
824           list_join:
825             - ''
826             - - 'mysql://ceilometer:unset@'
827               - {get_param: VirtualIP}
828               - '/ceilometer'
829         snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
830         snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
831         nova_password: {get_param: NovaPassword}
832         nova_dsn:
833           list_join:
834             - ''
835             - - 'mysql://nova:unset@'
836               - {get_param: VirtualIP}
837               - '/nova'
838         rabbit_username: {get_param: RabbitUserName}
839         rabbit_password: {get_param: RabbitPassword}
840         rabbit_cookie: {get_param: RabbitCookie}
841         rabbit_client_use_ssl: {get_param: RabbitClientUseSSL}
842         rabbit_client_port: {get_param: RabbitClientPort}
843         ntp_server: {get_param: NtpServer}
844         control_virtual_interface: {get_param: ControlVirtualInterface}
845         public_virtual_interface: {get_param: PublicVirtualInterface}
846         public_virtual_ip: {get_param: PublicVirtualIP}
847
848   SSLConfig:
849     type: OS::Heat::StructuredConfig
850     properties:
851       group: os-apply-config
852       config:
853         ssl:
854           ca_certificate: {get_input: ssl_ca_certificate}
855         stunnel:
856           cert: {get_input: ssl_certificate}
857           key: {get_input: ssl_key}
858           cacert: {get_input: ssl_ca_certificate}
859           ports:
860            - name: 'ec2'
861              accept: 13773
862              connect: 8773
863              connect_host: {get_input: controller_host}
864            - name: 'image'
865              accept: 13292
866              connect: 9292
867              connect_host: {get_input: controller_host}
868            - name: 'identity'
869              accept: 13000
870              connect: 5000
871              connect_host: {get_input: controller_host}
872            - name: 'network'
873              accept: 13696
874              connect: 9696
875              connect_host: {get_input: controller_host}
876            - name: 'compute'
877              accept: 13774
878              connect: 8774
879              connect_host: {get_input: controller_host}
880            - name: 'swift-proxy'
881              accept: 13080
882              connect: 8080
883              connect_host: {get_input: controller_host}
884            - name: 'cinder'
885              accept: 13776
886              connect: 8776
887              connect_host: {get_input: controller_host}
888            - name: 'ceilometer'
889              accept: 13777
890              connect: 8777
891              connect_host: {get_input: controller_host}
892
893   ControllerSSLDeployment:
894     type: OS::Heat::StructuredDeployment
895     properties:
896       config: {get_resource: SSLConfig}
897       server: {get_resource: Controller}
898       signal_transport: NO_SIGNAL
899       input_values:
900         controller_host: {get_attr: [Controller, networks, ctlplane, 0]}
901         ssl_certificate: {get_param: SSLCertificate}
902         ssl_key: {get_param: SSLKey}
903         ssl_ca_certificate: {get_param: SSLCACertificate}
904
905   ControllerPassthroughDeployment:
906     type: OS::Heat::StructuredDeployment
907     properties:
908       config: {get_resource: ControllerPassthroughConfig}
909       server: {get_resource: Controller}
910       signal_transport: NO_SIGNAL
911       input_values:
912         passthrough_config: {get_param: ExtraConfig}
913
914   ControllerPassthroughSpecificDeployment:
915     depends_on: [ControllerPassthroughDeployment]
916     type: OS::Heat::StructuredDeployment
917     properties:
918       config: {get_resource: ControllerPassthroughConfigSpecific}
919       server: {get_resource: Controller}
920       signal_transport: NO_SIGNAL
921       input_values:
922         passthrough_config_specific: {get_param: ControllerExtraConfig}
923
924   SwiftConfig:
925     type: OS::Heat::StructuredConfig
926     properties:
927       group: os-apply-config
928       config:
929         swift:
930           hash: { get_input: swift_hash_suffix }
931           part-power: { get_input: swift_part_power }
932           mount-check: { get_input: swift_mount_check }
933           min-part-hours: { get_input: swift_min_part_hours }
934           replicas: {get_input: swift_replicas }
935           service-password: { get_input: swift_password }
936
937   SwiftStorageDeploy:
938     type: OS::Heat::StructuredDeployment
939     properties:
940       server: {get_resource: Controller}
941       config: {get_resource: SwiftConfig}
942       signal_transport: NO_SIGNAL
943       input_values:
944         swift_hash_suffix: {get_param: SwiftHashSuffix}
945         swift_mount_check: {get_param: SwiftMountCheck}
946         swift_password: {get_param: SwiftPassword}
947         swift_min_part_hours: {get_param: SwiftMinPartHours}
948         swift_part_power: {get_param: SwiftPartPower}
949         swift_replicas: { get_param: SwiftReplicas}
950
951 outputs:
952   ip_address:
953     description: IP address of the server in the ctlplane network
954     value: {get_attr: [Controller, networks, ctlplane, 0]}
955   external_ip_address:
956     description: IP address of the server in the external network
957     value: {get_attr: [ExternalPort, ip_address]}
958   internal_api_ip_address:
959     description: IP address of the server in the internal_api network
960     value: {get_attr: [InternalApiPort, ip_address]}
961   storage_ip_address:
962     description: IP address of the server in the storage network
963     value: {get_attr: [StoragePort, ip_address]}
964   storage_mgmt_ip_address:
965     description: IP address of the server in the storage_mgmt network
966     value: {get_attr: [StorageMgmtPort, ip_address]}
967   tenant_ip_address:
968     description: IP address of the server in the tenant network
969     value: {get_attr: [TenantPort, ip_address]}
970   hostname:
971     description: Hostname of the server
972     value: {get_attr: [Controller, name]}
973   corosync_node:
974     description: >
975       Node object in the format {ip: ..., name: ...} format that the corosync
976       element expects
977     value:
978       ip: {get_attr: [Controller, networks, ctlplane, 0]}
979       name: {get_attr: [Controller, name]}
980   hosts_entry:
981     description: >
982       Server's IP address and hostname in the /etc/hosts format
983     value:
984       str_replace:
985         template: IP HOST CLOUDNAME
986         params:
987           IP: {get_attr: [Controller, networks, ctlplane, 0]}
988           HOST: {get_attr: [Controller, name]}
989           CLOUDNAME: {get_param: CloudName}
990   nova_server_resource:
991     description: Heat resource handle for the Nova compute server
992     value:
993       {get_resource: Controller}
994   swift_device:
995     description: Swift device formatted for swift-ring-builder
996     value:
997       str_replace:
998         template: 'r1z1-IP:%PORT%/d1'
999         params:
1000           IP: {get_attr: [Controller, networks, ctlplane, 0]}
1001   swift_proxy_memcache:
1002     description: Swift proxy-memcache value
1003     value:
1004       str_replace:
1005         template: "IP:11211"
1006         params:
1007           IP: {get_attr: [Controller, networks, ctlplane, 0]}