Adds network/cidr mapping into a new service property
[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   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   OVNNorthboundServerPort:
34     description: Port of the OVN Northbound DB server
35     type: number
36     default: 6641
37   OVNSouthboundServerPort:
38     description: Port of the OVN Southbound DB server
39     type: number
40     default: 6642
41
42 resources:
43
44   OVNDBsBase:
45     type: ../ovn-dbs.yaml
46     properties:
47       ServiceData: {get_param: ServiceData}
48       ServiceNetMap: {get_param: ServiceNetMap}
49       DefaultPasswords: {get_param: DefaultPasswords}
50       EndpointMap: {get_param: EndpointMap}
51       RoleName: {get_param: RoleName}
52       RoleParameters: {get_param: RoleParameters}
53
54 outputs:
55   role_data:
56     description: Role data for the OVN northd service
57     value:
58       service_name: ovn_dbs
59       config_settings:
60         map_merge:
61           - get_attr: [OVNDBsBase, role_data, config_settings]
62           - tripleo::haproxy::ovn_dbs_manage_lb: false
63             tripleo::profile::pacemaker::ovn_northd::nb_db_port: {get_param: OVNNorthboundServerPort}
64             tripleo::profile::pacemaker::ovn_northd::sb_db_port: {get_param: OVNSouthboundServerPort}
65       step_config: |
66         include ::tripleo::profile::pacemaker::ovn_northd