Merge "Describe use of Manila/CephFS in capabilites_map"
[apex-tripleo-heat-templates.git] / puppet / services / pacemaker / haproxy.yaml
1 heat_template_version: ocata
2
3 description: >
4   HAproxy service with Pacemaker configured with Puppet
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21
22 resources:
23   LoadbalancerServiceBase:
24     type: ../haproxy.yaml
25     properties:
26       ServiceNetMap: {get_param: ServiceNetMap}
27       DefaultPasswords: {get_param: DefaultPasswords}
28       EndpointMap: {get_param: EndpointMap}
29
30 outputs:
31   role_data:
32     description: Role data for the HAproxy with pacemaker role.
33     value:
34       service_name: haproxy
35       monitoring_subscription: {get_attr: [LoadbalancerServiceBase, role_data, monitoring_subscription]}
36       config_settings:
37         map_merge:
38           - get_attr: [LoadbalancerServiceBase, role_data, config_settings]
39           - tripleo::haproxy::haproxy_service_manage: false
40             tripleo::haproxy::mysql_clustercheck: true
41       step_config: |
42         include ::tripleo::profile::pacemaker::haproxy
43       metadata_settings:
44         get_attr: [LoadbalancerServiceBase, role_data, metadata_settings]