Add Redis as a Pacemaker resource
[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 and db password.
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 and db 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 and db 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 and db 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 and db 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: comma_delimited_list
287   NeutronPassword:
288     default: unset
289     description: The password for the neutron service and db 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 and db 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   RedisVirtualIP:
368     type: string
369     default: ''  # Has to be here because of the ignored empty value bug
370   SnmpdReadonlyUserName:
371     default: ro_snmp_user
372     description: The user name for SNMPd with readonly rights running on all Overcloud nodes
373     type: string
374   SnmpdReadonlyUserPassword:
375     default: unset
376     description: The user password for SNMPd with readonly rights running on all Overcloud nodes
377     type: string
378     hidden: true
379   SSLCACertificate:
380     default: ''
381     description: If set, the contents of an SSL certificate authority file.
382     type: string
383   SSLCertificate:
384     default: ''
385     description: If set, the contents of an SSL certificate .crt file for encrypting SSL endpoints.
386     type: string
387     hidden: true
388   SSLKey:
389     default: ''
390     description: If set, the contents of an SSL certificate .key file for encrypting SSL endpoints.
391     type: string
392     hidden: true
393   SwiftHashSuffix:
394     default: unset
395     description: A random string to be used as a salt when hashing to determine mappings
396       in the ring.
397     hidden: true
398     type: string
399   SwiftMountCheck:
400     default: 'false'
401     description: Value of mount_check in Swift account/container/object -server.conf
402     type: boolean
403   SwiftMinPartHours:
404     type: number
405     default: 1
406     description: The minimum time (in hours) before a partition in a ring can be moved following a rebalance.
407   SwiftPartPower:
408     default: 10
409     description: Partition Power to use when building Swift rings
410     type: number
411   SwiftPassword:
412     default: unset
413     description: The password for the swift service account, used by the swift proxy
414       services.
415     hidden: true
416     type: string
417   SwiftReplicas:
418     type: number
419     default: 3
420     description: How many replicas to use in the swift rings.
421   VirtualIP:
422     type: string
423     default: ''  # Has to be here because of the ignored empty value bug
424   HeatApiVirtualIP:
425     type: string
426     default: ''
427   GlanceApiVirtualIP:
428     type: string
429     default: ''
430   MysqlVirtualIP:
431     type: string
432     default: ''
433   KeystonePublicApiVirtualIP:
434     type: string
435     default: ''
436   NeutronApiVirtualIP:
437     type: string
438     default: ''
439   ServiceNetMap:
440     default: {}
441     description: Mapping of service_name -> network name. Typically set
442                  via parameter_defaults in the resource registry.
443     type: json
444
445 resources:
446
447   Controller:
448     type: OS::Nova::Server
449     properties:
450       image: {get_param: Image}
451       image_update_policy: {get_param: ImageUpdatePolicy}
452       flavor: {get_param: Flavor}
453       key_name: {get_param: KeyName}
454       networks:
455         - network: ctlplane
456       user_data_format: SOFTWARE_CONFIG
457       user_data: {get_resource: NodeUserData}
458
459   NodeUserData:
460     type: OS::TripleO::NodeUserData
461
462   ExternalPort:
463     type: OS::TripleO::Controller::Ports::ExternalPort
464     properties:
465       ControlPlaneIP: {get_attr: [Controller, networks, ctlplane, 0]}
466
467   InternalApiPort:
468     type: OS::TripleO::Controller::Ports::InternalApiPort
469     properties:
470       ControlPlaneIP: {get_attr: [Controller, networks, ctlplane, 0]}
471
472   StoragePort:
473     type: OS::TripleO::Controller::Ports::StoragePort
474     properties:
475       ControlPlaneIP: {get_attr: [Controller, networks, ctlplane, 0]}
476
477   StorageMgmtPort:
478     type: OS::TripleO::Controller::Ports::StorageMgmtPort
479     properties:
480       ControlPlaneIP: {get_attr: [Controller, networks, ctlplane, 0]}
481
482   TenantPort:
483     type: OS::TripleO::Controller::Ports::TenantPort
484     properties:
485       ControlPlaneIP: {get_attr: [Controller, networks, ctlplane, 0]}
486
487   NetworkConfig:
488     type: OS::TripleO::Controller::Net::SoftwareConfig
489     properties:
490       ExternalIpSubnet: {get_attr: [ExternalPort, ip_subnet]}
491       InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
492       StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
493       StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
494       TenantIpSubnet: {get_attr: [TenantPort, ip_subnet]}
495
496   NetworkDeployment:
497     type: OS::TripleO::SoftwareDeployment
498     properties:
499       signal_transport: NO_SIGNAL
500       config: {get_resource: NetworkConfig}
501       server: {get_resource: Controller}
502       input_values:
503         bridge_name: br-ex
504         interface_name: {get_param: NeutronPublicInterface}
505
506   ControllerPassthroughConfig:
507     type: OS::Heat::StructuredConfig
508     properties:
509       group: os-apply-config
510       config: {get_input: passthrough_config}
511
512   ControllerPassthroughConfigSpecific:
513     type: OS::Heat::StructuredConfig
514     properties:
515       group: os-apply-config
516       config: {get_input: passthrough_config_specific}
517
518   ControllerConfig:
519     type: OS::Heat::StructuredConfig
520     properties:
521       group: os-apply-config
522       config:
523         admin-password: {get_input: admin_password}
524         admin-token: {get_input: admin_token}
525         bootstack:
526           public_interface_ip: {get_input: neutron_public_interface_ip}
527         bootstrap_host:
528           nodeid: {get_input: bootstack_nodeid}
529         cinder:
530           db: {get_input: cinder_dsn}
531           debug: {get_input: debug}
532           volume_size_mb: {get_input: cinder_lvm_loop_device_size}
533           service-password: {get_input: cinder_password}
534           iscsi-helper: {get_input: CinderISCSIHelper}
535         controller-address: {get_input: controller_host}
536         corosync:
537           bindnetaddr: {get_input: controller_host}
538           mcastport: 5577
539         pacemaker:
540           stonith_enabled : false
541           recheck_interval : 5
542           quorum_policy : ignore
543         db-password: unset
544         glance:
545           registry:
546             host: {get_input: controller_virtual_ip}
547           backend: swift
548           db: {get_input: glance_dsn}
549           debug: {get_input: debug}
550           host: {get_input: controller_virtual_ip}
551           port: {get_input: glance_port}
552           protocol: {get_input: glance_protocol}
553           service-password: {get_input: glance_password}
554           swift-store-user: service:glance
555           swift-store-key: {get_input: glance_password}
556           notifier-strategy: {get_input: glance_notifier_strategy}
557           log-file: {get_input: glance_log_file}
558         heat:
559           admin_password: {get_input: heat_password}
560           admin_tenant_name: service
561           admin_user: heat
562           auth_encryption_key: {get_input: heat_auth_encryption_key}
563           db: {get_input: heat_dsn}
564           debug: {get_input: debug}
565           stack_domain_admin_password: {get_input: heat_stack_domain_admin_password}
566           watch_server_url: {get_input: heat.watch_server_url}
567           metadata_server_url: {get_input: heat.metadata_server_url}
568           waitcondition_server_url: {get_input: heat.waitcondition_server_url}
569         keystone:
570           db: {get_input: keystone_dsn}
571           debug: {get_input: debug}
572           host: {get_input: controller_virtual_ip}
573           ca_certificate: {get_input: keystone_ca_certificate}
574           signing_key: {get_input: keystone_signing_key}
575           signing_certificate: {get_input: keystone_signing_certificate}
576           ssl:
577               certificate: {get_input: keystone_ssl_certificate}
578               certificate_key: {get_input: keystone_ssl_certificate_key}
579         mysql:
580           innodb_buffer_pool_size: {get_input: mysql_innodb_buffer_pool_size}
581           local_bind: true
582           root-password: {get_input: mysql_root_password}
583           cluster_name: {get_input: mysql_cluster_name}
584         neutron:
585           debug: {get_input: debug}
586           flat-networks: {get_input: neutron_flat_networks}
587           host: {get_input: controller_virtual_ip}
588           metadata_proxy_shared_secret: {get_input: neutron_metadata_proxy_shared_secret}
589           agent_mode: {get_input: neutron_agent_mode}
590           router_distributed: {get_input: neutron_router_distributed}
591           mechanism_drivers: {get_input: neutron_mechanism_drivers}
592           allow_automatic_l3agent_failover: {get_input: neutron_allow_l3agent_failover}
593           l3_ha: {get_input: neutron_l3_ha}
594           ovs:
595             enable_tunneling: {get_input: neutron_enable_tunneling}
596             local_ip: {get_input: controller_host}
597             network_vlan_ranges: {get_input: neutron_network_vlan_ranges}
598             bridge_mappings: {get_input: neutron_bridge_mappings}
599             public_interface: {get_input: neutron_public_interface}
600             public_interface_raw_device: {get_input: neutron_public_interface_raw_device}
601             public_interface_route: {get_input: neutron_public_interface_default_route}
602             public_interface_tag: {get_input: neutron_public_interface_tag}
603             physical_bridge: br-ex
604             tenant_network_type: {get_input: neutron_tenant_network_type}
605             tunnel_types: {get_input: neutron_tunnel_types}
606           ovs_db: {get_input: neutron_dsn}
607           service-password: {get_input: neutron_password}
608           dnsmasq-options: {get_input: neutron_dnsmasq_options}
609         ceilometer:
610           db: {get_input: ceilometer_dsn}
611           debug: {get_input: debug}
612           metering_secret: {get_input: ceilometer_metering_secret}
613           service-password: {get_input: ceilometer_password}
614         snmpd:
615           export_MIB: UCD-SNMP-MIB
616           readonly_user_name: {get_input: snmpd_readonly_user_name}
617           readonly_user_password: {get_input: snmpd_readonly_user_password}
618         nova:
619           compute_driver: libvirt.LibvirtDriver
620           db: {get_input: nova_dsn}
621           default_floating_pool:
622             ext-net
623           host: {get_input: controller_virtual_ip}
624           metadata-proxy: true
625           service-password: {get_input: nova_password}
626         rabbit:
627           host: {get_input: controller_virtual_ip}
628           username: {get_input: rabbit_username}
629           password: {get_input: rabbit_password}
630           cookie: {get_input: rabbit_cookie}
631           rabbit_client_use_ssl: {get_input: rabbit_client_use_ssl}
632           rabbit_port: {get_input: rabbit_client_port}
633         ntp:
634           servers:
635               - {server: {get_input: ntp_server}}
636         virtual_interfaces:
637           instances:
638             - vrrp_instance_name: VI_CONTROL
639               virtual_router_id: 51
640               keepalive_interface: {get_input: control_virtual_interface}
641               priority: 101
642               virtual_ips:
643               - ip: {get_input: controller_virtual_ip}
644                 interface: {get_input: control_virtual_interface}
645             - vrrp_instance_name: VI_PUBLIC
646               virtual_router_id: 52
647               keepalive_interface: {get_input: public_virtual_interface}
648               priority: 101
649               virtual_ips:
650               - ip: {get_input: public_virtual_ip}
651                 interface: {get_input: public_virtual_interface}
652           vrrp_sync_groups:
653             - name: VG1
654               members:
655                 - VI_CONTROL
656                 - VI_PUBLIC
657         keepalived:
658           keepalive_interface: {get_input: public_virtual_interface}
659           priority: 101
660         virtual_ips:
661             -
662               ip: {get_input: controller_virtual_ip}
663               interface: {get_input: control_virtual_interface}
664             -
665               ip: {get_input: public_virtual_ip}
666               interface: {get_input: public_virtual_interface}
667         haproxy:
668           net_binds:
669             - ip: {get_input: controller_virtual_ip}
670           options:
671             - option httpchk GET /
672           services:
673             - name: keystone_admin
674               port: 35357
675               net_binds: &public_binds
676                 - ip: {get_input: controller_virtual_ip}
677                 - ip: {get_input: public_virtual_ip}
678             - name: keystone_public
679               port: 5000
680               net_binds: *public_binds
681             - name: horizon
682               port: 80
683               net_binds: *public_binds
684             - name: neutron
685               port: 9696
686               net_binds: *public_binds
687             - name: cinder
688               port: 8776
689               net_binds: *public_binds
690             - name: glance_api
691               port: 9292
692               net_binds: *public_binds
693             - name: glance_registry
694               port: 9191
695               net_binds: *public_binds
696               options: # overwrite options as glace_reg needs auth for http req
697             - name: heat_api
698               port: 8004
699               net_binds: *public_binds
700             - name: heat_cloudwatch
701               port: 8003
702               net_binds: *public_binds
703             - name: heat_cfn
704               port: 8000
705               net_binds: *public_binds
706             - name: mysql
707               port: 3306
708               extra_server_params:
709                 - backup
710               options:
711                 - timeout client 0
712                 - timeout server 0
713             - name: nova_ec2
714               port: 8773
715             - name: nova_osapi
716               port: 8774
717               net_binds: *public_binds
718             - name: nova_metadata
719               port: 8775
720               net_binds: *public_binds
721             - name: nova_novncproxy
722               port: 6080
723               net_binds: *public_binds
724             - name: ceilometer
725               port: 8777
726               net_binds: *public_binds
727               options: # overwrite options as ceil needs auth for http req
728             - name: swift_proxy_server
729               port: 8080
730               net_binds: *public_binds
731               options:
732                 - option httpchk GET /info
733             - name: rabbitmq
734               port: 5672
735               options:
736                 - timeout client 0
737                 - timeout server 0
738                 - maxconn 1500
739
740   ControllerDeployment:
741     type: OS::TripleO::SoftwareDeployment
742     properties:
743       signal_transport: NO_SIGNAL
744       config: {get_resource: ControllerConfig}
745       server: {get_resource: Controller}
746       input_values:
747         bootstack_nodeid: {get_attr: [Controller, name]}
748         controller_host: {get_attr: [Controller, networks, ctlplane, 0]}
749         controller_virtual_ip: {get_param: VirtualIP}
750         neutron_enable_tunneling: {get_param: NeutronEnableTunnelling}
751         heat.watch_server_url:
752           list_join:
753             - ''
754             - - 'http://'
755               - {get_param: VirtualIP}
756               - ':8003'
757         heat.metadata_server_url:
758           list_join:
759             - ''
760             - - 'http://'
761               - {get_param: VirtualIP}
762               - ':8000'
763         heat.waitcondition_server_url:
764           list_join:
765             - ''
766             - - 'http://'
767               - {get_param: VirtualIP}
768               - ':8000/v1/waitcondition'
769         admin_password: {get_param: AdminPassword}
770         admin_token: {get_param: AdminToken}
771         neutron_public_interface_ip: {get_param: NeutronPublicInterfaceIP}
772         debug: {get_param: Debug}
773         cinder_lvm_loop_device_size: {get_param: CinderLVMLoopDeviceSize}
774         cinder_password: {get_param: CinderPassword}
775         cinder_iscsi_helper: {get_param: CinderISCSIHelper}
776         cinder_dsn:
777           list_join:
778             - ''
779             - - 'mysql://cinder:'
780               - {get_param: CinderPassword}
781               - '@'
782               - {get_param: VirtualIP}
783               - '/cinder'
784         glance_port: {get_param: GlancePort}
785         glance_protocol: {get_param: GlanceProtocol}
786         glance_password: {get_param: GlancePassword}
787         glance_notifier_strategy: {get_param: GlanceNotifierStrategy}
788         glance_log_file: {get_param: GlanceLogFile}
789         glance_dsn:
790           list_join:
791             - ''
792             - - 'mysql://glance:'
793               - {get_param: GlancePassword}
794               - '@'
795               - {get_param: VirtualIP}
796               - '/glance'
797         heat_password: {get_param: HeatPassword}
798         heat_stack_domain_admin_password: {get_param: HeatStackDomainAdminPassword}
799         heat_auth_encryption_key: {get_param: HeatAuthEncryptionKey}
800         heat_dsn:
801           list_join:
802             - ''
803             - - 'mysql://heat:'
804               - {get_param: HeatPassword}
805               - '@'
806               - {get_param: VirtualIP}
807               - '/heat'
808         keystone_ca_certificate: {get_param: KeystoneCACertificate}
809         keystone_signing_key: {get_param: KeystoneSigningKey}
810         keystone_signing_certificate: {get_param: KeystoneSigningCertificate}
811         keystone_ssl_certificate: {get_param: KeystoneSSLCertificate}
812         keystone_ssl_certificate_key: {get_param: KeystoneSSLCertificateKey}
813         keystone_dsn:
814           list_join:
815             - ''
816             - - 'mysql://keystone:'
817               - {get_param: AdminToken}
818               - '@'
819               - {get_param: VirtualIP}
820               - '/keystone'
821         mysql_innodb_buffer_pool_size: {get_param: MysqlInnodbBufferPoolSize}
822         mysql_root_password: {get_param: MysqlRootPassword}
823         mysql_cluster_name:
824           str_replace:
825             template: tripleo-CLUSTER
826             params:
827               CLUSTER: {get_param: MysqlClusterUniquePart}
828         neutron_flat_networks: {get_param: NeutronFlatNetworks}
829         neutron_metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret}
830         neutron_agent_mode: {get_param: NeutronAgentMode}
831         neutron_router_distributed: {get_param: NeutronDVR}
832         neutron_mechanism_drivers: {get_param: NeutronMechanismDrivers}
833         neutron_allow_l3agent_failover: {get_param: NeutronAllowL3AgentFailover}
834         neutron_l3_ha: {get_param: NeutronL3HA}
835         neutron_network_vlan_ranges: {get_param: NeutronNetworkVLANRanges}
836         neutron_bridge_mappings: {get_param: NeutronBridgeMappings}
837         neutron_public_interface: {get_param: NeutronPublicInterface}
838         neutron_public_interface_raw_device: {get_param: NeutronPublicInterfaceRawDevice}
839         neutron_public_interface_default_route: {get_param: NeutronPublicInterfaceDefaultRoute}
840         neutron_public_interface_tag: {get_param: NeutronPublicInterfaceTag}
841         neutron_tenant_network_type: {get_param: NeutronNetworkType}
842         neutron_tunnel_types: {get_param: NeutronTunnelTypes}
843         neutron_password: {get_param: NeutronPassword}
844         neutron_dnsmasq_options: {get_param: NeutronDnsmasqOptions}
845         neutron_dsn:
846           list_join:
847             - ''
848             - - 'mysql://neutron:'
849               - {get_param: NeutronPassword}
850               - '@'
851               - {get_param: VirtualIP}
852               - '/ovs_neutron?charset=utf8'
853         ceilometer_metering_secret: {get_param: CeilometerMeteringSecret}
854         ceilometer_password: {get_param: CeilometerPassword}
855         ceilometer_dsn:
856           list_join:
857             - ''
858             - - 'mysql://ceilometer:'
859               - {get_param: CeilometerPassword}
860               - '@'
861               - {get_param: VirtualIP}
862               - '/ceilometer'
863         snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
864         snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
865         nova_password: {get_param: NovaPassword}
866         nova_dsn:
867           list_join:
868             - ''
869             - - 'mysql://nova:'
870               - {get_param: NovaPassword}
871               - '@'
872               - {get_param: VirtualIP}
873               - '/nova'
874         rabbit_username: {get_param: RabbitUserName}
875         rabbit_password: {get_param: RabbitPassword}
876         rabbit_cookie: {get_param: RabbitCookie}
877         rabbit_client_use_ssl: {get_param: RabbitClientUseSSL}
878         rabbit_client_port: {get_param: RabbitClientPort}
879         ntp_server: {get_param: NtpServer}
880         control_virtual_interface: {get_param: ControlVirtualInterface}
881         public_virtual_interface: {get_param: PublicVirtualInterface}
882         public_virtual_ip: {get_param: PublicVirtualIP}
883
884   SSLConfig:
885     type: OS::Heat::StructuredConfig
886     properties:
887       group: os-apply-config
888       config:
889         ssl:
890           ca_certificate: {get_input: ssl_ca_certificate}
891         stunnel:
892           cert: {get_input: ssl_certificate}
893           key: {get_input: ssl_key}
894           cacert: {get_input: ssl_ca_certificate}
895           ports:
896            - name: 'ec2'
897              accept: 13773
898              connect: 8773
899              connect_host: {get_input: controller_host}
900            - name: 'image'
901              accept: 13292
902              connect: 9292
903              connect_host: {get_input: controller_host}
904            - name: 'identity'
905              accept: 13000
906              connect: 5000
907              connect_host: {get_input: controller_host}
908            - name: 'network'
909              accept: 13696
910              connect: 9696
911              connect_host: {get_input: controller_host}
912            - name: 'compute'
913              accept: 13774
914              connect: 8774
915              connect_host: {get_input: controller_host}
916            - name: 'swift-proxy'
917              accept: 13080
918              connect: 8080
919              connect_host: {get_input: controller_host}
920            - name: 'cinder'
921              accept: 13776
922              connect: 8776
923              connect_host: {get_input: controller_host}
924            - name: 'ceilometer'
925              accept: 13777
926              connect: 8777
927              connect_host: {get_input: controller_host}
928
929   ControllerSSLDeployment:
930     type: OS::Heat::StructuredDeployment
931     properties:
932       config: {get_resource: SSLConfig}
933       server: {get_resource: Controller}
934       signal_transport: NO_SIGNAL
935       input_values:
936         controller_host: {get_attr: [Controller, networks, ctlplane, 0]}
937         ssl_certificate: {get_param: SSLCertificate}
938         ssl_key: {get_param: SSLKey}
939         ssl_ca_certificate: {get_param: SSLCACertificate}
940
941   ControllerPassthroughDeployment:
942     type: OS::Heat::StructuredDeployment
943     properties:
944       config: {get_resource: ControllerPassthroughConfig}
945       server: {get_resource: Controller}
946       signal_transport: NO_SIGNAL
947       input_values:
948         passthrough_config: {get_param: ExtraConfig}
949
950   ControllerPassthroughSpecificDeployment:
951     depends_on: [ControllerPassthroughDeployment]
952     type: OS::Heat::StructuredDeployment
953     properties:
954       config: {get_resource: ControllerPassthroughConfigSpecific}
955       server: {get_resource: Controller}
956       signal_transport: NO_SIGNAL
957       input_values:
958         passthrough_config_specific: {get_param: ControllerExtraConfig}
959
960   SwiftConfig:
961     type: OS::Heat::StructuredConfig
962     properties:
963       group: os-apply-config
964       config:
965         swift:
966           hash: { get_input: swift_hash_suffix }
967           part-power: { get_input: swift_part_power }
968           mount-check: { get_input: swift_mount_check }
969           min-part-hours: { get_input: swift_min_part_hours }
970           replicas: {get_input: swift_replicas }
971           service-password: { get_input: swift_password }
972
973   SwiftStorageDeploy:
974     type: OS::Heat::StructuredDeployment
975     properties:
976       server: {get_resource: Controller}
977       config: {get_resource: SwiftConfig}
978       signal_transport: NO_SIGNAL
979       input_values:
980         swift_hash_suffix: {get_param: SwiftHashSuffix}
981         swift_mount_check: {get_param: SwiftMountCheck}
982         swift_password: {get_param: SwiftPassword}
983         swift_min_part_hours: {get_param: SwiftMinPartHours}
984         swift_part_power: {get_param: SwiftPartPower}
985         swift_replicas: { get_param: SwiftReplicas}
986
987 outputs:
988   ip_address:
989     description: IP address of the server in the ctlplane network
990     value: {get_attr: [Controller, networks, ctlplane, 0]}
991   external_ip_address:
992     description: IP address of the server in the external network
993     value: {get_attr: [ExternalPort, ip_address]}
994   internal_api_ip_address:
995     description: IP address of the server in the internal_api network
996     value: {get_attr: [InternalApiPort, ip_address]}
997   storage_ip_address:
998     description: IP address of the server in the storage network
999     value: {get_attr: [StoragePort, ip_address]}
1000   storage_mgmt_ip_address:
1001     description: IP address of the server in the storage_mgmt network
1002     value: {get_attr: [StorageMgmtPort, ip_address]}
1003   tenant_ip_address:
1004     description: IP address of the server in the tenant network
1005     value: {get_attr: [TenantPort, ip_address]}
1006   hostname:
1007     description: Hostname of the server
1008     value: {get_attr: [Controller, name]}
1009   corosync_node:
1010     description: >
1011       Node object in the format {ip: ..., name: ...} format that the corosync
1012       element expects
1013     value:
1014       ip: {get_attr: [Controller, networks, ctlplane, 0]}
1015       name: {get_attr: [Controller, name]}
1016   hosts_entry:
1017     description: >
1018       Server's IP address and hostname in the /etc/hosts format
1019     value:
1020       str_replace:
1021         template: IP HOST CLOUDNAME
1022         params:
1023           IP: {get_attr: [Controller, networks, ctlplane, 0]}
1024           HOST: {get_attr: [Controller, name]}
1025           CLOUDNAME: {get_param: CloudName}
1026   nova_server_resource:
1027     description: Heat resource handle for the Nova compute server
1028     value:
1029       {get_resource: Controller}
1030   swift_device:
1031     description: Swift device formatted for swift-ring-builder
1032     value:
1033       str_replace:
1034         template: 'r1z1-IP:%PORT%/d1'
1035         params:
1036           IP: {get_attr: [Controller, networks, ctlplane, 0]}
1037   swift_proxy_memcache:
1038     description: Swift proxy-memcache value
1039     value:
1040       str_replace:
1041         template: "IP:11211"
1042         params:
1043           IP: {get_attr: [Controller, networks, ctlplane, 0]}