Merge "Containerize HAProxy for HA"
[apex-tripleo-heat-templates.git] / puppet / services / pacemaker_remote.yaml
1 heat_template_version: pike
2
3 description: >
4   Pacemaker remote service 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   RoleName:
17     default: ''
18     description: Role name on which the service is applied
19     type: string
20   RoleParameters:
21     default: {}
22     description: Parameters specific to the role
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29   PacemakerRemoteAuthkey:
30     type: string
31     description: The authkey for the pacemaker remote service.
32     hidden: true
33     default: ''
34   MonitoringSubscriptionPacemakerRemote:
35     default: 'overcloud-pacemaker_remote'
36     type: string
37   PacemakerRemoteLoggingSource:
38     type: json
39     default:
40       tag: system.pacemaker_remote
41       path: /var/log/pacemaker.log
42       format: >-
43         /^(?<time>[^ ]*\s*[^ ]* [^ ]*)
44         \[(?<pid>[^ ]*)\]
45         (?<host>[^ ]*)
46         (?<message>.*)$/
47
48 outputs:
49   role_data:
50     description: Role data for the Pacemaker remote role.
51     value:
52       service_name: pacemaker_remote
53       monitoring_subscription: {get_param: MonitoringSubscriptionPacemakerRemote}
54       logging_groups:
55         - haclient
56       logging_source: {get_param: PacemakerRemoteLoggingSource}
57       config_settings:
58         tripleo.pacemaker_remote.firewall_rules:
59           '130 pacemaker_remote tcp':
60             proto: 'tcp'
61             dport:
62               - 3121
63         tripleo::profile::base::pacemaker_remote::remote_authkey: {get_param: PacemakerRemoteAuthkey}
64       step_config: |
65         include ::tripleo::profile::base::pacemaker_remote