2016-05-05 11:46:51 -04:00
|
|
|
heat_template_version: 2016-04-08
|
|
|
|
|
|
|
|
description: >
|
2016-05-31 16:50:19 -04:00
|
|
|
HAproxy service with Pacemaker configured with Puppet
|
2016-05-05 11:46:51 -04:00
|
|
|
|
|
|
|
parameters:
|
2016-08-11 23:07:46 +02:00
|
|
|
ServiceNetMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service_name -> network name. Typically set
|
|
|
|
via parameter_defaults in the resource registry. This
|
|
|
|
mapping overrides those in ServiceNetMapDefaults.
|
|
|
|
type: json
|
2016-08-17 09:26:05 -04:00
|
|
|
DefaultPasswords:
|
|
|
|
default: {}
|
|
|
|
type: json
|
2016-05-05 11:46:51 -04:00
|
|
|
EndpointMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
|
|
via parameter_defaults in the resource registry.
|
|
|
|
type: json
|
|
|
|
|
|
|
|
resources:
|
|
|
|
LoadbalancerServiceBase:
|
2016-05-31 16:50:19 -04:00
|
|
|
type: ../haproxy.yaml
|
2016-05-05 11:46:51 -04:00
|
|
|
properties:
|
2016-08-11 23:07:46 +02:00
|
|
|
ServiceNetMap: {get_param: ServiceNetMap}
|
2016-08-17 09:26:05 -04:00
|
|
|
DefaultPasswords: {get_param: DefaultPasswords}
|
2016-05-05 11:46:51 -04:00
|
|
|
EndpointMap: {get_param: EndpointMap}
|
|
|
|
|
|
|
|
outputs:
|
|
|
|
role_data:
|
2016-05-31 16:50:19 -04:00
|
|
|
description: Role data for the HAproxy with pacemaker role.
|
2016-05-05 11:46:51 -04:00
|
|
|
value:
|
2016-07-19 16:08:22 -04:00
|
|
|
service_name: haproxy
|
2016-06-09 15:39:22 +02:00
|
|
|
monitoring_subscription: {get_attr: [LoadbalancerServiceBase, role_data, monitoring_subscription]}
|
2016-05-05 11:46:51 -04:00
|
|
|
config_settings:
|
|
|
|
map_merge:
|
|
|
|
- get_attr: [LoadbalancerServiceBase, role_data, config_settings]
|
2016-05-21 14:13:34 -04:00
|
|
|
- tripleo::haproxy::haproxy_service_manage: false
|
|
|
|
tripleo::haproxy::mysql_clustercheck: true
|
2016-05-31 16:50:19 -04:00
|
|
|
enable_keepalived: false
|
2016-07-29 11:46:40 +02:00
|
|
|
tripleo::haproxy::keepalived: false
|
2016-05-05 11:46:51 -04:00
|
|
|
step_config: |
|
2016-05-31 16:50:19 -04:00
|
|
|
include ::tripleo::profile::pacemaker::haproxy
|