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