Add role specific information to the service template
[apex-tripleo-heat-templates.git] / puppet / services / ovn-dbs.yaml
1 heat_template_version: ocata
2
3 description: >
4   OVN databases 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   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 outputs:
39   role_data:
40     description: Role data for the OVN northd service
41     value:
42       service_name: ovn_dbs
43       config_settings:
44           ovn::northbound::port: {get_param: OVNNorthboundServerPort}
45           ovn::southbound::port: {get_param: OVNSouthboundServerPort}
46           ovn::northd::dbs_listen_ip: {get_param: [ServiceNetMap, OvnDbsNetwork]}
47           tripleo.ovn_dbs.firewall_rules:
48             '121 OVN DB server ports':
49               proto: 'tcp'
50               dport:
51                 - {get_param: OVNNorthboundServerPort}
52                 - {get_param: OVNSouthboundServerPort}
53       step_config: |
54         include ::tripleo::profile::base::neutron::ovn_northd