1cbb476399210e03dd1414b2e84a569b54f0f5d8
[apex-tripleo-heat-templates.git] / puppet / services / pacemaker / ovn-dbs.yaml
1 heat_template_version: ocata
2
3 description: >
4   OVN databases configured with puppet in HA mode
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   OVNNorthboundServerPort:
30     description: Port of the OVN Northbound DB server
31     type: number
32     default: 6641
33   OVNSouthboundServerPort:
34     description: Port of the OVN Southbound DB server
35     type: number
36     default: 6642
37
38 resources:
39
40   OVNDBsBase:
41     type: ../ovn-dbs.yaml
42     properties:
43       ServiceNetMap: {get_param: ServiceNetMap}
44       DefaultPasswords: {get_param: DefaultPasswords}
45       EndpointMap: {get_param: EndpointMap}
46       RoleName: {get_param: RoleName}
47       RoleParameters: {get_param: RoleParameters}
48
49 outputs:
50   role_data:
51     description: Role data for the OVN northd service
52     value:
53       service_name: ovn_dbs
54       config_settings:
55         map_merge:
56           - get_attr: [OVNDBsBase, role_data, config_settings]
57           - tripleo::haproxy::ovn_dbs_manage_lb: false
58             tripleo::profile::pacemaker::ovn_northd::nb_db_port: {get_param: OVNNorthboundServerPort}
59             tripleo::profile::pacemaker::ovn_northd::sb_db_port: {get_param: OVNSouthboundServerPort}
60       step_config: |
61         include ::tripleo::profile::pacemaker::ovn_northd